Skip to content

Commit

Permalink
set default for refs argument to release task
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 17, 2023
1 parent ee1844d commit dde65b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulp.d/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function addVersionEntry (file, tagName, contents = Buffer.alloc(0)) {
return file
}

module.exports = (dest, bundleName, owner, repo, ref, token, updateBranch) => async () => {
module.exports = (dest, bundleName, owner, repo, ref = 'refs/heads/main', token, updateBranch) => async () => {
const octokit = new Octokit({ auth: `token ${token}` })
let variant = ref.replace(/^refs\/heads\//, '')
if (variant === 'main') variant = 'prod'
Expand Down

0 comments on commit dde65b4

Please sign in to comment.