From dde65b4bc6710172c8e357d774635b01e5164aa1 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 17 Nov 2023 14:49:09 -0700 Subject: [PATCH] set default for refs argument to release task --- gulp.d/tasks/release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp.d/tasks/release.js b/gulp.d/tasks/release.js index beae5b1..ef38f72 100644 --- a/gulp.d/tasks/release.js +++ b/gulp.d/tasks/release.js @@ -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'