Added full support of Bot API 7.9 (#1560)

* Added full support of Bot API 7.9

* Added changelog

* Try to fix towncrier

* Fixed towncrier check
This commit is contained in:
Alex Root Junior 2024-08-16 00:44:40 +03:00 committed by GitHub
parent 1c323ecc97
commit c3a08664d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 817 additions and 114 deletions

View file

@ -22,10 +22,10 @@ jobs:
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Install towncrier
run: pip install towncrier
run: pip install -U towncrier
- name: Check changelog
env:
@ -36,7 +36,7 @@ jobs:
- name: Find bot comment
if: "always()"
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
@ -45,7 +45,7 @@ jobs:
- name: Ask for changelog
if: "failure()"
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v4
with:
edit-mode: replace
comment-id: ${{ steps.fc.outputs.comment-id }}
@ -65,7 +65,7 @@ jobs:
- name: Changelog found
if: "success()"
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v4
with:
edit-mode: replace
comment-id: ${{ steps.fc.outputs.comment-id }}
@ -80,7 +80,7 @@ jobs:
if: "contains(github.event.pull_request.labels.*.name, 'skip news')"
steps:
- name: Find bot comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
@ -88,7 +88,7 @@ jobs:
body-includes: Changelog
- name: Comment when docs is not needed
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v4
with:
edit-mode: replace
comment-id: ${{ steps.fc.outputs.comment-id }}