mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* 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>
33 lines
961 B
YAML
33 lines
961 B
YAML
name: Issue Triage
|
|
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
|
|
# Minimal permissions - only what's needed to add a label.
|
|
# Project access is handled by ISSUE_TRIAGE_GITHUB_TOKEN secret.
|
|
permissions:
|
|
issues: write
|
|
|
|
jobs:
|
|
triage:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Add to SafeDep Operations project
|
|
uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
|
|
with:
|
|
project-url: https://github.com/orgs/safedep/projects/5
|
|
github-token: ${{ secrets.ISSUE_TRIAGE_GITHUB_TOKEN }}
|
|
|
|
- name: Add need-analysis label
|
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
|
with:
|
|
script: |
|
|
await github.rest.issues.addLabels({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
labels: ['need-analysis']
|
|
});
|