auto-detect default branch on [github nycrc osslifecycle] (#5234)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
chris48s
2020-06-25 21:15:20 +01:00
committed by GitHub
parent 9acc305d31
commit 270c29f757
7 changed files with 11 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ const contentSchema = Joi.object({
async function fetchRepoContent(
serviceInstance,
{ user, repo, branch = 'master', filename }
{ user, repo, branch = 'HEAD', filename }
) {
const errorMessages = errorMessagesFor(
`repo not found, branch not found, or ${filename} missing`