Skip to content

Commit 8e16db4

Browse files
committed
chore: set default branch to main
1 parent ff5adfb commit 8e16db4

File tree

14 files changed

+55
-63
lines changed

14 files changed

+55
-63
lines changed

.github/workflows/automerge.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/project.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- labeled
1010
- closed
1111
- assigned
12-
- connected
1312

1413
env:
1514
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tests.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ jobs:
131131
elements/
132132
tools/
133133
134-
# Validate the build to master was successful; open an issue if not
134+
# Validate the build to main was successful; open an issue if not
135135
validate:
136-
name: Validate successful build on master
136+
name: Validate successful build on main
137137
needs:
138138
- build
139139
- test
@@ -182,8 +182,8 @@ jobs:
182182
project: 2 # The project-number from organization project
183183
column: Prioritized
184184
close-previous: true
185-
title: "❌ Build is failing on master"
186-
body: "It looks like the build is currently failing on the master branch. See failed [action results](https://github.com/patternfly/patternfly-elements/actions/runs/${{ github.run_id }}) for more details."
185+
title: "❌ Build is failing on main"
186+
body: "It looks like the build is currently failing on the main branch. See failed [action results](https://github.com/patternfly/patternfly-elements/actions/runs/${{ github.run_id }}) for more details."
187187
- name: Open issue if tests fail
188188
if: |
189189
github.event_name == 'push'
@@ -195,5 +195,7 @@ jobs:
195195
project: 2 # The project-number from organization project
196196
column: Prioritized
197197
close-previous: true
198-
title: "🧪 Tests are failing on master"
199-
body: "It looks like the build is currently failing on the master branch. See failed [action results](https://github.com/patternfly/patternfly-elements/actions/runs/${{ github.run_id }}) for more details."
198+
title: "🧪 Tests are failing on main"
199+
body: "It looks like the build is currently failing on the main branch. See failed [action results](https://github.com/patternfly/patternfly-elements/actions/runs/${{ github.run_id }}) for more details."
200+
201+

.github/workflows/visual-regression.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ on:
66
description: Origin to test, e.g. https://deploy-preview-1804--patternfly-elements.netlify.app/
77
required: true
88
branch:
9+
description: Branch being run on
910
required: false
1011
issueNumber:
12+
description: issue or pull request number being run for
1113
required: false
1214
netlifyBuildContext:
15+
description: "The Netlify build context: https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts"
1316
required: false
1417
deployUrl:
18+
description: The deploy url generated by netlify
1519
required: false
1620
url:
21+
description: The url generated by netlify
1722
required: false
1823

1924
jobs:

.github/workflows/workflow.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ name: Move PR cards on project board
44

55
on:
66
pull_request:
7-
types: [opened, closed, labeled, unlabeled, converted_to_draft, ready_for_review, review_requested]
7+
types:
8+
- opened
9+
- closed
10+
- labeled
11+
- unlabeled
12+
- converted_to_draft
13+
- ready_for_review
14+
- review_requested
815

916
env:
1017
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PatternFly Elements [![Netlify status](https://api.netlify.com/api/v1/badges/bf40e3e7-4f98-4088-91d9-112dbe8a1872/deploy-status)](https://patternfly-elements.netlify.app) ![build status](https://img.shields.io/github/workflow/status/patternfly/patternfly-elements/Build%20&%20test/master) ![commit](https://badgen.net/github/last-commit/patternfly/patternfly-elements) ![latest version](https://img.shields.io/github/lerna-json/v/patternfly/patternfly-elements?label=version) ![contributors](https://img.shields.io/github/contributors/patternfly/patternfly-elements)
1+
# PatternFly Elements [![Netlify status](https://api.netlify.com/api/v1/badges/bf40e3e7-4f98-4088-91d9-112dbe8a1872/deploy-status)](https://patternfly-elements.netlify.app) ![build status](https://img.shields.io/github/workflow/status/patternfly/patternfly-elements/Build%20&%20test/main) ![commit](https://badgen.net/github/last-commit/patternfly/patternfly-elements) ![latest version](https://img.shields.io/github/lerna-json/v/patternfly/patternfly-elements?label=version) ![contributors](https://img.shields.io/github/contributors/patternfly/patternfly-elements)
22

33
## Table of Contents
44

docs/_includes/_foot.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<a href="https://github.com/patternfly/patternfly-elements">GitHub</a>
1414
</li>
1515
<li>
16-
<a href="https://github.com/patternfly/patternfly-elements/blob/master/CONTRIBUTING.md">Contributing</a>
16+
<a href="https://github.com/patternfly/patternfly-elements/blob/main/CONTRIBUTING.md">Contributing</a>
1717
</li>
1818
<li>
19-
<a href="https://github.com/patternfly/patternfly-elements/blob/master/CODE_OF_CONDUCT.md">Code of
19+
<a href="https://github.com/patternfly/patternfly-elements/blob/main/CODE_OF_CONDUCT.md">Code of
2020
conduct</a>
2121
</li>
2222
<li>

docs/demo/demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async function go(location = window.location) {
6060
viewer.hidden = false;
6161
document.title = `${pretty(element)} | PatternFly Elements`;
6262
document.querySelector('h1').textContent = `<${element}>`;
63-
github.href = `https://github.com/patternfly/patternfly-elements/tree/master/${base}/${element}`;
63+
github.href = `https://github.com/patternfly/patternfly-elements/tree/main/${base}/${element}`;
6464
toggleNav(false);
6565
} else {
6666
viewer.src = '';

docs/docs/develop/pull-request.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ tags:
99
1. Create a PR using the template provided, ensure all fields are filled out to the best of your ability.
1010
2. If you used the discovery template, please copy that content as necessary into the README.md for that component.
1111
3. Confirm that your component has all attributes and slots documented clearly in the schema and the README file.
12-
4. Update the commit log with a stub for your PR: `- [](https://github.com/patternfly/patternfly-elements/commit/) <name of commit> (#<PR number>)`. **Please take the time to get the commit hash for the previous item in the list if one exists.** You can find this by going to [https://github.com/patternfly/patternfly-elements/commits/master](https://github.com/patternfly/patternfly-elements/commits/master) or running `git log --pretty="%H - %s" -n 5` on the master branch.
12+
4. Update the commit log with a stub for your PR:
13+
`- [](https://github.com/patternfly/patternfly-elements/commit/) <name of commit> (#<PR number>)`.
14+
**Please take the time to get the commit hash for the previous item in the list if one exists.**
15+
You can find this by going to
16+
[https://github.com/patternfly/patternfly-elements/commits/main](https://github.com/patternfly/patternfly-elements/commits/main)
17+
or running `git log --pretty="%H - %s" -n 5` on the main branch.
1318
5. Ensure someone has run through browser testing on all the listed environments in the PR template.
1419
6. Find someone to code review your branch.
15-
7. Once approved and all tests are passing, run a squash merge following [conventional commit standards](https://www.conventionalcommits.org) into master.
20+
7. Once approved and all tests are passing, run a squash merge following [conventional commit standards](https://www.conventionalcommits.org) into main.

docs/docs/develop/todo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The items below represent in-code `// @TODO` notes we have left for ourselves to
2121
<tr>
2222
<td>{{ item.text }}</td>
2323
<td>
24-
<a href="https://github.com/patternfly/patternfly-elements/blob/master/{{ item.file }}#L{{ item.line }}" target="_blank">{{ item.file }}:{{ item.line }}</a>
24+
<a href="https://github.com/patternfly/patternfly-elements/blob/main/{{ item.file }}#L{{ item.line }}" target="_blank">{{ item.file }}:{{ item.line }}</a>
2525
</td>
2626
</tr> {%- endfor -%}
2727
</tbody>

0 commit comments

Comments
 (0)