Skip to content
Permalink
Branch: master
Commits on Feb 14, 2020
  1. Merge pull request #37 from alphagov/automatically-delete-branches-on…

    issyl0 committed Feb 14, 2020
    …-pr-merge
    
    Automatically delete branches when PRs are merged
  2. Automatically delete branches when PRs are merged

    issyl0 committed 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.
You can’t perform that action at this time.