-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Favoring default_branch instead of "master"
First, "master" is a lazy assumption. Github supports a default branch, which at the time of writing assumes "master". However, the default of "master" may not be the case. Instead, this change now checks with the repository: "What is your default branch?" From that default branch Huborg creates pull requests. The default_branch is an attribute on the repository object ([as per documentation][1]). Note, I discovered this when I ran Samvera's maintenance script to push up our recent changes to Samvera's Contributing document. See [samvera/maintenance#44][2]. ```console Octokit::NotFound: GET https://api.github.com/repos/samvera-labs/sufia.io/git/refs/heads/master: 404 - Not Found // See: https://developer.github.com/v3/git/refs/#get-a-reference ```` [1]:https://developer.github.com/v3/repos/#list-organization-repositories [2]:samvera/maintenance#44
- Loading branch information
Showing
1 changed file
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters