You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Important:** The calling workflow **must** declare `permissions: issues: write`. Without this, the action will fail in repos/orgs where the default `GITHUB_TOKEN` is read-only.
26
+
22
27
## What it does
23
28
24
29
1. Adds the `needs-triage` label to the newly opened issue
@@ -30,7 +35,8 @@ jobs:
30
35
## Prerequisites
31
36
32
37
- The `needs-triage` label must exist in the repository (see label setup below)
33
-
- The default `GITHUB_TOKEN` is sufficient — no additional secrets needed
38
+
- The calling workflow must grant `permissions: issues: write`
39
+
- The default `GITHUB_TOKEN` is sufficient for the token — no additional secrets needed
Copy file name to clipboardExpand all lines: workflows/issue-triage/action.yaml
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ description: Auto-label new issues with needs-triage and post a welcome comment
3
3
4
4
inputs:
5
5
GH_TOKEN:
6
-
description: 'GitHub token with issues write permission. Can use the default GITHUB_TOKEN.'
6
+
description: 'GitHub token with issues write permission. The calling workflow must grant permissions: issues: write.'
7
7
required: false
8
8
default: ${{ github.token }}
9
9
@@ -24,13 +24,17 @@ runs:
24
24
GH_TOKEN: ${{ inputs.GH_TOKEN }}
25
25
ISSUE_URL: ${{ github.event.issue.html_url }}
26
26
run: |
27
-
gh issue comment "$ISSUE_URL" --body "Thanks for opening this issue! 🎉
27
+
BODY=$(cat <<'EOF'
28
+
Thanks for opening this issue! 🎉
28
29
29
-
A maintainer will triage it within 5 business days. You can learn more about our issue workflow in the [Issue Lifecycle documentation](https://github.com/cloudoperators/common/blob/main/ISSUE_LIFECYCLE.md).
30
+
A maintainer will triage it within 5 business days. You can learn more about our issue workflow in the [Issue Lifecycle documentation](https://github.com/cloudoperators/common/blob/main/ISSUE_LIFECYCLE.md).
30
31
31
-
In the meantime, please make sure you have provided:
32
-
- A clear problem statement
33
-
- Steps to reproduce (for bugs)
34
-
- Expected vs actual behavior
32
+
In the meantime, please make sure you have provided:
0 commit comments