From 7471e95cb7433b4f29cfa68da0a652ec8cf630b6 Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Thu, 20 Jul 2023 20:37:25 +0200 Subject: [PATCH] chore: update default branch name (#678) ## Description This PR updates the default branch name to match the new Git setup --- .github/workflows/test.yml | 2 +- .husky/commit-msg | 4 ++-- .releaserc | 2 +- README.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29d60244..7c503f73 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ on: workflow_call: pull_request: branches: - - master + - main - beta - '+([0-9])?(.{+([0-9]),x}).x' diff --git a/.husky/commit-msg b/.husky/commit-msg index 48d896a4..1ea5a3c0 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -3,8 +3,8 @@ # https://typicode.github.io/husky/guide.html#disable-husky-in-ci-docker-prod [ -n "$CI" ] && exit 0 -# only run commitlint on master (for admins pushing directly to branch) -[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ] && exit 0 +# only run commitlint on main (for admins pushing directly to branch) +[ "$(git rev-parse --abbrev-ref HEAD)" != "main" ] && exit 0 . "$(dirname -- "$0")/_/husky.sh" diff --git a/.releaserc b/.releaserc index e8ebf7a4..90f4e86a 100644 --- a/.releaserc +++ b/.releaserc @@ -1,7 +1,7 @@ { "repositoryUrl": "git@github.com:kelektiv/node-cron.git", "branches": [ - "master", + "main", { "name": "beta", "prerelease": true diff --git a/README.md b/README.md index 61eba490..bd8e8cdb 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ var job = new CronJob( Note - In the example above, the 4th parameter of `CronJob()` automatically starts the job on initialization. If this parameter is falsy or not provided, the job needs to be explicitly started using `job.start()`. -There are more examples available in this repository at: [/examples](https://github.com/kelektiv/node-cron/tree/master/examples) +There are more examples available in this repository at: [/examples](https://github.com/kelektiv/node-cron/tree/main/examples) ## Available Cron patterns