diff --git a/.github/workflows/autolabel.yml b/.github/workflows/autolabel.yml new file mode 100644 index 0000000..a2d1004 --- /dev/null +++ b/.github/workflows/autolabel.yml @@ -0,0 +1,19 @@ +name: Auto Label + +on: + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + pull_request_target: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + auto_label: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter/autolabeler@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7 diff --git a/.github/workflows/draft.yml b/.github/workflows/draft.yml index 0ceef7f..358f30a 100644 --- a/.github/workflows/draft.yml +++ b/.github/workflows/draft.yml @@ -1,19 +1,14 @@ name: Release Drafter - on: push: branches: - main - jobs: - update-draft: + update_release_draft: runs-on: ubuntu-latest - permissions: - contents: write steps: - # Drafts your next Release notes as Pull Requests are merged into "main" - - uses: release-drafter/release-drafter@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: release-drafter/release-drafter/autolabeler@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7 + with: + token: ${{ secrets.GITHUB_TOKEN }}