Skip to content

Commit 6ca7318

Browse files
authored
chore: rename master to main (#761)
1 parent 811e716 commit 6ca7318

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.github/workflows/benchmark.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
contents: read
1313
outputs:
1414
PR-BENCH: ${{ steps.benchmark-pr.outputs.BENCH_RESULT }}
15-
MASTER-BENCH: ${{ steps.benchmark-master.outputs.BENCH_RESULT }}
15+
MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }}
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:
@@ -38,17 +38,17 @@ jobs:
3838
content="${content//$'\r'/'%0D'}"
3939
echo "::set-output name=BENCH_RESULT::$content"
4040
41-
# master benchmark
41+
# main benchmark
4242
- uses: actions/checkout@v4
4343
with:
44-
ref: 'master'
44+
ref: 'main'
4545

4646
- name: Install
4747
run: |
4848
npm install --ignore-scripts
4949
5050
- name: Run benchmark
51-
id: benchmark-master
51+
id: benchmark-main
5252
run: |
5353
npm run --silent bench > ./bench-result
5454
content=$(cat ./bench-result)
@@ -73,9 +73,9 @@ jobs:
7373
```
7474
${{ needs.benchmark.outputs.PR-BENCH }}
7575
```
76-
**MASTER**:
76+
**MAIN**:
7777
```
78-
${{ needs.benchmark.outputs.MASTER-BENCH }}
78+
${{ needs.benchmark.outputs.MAIN-BENCH }}
7979
```
8080
8181
- uses: actions-ecosystem/action-remove-labels@v1

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- master
87
- next
98
- 'v*'
109
paths-ignore:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fast-json-stringify
22

3-
[![CI](https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml)
3+
[![CI](https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml)
44
[![NPM version](https://img.shields.io/npm/v/fast-json-stringify.svg?style=flat)](https://www.npmjs.com/package/fast-json-stringify)
55
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)
66
[![NPM downloads](https://img.shields.io/npm/dm/fast-json-stringify.svg?style=flat)](https://www.npmjs.com/package/fast-json-stringify)

benchmark/bench-cmp-branch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const simpleGit = require('simple-git')
88
const git = simpleGit(process.cwd())
99

1010
const COMMAND = 'npm run bench'
11-
const DEFAULT_BRANCH = 'master'
11+
const DEFAULT_BRANCH = 'main'
1212
const PERCENT_THRESHOLD = 5
1313
const greyColor = '\x1b[30m'
1414
const redColor = '\x1b[31m'

test/json-schema-test-suite/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ It contains a set of JSON objects that implementors of JSON Schema validation li
55

66
# How to add another test case?
77

8-
1. Navigate to [JSON-Schema-Test-Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/master/tests)
8+
1. Navigate to [JSON-Schema-Test-Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/main/tests)
99
2. Choose a draft `draft4`, `draft6` or `draft7`
1010
3. Copy & paste the `test-case.json` to the project and add a test like in the `draft4.test.js`

0 commit comments

Comments
 (0)