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:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user