Comments (7)
Seems like a reasonable feature. The easiest way to implement it would probably be to copy how different settings can be specified for issues
and pulls
. Maybe there could be a labels
top level key, where settings can be specified for each label. Something like:
labels:
x:
daysUntilStale: 1
daysUntilClose: 1
y:
daysUntilStale: 14
daysUntilClose: 3
As an aside, I had thought about some drastic changes to stale configuration at one point that I think would also fit this use case…
The TL;DR, is that it should allow specifying an unlimited number of configurations. It might look something like this:
mark x stale issues:
if:
days: 1
label: x
is: issue
then:
label: stale
comment: Whatever you want to say when marking the issue
close x stale issues:
if:
days: 1
labels:
- x
- stale
is: issue
then:
close: true
mark y stale issues:
if:
days: 14
label: y
is: issue
then:
label: stale
comment: Is this still relevant? If so, please comment with any updates or addition details.
close y stale issues:
if:
days: 3
labels:
- y
- stale
only: issues
then:
close: true
So if you wanted different configuration for each label, you'd just use the if…label
combination.
This is a drastic change, so I wouldn't wait for it to happen before exploring a solution, but wanted to throw it out there.
from stale.
The logic based configuration looks like a really good idea for future extensibility and could open the doors to a highly custom configuration. One could probably use the logic system to power all existing configurations during it's implementation but as you said that's a very drastic change to the system.
The first proposal also seems like a good and simple approach to take, should be easy to lookup configuration for different issues. I guess a question it prompts though is what happens it two labels cause a rule conflict? I'm assuming it would be sensible to take the longest (thus most lenient) rule and apply it.
from stale.
Is this still relevant? If so, please comment with any updates or addition details.
from stale.
I believe this is still relevant to the probot stale project, at least no discussion has taken place to indicate otherwise 😄
from stale.
Is this still relevant? If so, please comment with any updates or addition details.
from stale.
Yes this is still relevant and has been referenced in other issues
from stale.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
from stale.
Related Issues (20)
- stale.yml doesn't take effect in apache/apisix HOT 5
- Should this be used anymore? HOT 13
- Unable to access private repository HOT 1
- Exponential backoff HOT 1
- Stalebot stopped work (last message Oct 28th) HOT 3
- Stale bot is not working in Apache SeaTunnel HOT 1
- Require a (merge/rebase) commit to un-stale a PR HOT 1
- Trouble activating the bot
- Support ignoring all pull requests
- How to install stale on GitHub Enterprise.
- Why was this closed? How do we prevent this? HOT 9
- Link in the "about" section of the repo is incorrect HOT 2
- Is there a way to send messages to slack as well?
- Continued issues with this bot: HOT 8
- New Github Issues: Close reasons HOT 3
- Question regarding label configuration
- [question] Stale in my project seems stop working after Jul HOT 2
- Is this Project even maintained anymore? HOT 5
- Is it possible to support `stale.yaml` in addition to `stale.yml`?
- stale website url returns 404
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.