feat(github-actions): add stale draft PR action#3602
Open
thePunderWoman wants to merge 1 commit intoangular:mainfrom
Open
feat(github-actions): add stale draft PR action#3602thePunderWoman wants to merge 1 commit intoangular:mainfrom
thePunderWoman wants to merge 1 commit intoangular:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the closeStaleDraftPrs function to automatically close draft pull requests that have been inactive for 28 days. The review feedback suggests optimizing the search query by sorting by update date to avoid processing the same active PRs repeatedly, reducing API calls by checking the PR's updated_at timestamp before performing detailed activity checks, and increasing the pagination limit when fetching comments to ensure author activity is not missed.
45db7c0 to
ba65239
Compare
ba65239 to
2e562ce
Compare
2e562ce to
3e10147
Compare
alan-agius4
reviewed
Apr 14, 2026
alan-agius4
reviewed
Apr 14, 2026
alan-agius4
reviewed
Apr 14, 2026
alan-agius4
requested changes
Apr 14, 2026
alan-agius4
reviewed
Apr 14, 2026
alan-agius4
reviewed
Apr 14, 2026
b869e16 to
31a2dcd
Compare
josephperrott
requested changes
Apr 14, 2026
31a2dcd to
f6e54a8
Compare
f9d6af9 to
8c018d2
Compare
alan-agius4
reviewed
Apr 15, 2026
alan-agius4
approved these changes
Apr 15, 2026
Contributor
alan-agius4
left a comment
There was a problem hiding this comment.
LGTM, thanks for this. Just one comment
This adds a new behavior to the lock-closed local-action. It automatically closes draft PRs with no activity from the PR author over the past 4 weeks.
8c018d2 to
eafb789
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a new behavior to the lock-closed local-action. It automatically closes draft PRs with no activity from the PR author over the past 4 weeks. This was created based on a policy conversation amongst the team members.