-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Need expert to vet my workflow using this Action & Feature Request: remove-stale-when-updated for issue/PR #373
Comments
@pllim adding a label as stale by hand is quite experimental or should I say not the usual way. For information, I can already tell you that the stale message will not be added to the issue if you add the label manually. I think that you should change the cron to run daily (to respect at one day close the warning messages about stale/close). BTW I think I found an issue based on the code: the option
So based on what I understand, it's more:
const issueHasUpdate: boolean = IssuesProcessor._updatedSince(
issue.updated_at,
daysBeforeClose
);
issueLogger.info(`$$type has been updated: ${issueHasUpdate}`);
// should we un-stale this issue?
if (this.options.removeStaleWhenUpdated && issueHasComments) {
await this._removeStaleLabel(issue, staleLabel);
} I agree that we need to improve the option The rest is good based on what you needs IMO but eventually you will find out by yourself once the action is running ;) |
Thanks for the quick and thoughtful replies! I'll ponder on this for a bit, as I am not beyond modifying our existing process either. |
@pllim if you want to play it safe, maybe you can still create and merge your action configuration (with a daily cron?) and set |
And the PR for the new options #383 |
Hello. I am sorry if I am abusing Issues like this, but I don't see any Discussions set up for this repo and I am unable to understand all nuances of the available features by just looking at README. I am in the process of moving a home grown stale bot to Actions, and I think this should do what I want but I am not 100% sure.
I am thinking having it run weekly, going through the 50 oldest stuff first (hence,
ascending: true
).Desired issue handling:
stale-issue-message
and start the clock. Skip issues with "keep-open" label.close-issue-message
, slap a "closed-by-bot" label, and close the issue.Desired pull request handling:
stale-pr-message
, slap a "Close?" label, and start the clock.close-pr-message
, slap a "closed-by-bot" label, and close the PR.Things I am not sure about using this Action:
stale-issue-message
and that's how it knows whether to proceed withclose-issue-message
or not. I don't know what is the equivalent logic here. If you don't have something like this, what is the closest logic that I can use?remove-stale-when-updated
but I think I need different settings for issue and PR, respectively; hence, the feature request.I really like what you have done here and wish to use this Action if possible. Thank you for your contributions to the FOSS community!
The text was updated successfully, but these errors were encountered: