Skip to content

Commit 9877446

Browse files
committed
Workflow for adding labels to issues
1 parent 58225d2 commit 9877446

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/labeler-issue-triage.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Issue Labeler documentation: https://github.com/marketplace/actions/regex-issue-labeler
2+
3+
bug:
4+
# General:
5+
# panic:
6+
# Terraform CLI:
7+
# Provider produced inconsistent final plan
8+
# Provider produced inconsistent result after apply
9+
# produced an invalid new value
10+
# produced an unexpected new value
11+
# Terraform Plugin SDK:
12+
# doesn't support update
13+
# Invalid address to set
14+
- "(panic:|Provider produced inconsistent (final plan|result after apply)|produced an (invalid|unexpected) new value|doesn't support update|Invalid address to set)"
15+
16+
needs-triage:
17+
- '.*'

.github/workflows/issue-opened.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# GitHub Action reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2+
3+
name: issue-opened
4+
5+
on:
6+
issues:
7+
types: [opened]
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
add-labels:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: github/[email protected]
18+
with:
19+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
20+
configuration-path: .github/labeler-issue-triage.yml
21+
enable-versioned-regex: 0

0 commit comments

Comments
 (0)