Skip to content

Commit c4fbf20

Browse files
authored
Merge pull request #118 from cisagov/improvement/add_label_sync_workflow
Add workflow to manage repository labels
2 parents bb9c2a0 + 5993231 commit c4fbf20

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

.github/labels.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
# Rather than breaking up descriptions into multiline strings we disable that
3+
# specific rule in yamllint for this file.
4+
# yamllint disable rule:line-length
5+
- color: "#eb6420"
6+
description: This issue or pull request is awaiting the outcome of another issue or pull request
7+
name: blocked
8+
- color: "#000000"
9+
description: This issue or pull request involves changes to existing functionality
10+
name: breaking change
11+
- color: "#d73a4a"
12+
description: This issue or pull request addresses broken functionality
13+
name: bug
14+
- color: "#07648d"
15+
description: This issue will be advertised on code.gov's Open Tasks page (https://code.gov/open-tasks)
16+
name: code.gov
17+
- color: "#0366d6"
18+
description: Pull requests that update a dependency file
19+
name: dependencies
20+
- color: "#5319e7"
21+
description: This issue or pull request improves or adds to documentation
22+
name: documentation
23+
- color: "#cfd3d7"
24+
description: This issue or pull request already exists or is covered in another issue or pull request
25+
name: duplicate
26+
- color: "#b005bc"
27+
description: A high-level objective issue encompassing multiple issues instead of a specific unit of work
28+
name: epic
29+
- color: "#000000"
30+
description: Pull requests that update GitHub Actions code
31+
name: github-actions
32+
- color: "#0e8a16"
33+
description: This issue or pull request is well-defined and good for newcomers
34+
name: good first issue
35+
- color: "#ff7518"
36+
description: Pull request that should count toward Hacktoberfest participation
37+
name: hacktoberfest-accepted
38+
- color: "#a2eeef"
39+
description: This issue or pull request will add or improve functionality, maintainability, or ease of use
40+
name: improvement
41+
- color: "#fef2c0"
42+
description: This issue or pull request is not applicable, incorrect, or obsolete
43+
name: invalid
44+
- color: "#ce099a"
45+
description: This pull request is ready to merge during the next Lineage Kraken release
46+
name: kraken 🐙
47+
- color: "#a4fc5d"
48+
description: This issue or pull request requires further information
49+
name: need info
50+
- color: "#fcdb45"
51+
description: This pull request is awaiting an action or decision to move forward
52+
name: on hold
53+
- color: "#ef476c"
54+
description: This issue is a request for information or needs discussion
55+
name: question
56+
- color: "#00008b"
57+
description: This issue or pull request adds or otherwise modifies test code
58+
name: test
59+
- color: "#1d76db"
60+
description: This issue or pull request pulls in upstream updates
61+
name: upstream update
62+
- color: "#d4c5f9"
63+
description: This issue or pull request increments the version number
64+
name: version bump
65+
- color: "#ffffff"
66+
description: This issue will not be incorporated
67+
name: wontfix

.github/workflows/sync-labels.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: sync-labels
3+
4+
on:
5+
push:
6+
paths:
7+
- '.github/labels.yml'
8+
- '.github/workflows/sync-labels.yml'
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
labeler:
15+
permissions:
16+
# actions/checkout needs this to fetch code
17+
contents: read
18+
# crazy-max/ghaction-github-labeler needs this to manage repository labels
19+
issues: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Sync repository labels
24+
if: success()
25+
uses: crazy-max/ghaction-github-labeler@v4
26+
with:
27+
# This is a hideous ternary equivalent so we only do a dry run unless
28+
# this workflow is triggered by the develop branch.
29+
dry-run: ${{ github.ref_name == 'develop' && 'false' || 'true' }}

0 commit comments

Comments
 (0)