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
ci: unlabel on edited body, cap ref count for pull_request_target safety
Two review findings:
- On `edited` events the script now diffs `payload.changes.body.from`
against the new body and removes 'in-progress' from any issue whose
Closes/Fixes/Resolves reference was deleted. Previously, editing a PR
to drop `Closes#42` left #42 shielded from the stale bot indefinitely.
- Cap the number of references processed per event at 50 (`MAX_REFS`).
`pull_request_target` runs on PRs from forks, so an accidental or
malicious PR body with thousands of matches would burn the repo's
REST budget on labeling calls.
Also adds a one-line comment noting that cross-repo refs (owner/repo#N)
are intentionally out of scope; this workflow only labels issues in
the current repo.
0 commit comments