Registry Mirror
Skip to content

Conversation

@andygrove

@andygrove andygrove commented Apr 11, 2024 •

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #8865

Rationale for this change

We currently have many stale PRs open, some of them from around one year ago. This creates an additional maintenance burden for reviewers and also can result in older active PRs being ignored.

What changes are included in this PR?

Add a workflow for closing stale PRs.

Are these changes tested?

Not yet. I think we can only test this after merging.

Are there any user-facing changes?

No

@andygrove andygrove added the development-process Related to development process of DataFusion label Apr 11, 2024
@andygrove
andygrove requested a review from alamb April 11, 2024 15:47
@github-actions github-actions Bot removed the development-process Related to development process of DataFusion label Apr 11, 2024

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andygrove -- closing stale PRs makes sense. I am not sure about closing stale issues

Comment thread .github/workflows/stale.yml Outdated
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about closing issues with no activity -- some are legit bugs or discussions. Closing stale PRs makes a lot of sense

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .github/workflows/stale.yml Resolved
@andygrove andygrove changed the title Add GitHub workflow to close stale issues and PRs chore: add GitHub workflow to close stale PRs Apr 11, 2024
Comment thread .github/workflows/stale.yml Outdated
# do not close stale issues
days-before-issue-stale: -1
days-before-issue-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }} No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing empty newline at the end of the file

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Fixed.

@phillipleblanc phillipleblanc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@comphead comphead left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice thanks @andygrove it really helps!


## Stale PRs

Pull requests will be marked with a `stale` label after 60 days of inactivity and then closed 7 days after that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking perhaps its good to also attach a link to .github/workflows/stale.yml to let the user check stale PR settings.... not sure if its super needed, but if lets say we change PR stale strategy in the yml but forget to change it in the contributor guide

@andygrove
andygrove requested a review from alamb April 12, 2024 17:18

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @andygrove -- this is going to be a game changer 🙏

I think @comphead 's suggestion https://github.com/apache/arrow-datafusion/pull/10046/files#r1562736081 is a good one, but we could also do it as a follow on PR

@andygrove
andygrove merged commit 60305ed into apache:main Apr 12, 2024
@andygrove
andygrove deleted the stale-issues branch April 12, 2024 18:43
@alamb

alamb commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

🎉

alamb pushed a commit to apache/arrow-rs that referenced this pull request Jun 23, 2026
similar to what datafusion has:

- apache/datafusion#10046

PRs are building up on this repo, and quite a few seem to be stale.
it'll make it easier for us to see which PRs are actually active
(whether draft or not) if we close the stale ones.

we could set the
[exempt-pr-labels](https://github.com/marketplace/actions/close-stale-issues#exempt-pr-labels)
option if we have some PRs we prefer to keep alive
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.

Add GitHub workflow to close stale PRs

5 participants