diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index c692e8e..00bae59 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -13,7 +13,9 @@ categories: - title: "🧰 Maintenance" label: "chore" -change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +change-template: "- $TITLE [@$AUTHOR](https://github.com/$AUTHOR) ([#$NUMBER]($URL))" change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. version-resolver: major: @@ -32,4 +34,4 @@ template: | $CHANGES - Changelog: [`$PREVIOUS_TAG...`](https://github.com/MinatoAquaCrews/nonebot_plugin_tarot/compare/$PREVIOUS_TAG...) + Changelog: [`$PREVIOUS_TAG...v$RESOLVED_VERSION`](https://github.com/MinatoAquaCrews/nonebot_plugin_crazy_thursday/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) diff --git a/.github/workflows/poetry-publish.yml b/.github/workflows/poetry-publish.yml index 5bedc29..ce21c9b 100644 --- a/.github/workflows/poetry-publish.yml +++ b/.github/workflows/poetry-publish.yml @@ -20,12 +20,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ env.TAG_NAME }} - name: Publish python poetry package - uses: JRubics/poetry-publish@v1.16 + uses: JRubics/poetry-publish@v1.17 with: python_version: "3.10" pypi_token: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 2da1537..15bcefa 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -2,11 +2,13 @@ name: Release Drafter on: push: + tags: + - v* + pull_request_target: branches: - master - - pull_request: - types: [opened, reopened, synchronize] + types: + - closed permissions: contents: read @@ -19,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: master diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3889732..0835479 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,10 +12,10 @@ repos: - id: isort stages: [commit] - - repo: https://github.com/hhatto/autopep8 - rev: v2.0.4 + - repo: https://github.com/psf/black + rev: 23.9.1 hooks: - - id: autopep8 + - id: black stages: [commit] - repo: https://github.com/pre-commit/mirrors-prettier @@ -34,3 +34,9 @@ repos: - id: check-added-large-files - id: mixed-line-ending - id: check-json + + - repo: https://github.com/python-poetry/poetry + rev: 1.6.1 + hooks: + - id: poetry-check + - id: poetry-lock