Skip to content
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

Remove the stale label when labeled with an exempt one #268

Merged
merged 10 commits into from
Jan 17, 2021

Conversation

C0ZEN
Copy link
Contributor

@C0ZEN C0ZEN commented Jan 16, 2021

Changes:

  • Prefix private methods with _
  • Create a new method to remove the stale label (avoid code duplication)
  • Before skipping the process when the issue/pr has an exempt label it will check if it has a stale label and remove it if it does (costing one operation)
  • Change the syntax to display the default values in italic in the readme so that prettier is no longer messing with them

Closes #136

feat(stale-and-close): add new options to change the days before clos…
to make it consistent with others methods
@hross I think there is a room for improvement regarding the class creation of the issue logger (code duplication) but I do not see how to do it without changing a lot of stuff; do you have an idea?
@C0ZEN
Copy link
Contributor Author

C0ZEN commented Jan 16, 2021

@hross this is the last one from me for this week ;)
Maybe not, I am bored.

@C0ZEN C0ZEN changed the title Remove the stale label when labeled with an exempt one WIP: Remove the stale label when labeled with an exempt one Jan 16, 2021
@C0ZEN C0ZEN changed the title WIP: Remove the stale label when labeled with an exempt one Remove the stale label when labeled with an exempt one Jan 16, 2021
prettier was not liking the previous syntax
@hross hross merged commit 7f340a4 into actions:main Jan 17, 2021
C0ZEN added a commit to C0ZEN/stale that referenced this pull request Jan 17, 2021
Remove the stale label when labeled with an exempt one  (actions#268)
@C0ZEN C0ZEN deleted the feature/remove-stale branch January 18, 2021 20:15
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.

Remove stale label when issue is tagged with exempt label after marking stale
2 participants