Skip to content

Commit

Permalink
7.1.0 (#217)
Browse files Browse the repository at this point in the history
* Cover Telegram API [7.9](https://core.telegram.org/bots/api#august-14-2024) version.
* Added `ChainStateManager.getState` extension to give option get state by passing link itself.
  • Loading branch information
vendelieu authored Aug 14, 2024
1 parent a071e95 commit e50bdda
Show file tree
Hide file tree
Showing 29 changed files with 885 additions and 83 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand All @@ -35,7 +35,7 @@ jobs:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
BOT_TOKEN_2: ${{ secrets.BOT_TOKEN_2 }}
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
run: ./gradlew clean koverXmlReport -PsonatypeUsername=${{secrets.SONATYPE_USERNAME}} -PsonatypePassword=${{secrets.SONATYPE_PASSWORD}}
run: ./gradlew clean koverXmlReport

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/ci.docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.gh.snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.pkg.cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
"eu.vendeli.ktgram-config-env-mingwx64",
"eu.vendeli.ktgram-config-toml",
"eu.vendeli.ktgram-config-toml-jvm",
"eu.vendeli.ktgram-config-toml-js",
"eu.vendeli.ktgram-config-toml-linuxx64",
"eu.vendeli.ktgram-config-toml-mingwx64",
"eu.vendeli.webapps",
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/ci.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand Down Expand Up @@ -82,9 +82,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Extract changelog for version
id: changelog
run: |
./parse_changelog.sh ${{ needs.version.outputs.version }} > release_notes.md
shell: bash

- uses: taiki-e/create-gh-release-action@v1
with:
title: $version
changelog: CHANGELOG.md
changelog: release_notes.md
branch: master
token: ${{ secrets.ACCESS_TOKEN }}
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Telegram-bot (KtGram) changelog

## 7.0.1
## 7.1.0

* Cover Telegram API [7.9](https://core.telegram.org/bots/api#august-14-2024) version.
* Added `ChainStateManager.getState` extension to give option get state by passing link itself.

### 7.0.1

* Fix ksp generation artifact

Expand Down Expand Up @@ -46,7 +51,7 @@
* Added `@InputChain` state manager that will save selected state from update automatically.
* Added additional api validation for the entire api, fixed typos in several parameters.

### 6.6.0
## 6.6.0

* Covered 7.8 telegram api.

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build.gradle.kts example:
```gradle
plugins {
// ...
id("com.google.devtools.ksp") version "2.0.0-1.0.24"
id("com.google.devtools.ksp") version "2.0.10-1.0.24"
}
dependencies {
Expand All @@ -33,10 +33,9 @@ dependencies {
<details>
<summary><i>Snapshots</i></summary>

![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fv229149.hosted-by-vdsina.ru%2Fsnap-ver%2Ftelegram-bot&query=%24%5B0%5D.name&logo=github&label=SNAPSHOT&link=https%3A%2F%2Fgithub.com%2Fvendelieu%3Ftab%3Dpackages%26repo_name%3Dtelegram-bot)
[![Snapshot version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fv229149.hosted-by-vdsina.ru%2Fsnap-ver%2Ftelegram-bot&query=%24%5B0%5D.name&logo=github&label=SNAPSHOT&link=https%3A%2F%2Fgithub.com%2Fvendelieu%3Ftab%3Dpackages%26repo_name%3Dtelegram-bot)](https://github.com/vendelieu?tab=packages&repo_name=telegram-bot)


To install snapshot versions add dev repository:
To install snapshot versions add dev repository:

```gradle
repositories {
Expand All @@ -46,7 +45,8 @@ repositories {
}
```

And use the latest package version from [packages](https://github.com/vendelieu?tab=packages&repo_name=telegram-bot) or from badge above.
And use the latest package version from [packages](https://github.com/vendelieu?tab=packages&repo_name=telegram-bot) or
from badge above.

</details>

Expand Down
42 changes: 42 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Security Policies and Procedures

This document outlines security procedures and general policies for the `telegram-bot`
project.

* [Reporting a Bug](#reporting-a-bug)
* [Disclosure Policy](#disclosure-policy)
* [Comments on this Policy](#comments-on-this-policy)

## Reporting a Bug

The `telegram-bot` team and community take all security bugs in `telegram-bot` seriously.
Thank you for improving the security of `telegram-bot`. We appreciate your efforts and
responsible disclosure and will make every effort to acknowledge your
contributions.

Report security bugs by emailing the lead maintainer at [[email protected]](mailto:j@vendelieu).

The lead maintainer will acknowledge your email within 48 hours, and will send a
more detailed response within 48 hours indicating the next steps in handling
your report. After the initial reply to your report, the security team will
endeavor to keep you informed of the progress towards a fix and full
announcement, and may ask for additional information or guidance.

Report security bugs in third-party modules to the person or team maintaining
the module.

## Disclosure Policy

When the security team receives a security bug report, they will assign it to a
primary handler. This person will coordinate the fix and release process,
involving the following steps:

* Confirm the problem and determine the affected versions.
* Audit code to find any potential similar problems.
* Prepare fixes for all releases still under maintenance. These fixes will be
released as fast as possible to npm.

## Comments on this Policy

If you have suggestions on how this process could be improved, please submit a
pull request.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ tasks.create("prepareRelease") {
dependsOn("ksp:detekt")
dependsOn("telegram-bot:detekt")

dependsOn("telegram-bot:clean")
dependsOn("telegram-bot:kspCommonMainKotlinMetadata")
dependsOn("telegram-bot:apiCheck")
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mavenPublishing {

configure(
KotlinMultiplatform(
javadocJar = if (project.name == "telegram-bot") JavadocJar.Dokka("dokkaHtml")
javadocJar = if (project.name == "telegram-bot" && doSign) JavadocJar.Dokka("dokkaHtml")
else JavadocJar.Empty(),
sourcesJar = true,
),
Expand Down
Loading

0 comments on commit e50bdda

Please sign in to comment.