Skip to content

Commit

Permalink
Merge pull request #2 from asmecher/master-to-main-rename
Browse files Browse the repository at this point in the history
Rename references to master branch to main instead
  • Loading branch information
asmecher committed Feb 26, 2021
2 parents 9f966b4 + c7c7e5c commit 8b2c3cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/release/buildRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const shell = require('shelljs')
const checkSumFile = require('../utils/checkSumFile')
const git = require('../utils/git')

module.exports = async ({ pluginName: fileName, repoUrl, branch = 'master' }) => {
module.exports = async ({ pluginName: fileName, repoUrl, branch = 'main' }) => {
info('Building the release')
debug('Clone the repo to start with a fresh copy')
const { stdout: cloneTempDir } = await execa('mktemp', ['-d'])
Expand Down
2 changes: 1 addition & 1 deletion src/release/createTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const process = require('process')
const { info, error } = require('../utils/log')
const git = require('../utils/git')

const createTag = async ({ pluginName, newVersion, repoUrl, branch = 'master' }) => {
const createTag = async ({ pluginName, newVersion, repoUrl, branch = 'main' }) => {
info(
'We will commit the change, tag the commit and push it to Github. Then we will create a release draft, and upload an asset to the release.'
)
Expand Down
2 changes: 1 addition & 1 deletion src/validate-new-release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const { error, success, info } = require('../utils/log')
module.exports = async () => {
try {
info('Checking new release')
const command = shell.exec('git diff origin/master | grep ^+[^+]')
const command = shell.exec('git diff origin/main | grep ^+[^+]')
const changedLines = command.stdout

// Extract release, md5 data from diff
Expand Down

0 comments on commit 8b2c3cb

Please sign in to comment.