Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename default branch #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Options:
-o, --owner (required) owner of the Github repository
-r, --repository (required) name of the Github repository
-d, --data (DEPRECATED) use pull requests or commits (choices: pulls, commits) [commits]
-b, --branch name of the default branch [master]
-b, --branch name of the default branch [main]
-n, --tag-name tag name for upcoming release [upcoming]
-a, --auth prompt to auth with Github - use this for private repos and higher rate limits
-k, --token need to use this or --auth for private repos and higher rate limits
Expand Down
2 changes: 1 addition & 1 deletion bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var opts = parser
.requiredOption('-o, --owner <name>', '(required) owner of the Github repository')
.requiredOption('-r, --repository <name>', '(required) name of the Github repository')
.option('-d, --data [type]', '(DEPRECATED) use pull requests or commits (choices: pulls, commits)', 'commits')
.option('-b, --branch [name]', 'name of the default branch', 'master')
.option('-b, --branch [name]', 'name of the default branch', 'main')
.option('-n, --tag-name [name]', 'tag name for upcoming release', 'upcoming')
.option('-a, --auth', 'prompt to auth with Github - use this for private repos and higher rate limits')
.option('-k, --token [token]', 'need to use this or --auth for private repos and higher rate limits')
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ git checkout master
npm install
npm version $1
VERSION=`cat package.json | json version`
node bin/index.js -o lalitkapoor -r github-changes --only-pulls -v -a --use-commit-body --reverse-changes -n v$VERSION
node bin/index.js -o lalitkapoor -r github-changes --only-pulls -v -a --use-commit-body --reverse-changes -n v$VERSION -b master
git add CHANGELOG.md
git commit --amend --no-edit
git push origin master
Expand Down