Skip to content

Commit f9b722b

Browse files
committed
docs: clarify GitHub Models availability in AI triage workflow
Add comments explaining that GitHub Models access may not be available in all environments and that 401 (Unauthorized) errors are expected and handled gracefully. The workflow will skip AI triage silently but continue processing the issue through other automation.
1 parent 418f46f commit f9b722b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ai-triage.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
- opened
66
- edited
77

8+
# Note: This workflow uses GitHub Models which may not be available
9+
# in all environments. If GitHub Models API returns 401 or is unavailable,
10+
# the workflow will skip gracefully and the issue will still be processed
11+
# by other automation (labeler, etc.)
12+
813
permissions:
914
issues: write
1015
contents: read
@@ -68,6 +73,10 @@ jobs:
6873
}
6974
7075
// ── Call GitHub Models ────────────────────────────────────────
76+
// Note: GitHub Models access may not be available in all environments.
77+
// If the API returns 401 (Unauthorized), it means GitHub Models is not
78+
// enabled for this repository or the current token lacks access.
79+
// The workflow will gracefully skip AI triage and continue.
7180
let triage;
7281
try {
7382
const res = await fetch(
@@ -120,6 +129,8 @@ jobs:
120129
}
121130
);
122131
132+
// GitHub Models may return 401 if not available for this repository.
133+
// This is expected and not an error — the workflow simply skips AI triage.
123134
if (!res.ok) {
124135
console.log(`GitHub Models returned ${res.status} — skipping AI triage.`);
125136
return;

0 commit comments

Comments
 (0)