Skip to content

Commit

Permalink
Autolabel pre-commit.ci PRs with 'changelog: skip'
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 4, 2023
1 parent c18c336 commit 85eda55
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/release-drafter.yml
Expand Up @@ -22,6 +22,11 @@ categories:
exclude-labels:
- "changelog: skip"

autolabeler:
- label: "changelog: skip"
branch:
- "/pre-commit-ci-update-config/"

template: |
$CHANGES
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Expand Up @@ -5,11 +5,27 @@ on:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
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 event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]
workflow_dispatch:

permissions:
contents: read

jobs:
update_release_draft:
if: github.repository_owner == 'python-humanize'
permissions:
# write permission is required to create a GitHub Release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next release notes as pull requests are merged into "main"
Expand Down

0 comments on commit 85eda55

Please sign in to comment.