Skip to content

add addition label to release label workflow #7996

add addition label to release label workflow

add addition label to release label workflow #7996

name: Enforce labels for release notes
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@8afbe8ae6ab7647d0c9f0cfa7c2f939650d22509
with:
mode: minimum
count: 1
# Note: If updating these labels, also update .github/release.yml
# and contributor-docs/code-contributions.md.
labels: |
addition
bug-fix
ignore-for-release
improvement
new-template
package-upgrade
message: "This PR is being prevented from merging because you have not added any of the following labels: [addition, bug-fix, ignore-for-release, improvement, new-template, package-upgrade]. You'll need to add one before this PR can be merged so that these can be used for release notes. For more information, see https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/contributor-docs/code-contributions.md#release-notes"