Skip to content

Commit c2c27e5

Browse files
committed
chore(github): Add project automation for https://tinyurl.com/25uty9w5
1 parent ec2a25b commit c2c27e5

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/issue-labeler-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Adds the "S-triage" label ot any issue that gets opened.
2+
S-triage:
3+
- '/.*/'

.github/workflows/gh-issues.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Auto-add GH issues to project"
2+
# Add all issues opened to the issue board for triage and assignment
3+
# GitHub Org and Project Automation
4+
# https://www.notion.so/nibiru/GitHub-Org-and-Project-Automation-c771d671109849ee9fda7c8b741cd66a?pvs=4
5+
6+
on:
7+
issues:
8+
types: ["opened", "labeled"]
9+
10+
permissions:
11+
issues: write
12+
contents: read
13+
14+
jobs:
15+
# https://github.com/actions/add-to-project
16+
add-to-project:
17+
name: "Add GH ticket to project"
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/[email protected]
21+
with:
22+
project-url: https://github.com/orgs/NibiruChain/projects/8
23+
github-token: ${{ secrets.NIBIRU_PM }}
24+
25+
label-triage:
26+
name: "Add GH ticket to project"
27+
runs-on: ubuntu-latest
28+
# The action comes from the "Activty types" for the "issues" webhook event
29+
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#issues
30+
if: "github.event.action == 'opened'"
31+
steps:
32+
- uses: github/[email protected]
33+
if: join(github.event.issue.labels) == ''
34+
with:
35+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
36+
configuration-path: ".github/issue-labeler-config.yml"
37+
enable-versioned-regex: 0
38+
not-before: "2024-05-01T00:00:00Z"

0 commit comments

Comments
 (0)