ci(sponsor-triage): include open PRs, not just issues

Drop the is:issue qualifier so sponsor pull requests are synced to the
board too (search type ISSUE already returns both). A sponsor's open PR
is exactly the kind of work to prioritize reviewing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hathach
2026-06-04 12:55:32 +07:00
parent 5e3a56a387
commit c86fea62e7

View File

@ -1,6 +1,6 @@
name: Sponsor Triage
# Periodically add open issues opened by sponsors (public and private) to the private "Sponsor Triage" project board
# Periodically add open issues and PRs opened by sponsors (public and private) to the private "Sponsor Triage" project board
# Requires a PAT in secret SPONSOR_TOKEN with scopes:
# - project (write project items / fields)
# - read:org (search org issues, check Adafruit membership)
@ -111,11 +111,12 @@ jobs:
} catch (e) { /* not an Adafruit member */ }
}
// --- 3. Find each sponsor's open issues in the search scopes ---
// --- 3. Find each sponsor's open issues and PRs in the search scopes ---
// (search type ISSUE returns both issues and pull requests)
const found = new Map(); // contentId -> { tier, visibility }
for (const s of sponsors.values()) {
for (const scope of SEARCH_SCOPES) {
const q = `${scope} is:open is:issue author:${s.login}`;
const q = `${scope} is:open author:${s.login}`;
try {
const res = await github.graphql(`
query($q: String!) {