forked from dequelabs/axe-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dequelabs#649 from dequelabs/release-1674151576
- Loading branch information
Showing
47 changed files
with
10,925 additions
and
2,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,15 @@ | ||
name: Semantic PR Title | ||
name: Semantic PR title | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
validate: | ||
semantic-pr-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check PR title | ||
uses: actions/github-script@v6 | ||
env: | ||
TITLE: ${{ github.event.pull_request.title }} | ||
with: | ||
script: | | ||
const { TITLE } = process.env | ||
const types = [ | ||
'feat', | ||
'fix', | ||
'perf', | ||
'style', | ||
'docs', | ||
'refactor', | ||
'test', | ||
'build', | ||
'ci', | ||
'chore', | ||
'Merge', | ||
'Revert', | ||
'Release' | ||
] | ||
console.log('Validating PR title: "%s"', TITLE) | ||
for (const type of types) { | ||
if (TITLE.startsWith(type)) { | ||
console.log('Title matches conventional commits (type: "%s").', type) | ||
return | ||
} | ||
} | ||
const error = new Error('PR title does not follow conventional commits.\n\nPlease refer to https://www.conventionalcommits.org/en/v1.0.0') | ||
error.stack = [] // Clean the error stack, it's useless here. | ||
throw error | ||
- uses: dequelabs/semantic-pr-title@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Update axe-core | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- id: update | ||
uses: dequelabs/update-axe-core@v1 | ||
- id: type | ||
run: | | ||
CommitType="" | ||
if [ "${{ steps.update.outputs.patch_version_updated }}" == "true" ]; then | ||
CommitType="fix" | ||
elif [ "${{ steps.update.outputs.minor_version_updated }}" == "true" ]; then | ||
CommitType="feat" | ||
elif [ "${{ steps.update.outputs.major_version_updated }}" == "true" ]; then | ||
CommitType="feat" | ||
fi | ||
echo "type=$CommitType" >>"$GITHUB_OUTPUT" | ||
- name: Open PR | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
commit-message: '${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}' | ||
branch: auto-update-axe-core | ||
base: develop | ||
title: '${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}' | ||
body: | | ||
This patch updates version of [`axe-core`](https://npmjs.org/axe-core) to v${{ steps.update.outputs.version }}. | ||
This PR was opened by a robot :robot: :tada:. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"packages/webdriverjs/tests/example", | ||
"axe_core_test" | ||
], | ||
"version": "4.5.2" | ||
"version": "4.6.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.