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

Delete Comment in stale branch #27

Open
sacagoncalve opened this issue Oct 31, 2024 · 1 comment
Open

Delete Comment in stale branch #27

sacagoncalve opened this issue Oct 31, 2024 · 1 comment

Comments

@sacagoncalve
Copy link

Hello. If I delete the comment generated by the github action to keep the branch around, and then if the action runs again, the branch will be marked as staled again. So delete the comment is not the best solution to keep branches for being staled. Can you give me a feedback about this? @fpicalausa

@fpicalausa
Copy link
Owner

Currently the best solutions are to either:

  • protect the branch, or
  • exclude it specifically from the run in the action configuration, or
  • push a new empty commit on top of the branch which will reset the timer, or
  • rebase your branch on top of the current trunk which will reset the timer

Initially I had thought of adding some sort of [stale:keep-forever] comments tag allowing to skip deletion, but I fear this would lead to requests to ignore those comments after a while and complicate the logic.

@sacagoncalve can you perhaps tell me more about your use case?

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

No branches or pull requests

2 participants