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

Option to only delete runs of closed PRs #5

Open
beutlich opened this issue Aug 8, 2023 · 2 comments
Open

Option to only delete runs of closed PRs #5

beutlich opened this issue Aug 8, 2023 · 2 comments

Comments

@beutlich
Copy link

beutlich commented Aug 8, 2023

Thanks for this useful action! Would it be possible to add an option to only delete runs of closed PRs, i.e. of branches where the corresponding PR is closed?

@dmvict
Copy link
Owner

dmvict commented Aug 9, 2023

Hello @beutlich

I will take a look at the GitHub documentation when I have a moment.

I'm uncertain if it's feasible to remove runs solely for closed pull requests.

@dmvict
Copy link
Owner

dmvict commented Aug 21, 2023

Hello @beutlich

I've read the doc and found no good solution for your issue. The list of associated PRs for a commit is always empty. So, I think to find a run for PR, I should iterate three different lists: workflow runs, commits, and PRs.

I've kept the action as simple as possible and will save it without any changes. If I have enough time, I'll create a new branch for your case and implement the feature there. I don't have much time, and I cannot guarantee that I can do it quickly.

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