Skip to content

Commit

Permalink
Rename references from master branch to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Jan 22, 2021
1 parent 9543cb8 commit e2ad129
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-artifacts-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Initialize tachometer comment
uses: andrewiggins/tachometer-reporter-action@allow-globs
uses: andrewiggins/tachometer-reporter-action@main
with:
initialize: true

Expand Down Expand Up @@ -54,6 +54,6 @@ jobs:
- run: ls -al
- run: ls -al results
- name: Report Tachometer Results
uses: andrewiggins/tachometer-reporter-action@allow-globs
uses: andrewiggins/tachometer-reporter-action@main
with:
path: results/*.json
4 changes: 2 additions & 2 deletions .github/workflows/pr-multi-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# Could use this to simulate benchmark running for random number of seconds
echo $((($RANDOM%(5000-1000))+1000))
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/test-results.json
initialize: true # Should work without report-id
Expand All @@ -32,7 +32,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Report Other Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/other-results.json
initialize: false
6 changes: 3 additions & 3 deletions .github/workflows/pr-multi-measure-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Initialize tachometer comment
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
initialize: true

Expand All @@ -27,7 +27,7 @@ jobs:
# Could use this to simulate benchmark running for random number of seconds
echo $((($RANDOM%(5000-1000))+1000))
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/multi-measure-results.json
report-id: multi-bench-1
Expand All @@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Report Other Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/multi-measure-other-results.json
report-id: multi-bench-2
6 changes: 3 additions & 3 deletions .github/workflows/pr-multi-measure-summarize-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Initialize tachometer comment
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
initialize: true

Expand All @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/multi-measure-results.json
report-id: multi-bench-1
Expand All @@ -40,7 +40,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Report Other Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/multi-measure-names.json
report-id: multi-measure-names
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Initialize tachometer comment
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
initialize: true

Expand All @@ -32,7 +32,7 @@ jobs:
# Could use this to simulate benchmark running for random number of seconds
echo $((($RANDOM%(5000-1000))+1000))
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/test-results.json
report-id: test-bench-1
Expand All @@ -46,7 +46,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Report Other Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/other-results.json
report-id: test-bench-2
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "**"
push:
branches:
- master
- main

jobs:
test:
Expand All @@ -27,7 +27,7 @@ jobs:
pr-bench-name: local-framework
base-bench-name: base-framework

master:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -37,7 +37,7 @@ jobs:
- run: npm ci
- run: npm run test:coverage
- name: Report Other Tachometer Result
uses: andrewiggins/tachometer-reporter-action@master
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/other-results.json
report-id: other-results
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ Acquiring comment lock uses a state machine. See comments in comments.js for det
3. Create release in GitHub with notes on changes
4. Check out new tag (e.g. "v2.1.0")
5. Move major version to new tag (e.g. "v2"):
- `git push origin :refs/tags/<major_ver_tagname>; git tag -fa <major_ver_tagname>; git push origin master --tags`
- `git push origin :refs/tags/<major_ver_tagname>; git tag -fa <major_ver_tagname>; git push origin main --tags`
- Message for major tag should be something like `Latest release of the v2 line`
4 changes: 2 additions & 2 deletions dist/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -10920,7 +10920,7 @@ function Summary({
, usesDefaults && [
" ",
h('a', {
href: "https://github.com/andrewiggins/tachometer-reporter-action/blob/master/README.md#summary",
href: "https://github.com/andrewiggins/tachometer-reporter-action/blob/main/README.md#summary",
target: "_blank",}
, "Customize summary"

Expand Down Expand Up @@ -16204,7 +16204,7 @@ var escapeStringRegexp = string => {
};

const fullVersion = `v${
"2.2.0"
"2.3.0"
}`;
const majorVersion = ` v${
2
Expand Down
2 changes: 1 addition & 1 deletion src/getCommentBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function Summary({
{usesDefaults && [
" ",
<a
href="https://github.com/andrewiggins/tachometer-reporter-action/blob/master/README.md#summary"
href="https://github.com/andrewiggins/tachometer-reporter-action/blob/main/README.md#summary"
target="_blank"
>
Customize summary
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const workflow = {
url:
"https://api.github.com/repos/andrewiggins/tachometer-reporter-action/actions/workflows/1850458",
html_url:
"https://github.com/andrewiggins/tachometer-reporter-action/blob/master/.github/workflows/pr.yml",
"https://github.com/andrewiggins/tachometer-reporter-action/blob/main/.github/workflows/pr.yml",
badge_url:
"https://github.com/andrewiggins/tachometer-reporter-action/workflows/Pull%20Request%20Test/badge.svg",
};
Expand Down

0 comments on commit e2ad129

Please sign in to comment.