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

Automatically delete branches when PRs are merged #37

Merged
merged 1 commit into from Feb 14, 2020

Conversation

@issyl0
Copy link
Member

issyl0 commented Feb 14, 2020

  • This is an option that GitHub added to their web UI last year, and I
    started going through repos and ticking the option manually because it
    wasn't in the API.
  • Now it's in the API (https://developer.github.com/v3/repos/#edit), so
    let's automatically configure all the repos to delete HEAD branches
    when PRs are merged. This doesn't delete the branches of PRs that are
    closed.
  • This saves developers time and cuts down on the amount of stale, merged
    branches left on repos for years going forward.
- This is an option that GitHub added to their web UI last year, and I
  started going through repos and ticking the option manually because it
  wasn't in the API.
- Now it's in the API (https://developer.github.com/v3/repos/#edit), so
  let's automatically configure all the repos to delete HEAD branches
  when PRs are merged. This doesn't delete the branches of PRs that are
  _closed_.
- This saves developers time and cuts down on the amount of stale, merged
  branches left on repos for years going forward.
Copy link
Member

brucebolt left a comment

👏

@issyl0 issyl0 merged commit 319f5b6 into master Feb 14, 2020
1 check passed
1 check passed
continuous-integration/jenkins/branch This commit looks good
Details
@issyl0 issyl0 deleted the automatically-delete-branches-on-pr-merge branch Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.