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 branches which are going to be merged into non default branch #33

Open
alaex777 opened this issue May 27, 2024 · 1 comment
Open

Comments

@alaex777
Copy link

Hi! First of all, I would like to thank you for your project, it's great, it helps us every day.

Unfortunately there is a problem. Your script deletes a branch which is going to be merged and it has an open pull request not to the default branch.

It seams like github api method f'{self.github_base_url}/repos/{self.github_repo}/commits/{commit_hash}/pulls' shows only pull requests to the main branch. Maybe you should just take all open pull requests and check for branches there. It seams to solve this issue.

@luispabon
Copy link
Contributor

Thanks for the report, I'll look into this.

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