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

Remove githubfile's branch when PR is merged #10

Closed
barryib opened this issue Mar 20, 2020 · 2 comments
Closed

Remove githubfile's branch when PR is merged #10

barryib opened this issue Mar 20, 2020 · 2 comments

Comments

@barryib
Copy link
Member

barryib commented Mar 20, 2020

It would be nice to remove githubfile's branches after PRs are merged.

image

@antonbabenko
Copy link
Member

This has happened because first PR was merged successfully, and it changed the master branch. Then (during the next PR merge) the destination branch has not been updated automatically. Such updates failed and I used to rerun the same code once more.

githubfile provider does not have a way to rebase each PR before the merge.

In the meanwhile, I will run script to remove such branches from all repositories.

@antonbabenko
Copy link
Member

This command removed remainings:

git branch -r | awk -F/ '/\/terraform-provider-githubfile-/{print $2}' | xargs -I {} git push origin --delete {}

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