Comments (17)
@derTobsch You can specify an exempt label -
Line 21 in 0879694
from stale.
i've settled on using the stale label as the exempt label.
ie.
stale-issue-label: 'kind/stale'
stale-pr-label: 'kind/stale'
exempt-issue-label: 'kind/stale'
exempt-pr-label: 'kind/stale'
this way, once the action applies the label, those issues/prs are ignored from then on and never auto-closed.
from stale.
@derTobsch late to the party but milestones exempt exists now
from stale.
There's not a better way yet, that seems like a good idea though. Maybe we should change the action so that -1
means never close the issue?
from stale.
Added #16 to do just that.
from stale.
It would be nice if there would be labels that would prevent the stale bot to stale/close a issue or maybe if a issue/pr has a milestone.
from stale.
@derTobsch You can specify an exempt label -
Line 21 in 0879694
Ok. But I cannot be done with a milestone or? Or is a milestone only a label in the background?
from stale.
Is there a way to avoid all issues and only mark prs as stale?
from stale.
@marbar3778 yes, almost all options are split between issues and PRs.
from stale.
I have days before stale set to -1 and days before stale for PRs set to a number, yet issues are still closed.
from stale.
@marbar3778 Can you paste your YAML in here so we can try to recreate the issue?
from stale.
name: "Close stale pull requests"
on:
schedule:
- cron: "0 0 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions."
days-before-stale: -1
days-before-pr-stale: 10
days-before-pr-close: 4
exempt-pr-labels: "S:wip"
from stale.
Hi @marbar3778, I tested with your config you provided and the behavior seemed to work as expected. Do you have any more information you can provide? Possibly a link to the run?
from stale.
here is a run: https://github.com/tendermint/tendermint/runs/3156950356?check_suite_focus=true.
It closed three issues the last run.
from stale.
ok @marbar3778 I see what is happening. You had existing stale issues example in your repo prior to making the change to not mark issues as stale. So any issues not already labeled as stale are all good and will be ignored. You can either manually go remove the stale label from old issues in your case or set days-before-close: -1
.
I hope this helps!
from stale.
days-before-stale
controls the day before an issue is labeled with the stale label, while days-before-close
controls how many days an issue will remain open once it is already labeled stale
from stale.
ohhhh, i see, thank you
from stale.
Related Issues (20)
- Add option to unassign an issue HOT 2
- [wishlist] Support for GitHub Discussions? HOT 3
- Action continues marking PRs as stale, although it should not do it HOT 3
- Please fix your release notes HOT 1
- [Feature Request] Support `remove-stale-label-after-reopen` option HOT 2
- reduce the number of issues this action queries HOT 3
- Unable to reserve cache with key _state HOT 10
- Multiple token option HOT 3
- [Feature Request] Do not close PRs that have auto-merge activated HOT 1
- Update default runtime to node 20 HOT 3
- Egypt.com HOT 2
- CHANGELOG.md has not been updated for v8.0.0 HOT 1
- Actions Marketplace is recommending v4.1.1 as the latest version HOT 3
- I HOT 2
- standard-version is deprecated, switch to in-place replacement or release-please? HOT 1
- [email protected]
- `close-issue-reason` not working. everything closes as `completed` HOT 2
- How to run only on PRs? HOT 7
- Add the ability to distinguish between last commit and last comment dates on a PR HOT 1
- Draft PR's timer should start from when it was marked as ready instead of PR creation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stale.