Skip to content

Commit

Permalink
Merge pull request hashicorp#27886 from hashicorp/rcsk/pr-label-autom…
Browse files Browse the repository at this point in the history
…ation-redo

PR Label automation for bug, enhancement, and breaking change
  • Loading branch information
rcskosir authored Nov 8, 2024
2 parents e85a546 + d2af34f commit 574f752
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/labeler-pull-request-triage-type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bug:
- '- \[\s?(x|X)\s?\] Bug Fix'

enhancement:
- '- \[\s?(x|X)\s?\] Enhancement'

breaking-change:
- '- \[\s?(x|X)\s?\] 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

0 comments on commit 574f752

Please sign in to comment.