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

Implement a cleanup command for nightly branches #29

Open
tomuben opened this issue Jun 21, 2022 · 0 comments
Open

Implement a cleanup command for nightly branches #29

tomuben opened this issue Jun 21, 2022 · 0 comments
Labels
feature Product feature

Comments

@tomuben
Copy link
Collaborator

tomuben commented Jun 21, 2022

Background

Currently, we create new branches automatically, using a GH Actions, with the pattern rebuild/nightly_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND for example rebuild/nightly_2022_06_21_01_37_06. The push event to that branches then triggers the nightly CI builds.We need to run a cleanup manually, periodically, in order to remove the zombie branches.

It would be better to also call a cleanup task, in the same GH Actions, which removes automatically nightly branches, older than 3 working days.

Acceptance Criteria

  1. Implement a new command which:
    1. Finds all branches with the pattern rebuild/nightly_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND which are older than 3 working days
    2. Removes the branches on Github
@tomuben tomuben added the feature Product feature label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Product feature
Projects
None yet
Development

No branches or pull requests

1 participant