Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "Close stale issues"

# yamllint disable-line rule:truthy
on:
schedule:
- cron: "30 1 * * *"

permissions:
contents: read

jobs:
stale:
name: Find stale issues
runs-on: ubuntu-24.04
if: github.repository == 'thesofproject/linux'
permissions:
issues: write

steps:
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
with:
stale-issue-message: 'This issue has been marked as stale because it has been open (more
Comment on lines +20 to +23

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ujfalusi @bardliao I assume we also want to close PRs, but I do notice some do linger longer then FR PRs before merge. Should we make this 60 days ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will it also close the draft PRs?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Will it also close the draft PRs?

By deafult yes. I can add exempt-draft-pr: true to ignore drafts.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, it would be helpful. Sometimes, a draft PR is just waiting for the test result. But on the other hands, people might forget the PR at all, and we need to close it in that case. @lgirdwood What do you think?

than) 60 days with no activity. Remove the stale label or add a comment saying that you
would like to have the label removed otherwise this issue will automatically be closed
in 14 days. Note, that you can always re-open a closed issue at any time.'
Comment on lines +23 to +26
days-before-stale: 60
days-before-close: 14
stale-issue-label: 'stale'
exempt-issue-labels: 'metabug,in progress,enhancement'
operations-per-run: 400
Loading