Skip to content

Remove the stale-pr-to-draft workflow - #3618

Merged
HughParry merged 2 commits into
mainfrom
remove-stale-pr-to-draft
Oct 26, 2026
Merged

HughParry merged 2 commits into
mainfrom
remove-stale-pr-to-draft

Conversation

@HughParry

Copy link
Copy Markdown
Contributor

What changed: Deleted .github/workflows/stale-pr-to-draft.yml, the job that turned PRs with no updates for a day back into drafts. Turning PRs back into drafts after a while has no value. Same change as prosopo/captcha-private#5518.

Why it was spamming PRs: Every 6 hours it picked a PR with no updates for a day and did two things in this order:

  1. Posted a "this PR has been converted to draft" comment.
  2. Tried to convert the PR to a draft.

Step 2 has failed every time (GraphQL: Resource not accessible by integration (convertPullRequestToDraft)): the workflow's token isn't allowed to do it. 196 of the last 200 runs failed. So no PR was ever drafted, but every run left a comment.

The comment counts as an update. So 24 hours later the same PR looked stale again and got another comment, forever. The "No updates since …" time in each comment is the bot's own previous comment. #3156 has 22 of them.

Effect: No more of those comments. No PR is drafted automatically for going quiet.

Tests: None. This only deletes a workflow.

@HughParry
HughParry merged commit 1a000cb into main Oct 26, 2026
8 of 15 checks passed
@HughParry
HughParry deleted the remove-stale-pr-to-draft branch October 26, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant