Skip to content

Commit

Permalink
chore: update default branch name (#678)
Browse files Browse the repository at this point in the history
## Description
This PR updates the default branch name to match the new Git setup
  • Loading branch information
sheerlox committed Jul 20, 2023
1 parent c6fc842 commit 7471e95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:
pull_request:
branches:
- master
- main
- beta
- '+([0-9])?(.{+([0-9]),x}).x'

Expand Down
4 changes: 2 additions & 2 deletions .husky/commit-msg
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion .releaserc
@@ -1,7 +1,7 @@
{
"repositoryUrl": "git@github.com:kelektiv/node-cron.git",
"branches": [
"master",
"main",
{
"name": "beta",
"prerelease": true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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

Expand Down

0 comments on commit 7471e95

Please sign in to comment.