Skip to content

Commit

Permalink
chore(github): Automate labeleing and add-to-project for GH issues/ti…
Browse files Browse the repository at this point in the history
…ckets
  • Loading branch information
Unique-Divine committed Sep 11, 2024
1 parent b1aac01 commit 64beba7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/issue-labeler-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Adds the "S-triage" label ot any issue that gets opened.
S-triage:
- '/.*/'
1 change: 0 additions & 1 deletion .github/workflows/e2e-wasm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: CosmWasm e2e tests

on:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/gh-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Auto-add GH issues to project"
# Add all issues opened to the issue board for triage and assignment

on:
issues:
types: ["opened", "labeled"]

permissions:
issues: write
contents: read

jobs:
# https://github.com/actions/add-to-project
add-to-project:
name: "Add GH ticket to project"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/NibiruChain/projects/8
github-token: ${{ secrets.NIBIRU_PM }}

label-triage:
name: "Add GH ticket to project"
runs-on: ubuntu-latest
# The action comes from the "Activty types" for the "issues" webhook event
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#issues
if: "github.event.action == 'opened'"
steps:
- uses: github/[email protected]
if: join(github.event.issue.labels) == ''
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/issue-labeler-config.yml"
enable-versioned-regex: 0
not-before: "2024-05-01T00:00:00Z"

0 comments on commit 64beba7

Please sign in to comment.