diff --git a/.github/workflows/autolabel.yml b/.github/workflows/autolabel.yml new file mode 100644 index 0000000..482b5fa --- /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 \ No newline at end of file diff --git a/.github/workflows/draft.yml b/.github/workflows/draft.yml index b7dbb92..7e3dc06 100644 --- a/.github/workflows/draft.yml +++ b/.github/workflows/draft.yml @@ -4,23 +4,15 @@ on: push: branches: - main - # pull_request event is required only for autolabeler - pull_request: - types: [opened, reopened, synchronize] - pull_request_target: - types: [opened, reopened, synchronize] - -permissions: - contents: read jobs: update-draft: runs-on: ubuntu-latest permissions: contents: write - pull-requests: write + pull-requests: read steps: # Drafts your next Release notes as Pull Requests are merged into "main" - - uses: release-drafter/release-drafter@6a93d829887aa2e0748befe2e808c66c0ec6e4c7 # v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7 + with: + token: ${{ secrets.GITHUB_TOKEN }}