Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR Label automation for bug, enhancement, and breaking change #27886

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/labeler-pull-request-triage-type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file is not generated since it is static labels that does not rely on any Go code.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor and open for discussion, I would tend towards removing this comment stating that this file isn't generated since the pattern in the provider so far has only been to call out files that are generated.

Everything else can be safely assumed to be manually written and maintained.

bug:
- '- \[ ?X ?\] Bug Fix'

enhancement:
- '- \[ ?X ?\] Enhancement'

breaking-change:
- '- \[ ?X ?\] Breaking Change'
19 changes: 19 additions & 0 deletions .github/workflows/pull-request-type.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Pull Request Type

permissions:
issues: write

on:
pull_request:
types: [opened, edited]

jobs:
issue_triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler-pull-request-triage-type.yml
enable-versioned-regex: 0
Loading