Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

feat: change default branch from master to main #36

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 .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name: debug
on:
push:
branches: ['master']
branches: ['main']
tags: ['v[0-9]+.[0-9]+.[0-9]+']
pull_request:
types:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name: default
on:
push:
branches: ['master']
branches: ['main']
tags: ['v[0-9]+.[0-9]+.[0-9]+']
pull_request:
types:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: toolkit label bug
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
with:
regex: '^(\[BUG\])'
subject: '${{ github.event.issue.title }}'
input: 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "bug" ]'
token: '${{ secrets.GITHUB_TOKEN }}'
- name: toolkit label feature
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
with:
regex: '^(\[FEATURE\])'
subject: '${{ github.event.issue.title }}'
input: 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "feature" ]'
token: '${{ secrets.GITHUB_TOKEN }}'
- name: toolkit label chore
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
with:
regex: '^(\[CHORE\])'
subject: '${{ github.event.issue.title }}'
input: 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "chore" ]'
token: '${{ secrets.GITHUB_TOKEN }}'

- name: toolkit label question
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
with:
regex: '^(\[QUESTION\])'
subject: '${{ github.event.issue.title }}'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pulls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: toolkit label bug
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
if: ${{ github.event.pull_request.head.repo.fork == false }}
with:
regex: '^(fix)(\([\w\-]+\))?(\!)?(\:)'
subject: '${{ github.event.pull_request.title }}'
input: 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "bug" ]'
token: '${{ secrets.GITHUB_TOKEN }}'
- name: toolkit label feature
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
if: ${{ github.event.pull_request.head.repo.fork == false }}
with:
regex: '^(feat)(\([\w\-]+\))?(\!)?(\:)'
subject: '${{ github.event.pull_request.title }}'
input: 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "feature" ]'
token: '${{ secrets.GITHUB_TOKEN }}'
- name: toolkit label chore
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
if: ${{ github.event.pull_request.head.repo.fork == false }}
with:
regex: '^(chore)(\([\w\-]+\))?(\!)?(\:)'
Expand All @@ -55,7 +55,7 @@ jobs:
token: '${{ secrets.GITHUB_TOKEN }}'

- name: toolkit assignees actor
uses: 'npm/.github/actions/default@master'
uses: 'npm/.github/actions/default@main'
if: ${{ github.event.pull_request.head.repo.fork == false }}
with:
input: 'issues | addAssignees | context.repo | issue_number:${{ github.event.pull_request.number }} | assignees:[ "${{ github.actor }}" ]'
Expand Down
2 changes: 1 addition & 1 deletion actions/default/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#####
# https://github.com/actions/toolkit/blob/master/docs/container-action.md#define-metadata
# https://github.com/actions/toolkit/blob/main/docs/container-action.md#define-metadata
name: default
description: default
author: 'npm, Inc.'
Expand Down
2 changes: 1 addition & 1 deletion cloud.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
branches: ['master'],
branches: ['main'],
tagFormat: 'v${version}',
plugins: [
'@semantic-release/github',
Expand Down
2 changes: 1 addition & 1 deletion npm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
branches: ['master'],
branches: ['main'],
tagFormat: 'v${version}'
}