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

0 days does not remove all pipelines #144

Open
benwalder opened this issue Apr 6, 2022 · 2 comments
Open

0 days does not remove all pipelines #144

benwalder opened this issue Apr 6, 2022 · 2 comments

Comments

@benwalder
Copy link

0 days in the config:

module.exports = {
    gitlabUrl: 'https://gitlab.com',
    projectId: '1',
    accessToken: 'GLPAT_xyz',
    days: 0,
    trace: false,
};

always results in 0 pipelines found. Any pipelines less than a day old cannot be deleted.

It seems a small change in gitlab.tx isOlderThanDays would allow this.

@screendriver
Copy link
Owner

What would be your expected behaviour when days is set to 0? Delete all? Delete all since yesterday? Delete all just from today? Or don't allow 0 at all?

@benwalder
Copy link
Author

Thanks for considering my request. I was looking for a way to delete everything. "0 days old" seems like it would delete all, with 0 days meaning any pipelines that are not a day old yet (e.g. 5 min ago, 15hrs ago). If it is felt that isn't intuitive enough, then it could be implemented another way.

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