Skip to content

Commit 601ba31

Browse files
abhisekCopilot
andauthored
ci: Add GHA for issue triage (#171)
* ci: Add GHA for issue triage * Update .github/workflows/issue-triage.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com> * Update .github/workflows/issue-triage.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com> --------- Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 91aa454 commit 601ba31

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/issue-triage.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Issue Triage
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
# Minimal permissions - only what's needed to add a label.
8+
# Project access is handled by ISSUE_TRIAGE_GITHUB_TOKEN secret.
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
triage:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- name: Add to SafeDep Operations project
18+
uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
19+
with:
20+
project-url: https://github.com/orgs/safedep/projects/5
21+
github-token: ${{ secrets.ISSUE_TRIAGE_GITHUB_TOKEN }}
22+
23+
- name: Add need-analysis label
24+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
25+
with:
26+
script: |
27+
await github.rest.issues.addLabels({
28+
owner: context.repo.owner,
29+
repo: context.repo.repo,
30+
issue_number: context.issue.number,
31+
labels: ['need-analysis']
32+
});

0 commit comments

Comments
 (0)