-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into docs-manual-script…
…ing-re-org
- Loading branch information
Showing
99 changed files
with
2,813 additions
and
573 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[ | ||
{ | ||
"version" : 1 | ||
}, | ||
{ | ||
"action" : { | ||
"type" : "url", | ||
"url" : "https://github.com/Unity-Technologies/InputSystem/compare/develop...${ref:short}?expand=1" | ||
}, | ||
"name" : "GitHub: Create PR for branch", | ||
"refTargets" : [ | ||
"localbranch", | ||
"remotebranch" | ||
], | ||
"target" : "ref" | ||
}, | ||
{ | ||
"action" : { | ||
"type" : "url", | ||
"url" : "https://github.com/Unity-Technologies/InputSystem/tree/${ref:short}" | ||
}, | ||
"name" : "GitHub: Open branch", | ||
"refTargets" : [ | ||
"localbranch", | ||
"remotebranch" | ||
], | ||
"target" : "ref" | ||
}, | ||
{ | ||
"action" : { | ||
"type" : "url", | ||
"url" : "https://unity-ci.cds.internal.unity3d.com/project/130" | ||
}, | ||
"name" : "View on Yamato", | ||
"target" : "repository" | ||
}, | ||
{ | ||
"action" : { | ||
"type" : "url", | ||
"url" : "https://unity-ci.cds.internal.unity3d.com/project/130/branch/${ref:short}" | ||
}, | ||
"name" : "Yamato: Open branch", | ||
"refTargets" : [ | ||
"localbranch", | ||
"remotebranch" | ||
], | ||
"target" : "ref" | ||
} | ||
] |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on pull request creation and edit events but only for the "main" branch | ||
pull_request: | ||
types: | ||
- edited | ||
- opened | ||
- synchronize | ||
branches: [ "develop" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
check-pr-title: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4 | ||
|
||
# Runs a bash script from the specified working directory | ||
- name: Check PR Title begins with the required prefix | ||
shell: bash | ||
working-directory: .github/workflows | ||
env: | ||
TITLE: ${{github.event.pull_request.title}} | ||
run: bash verify-pr-title-prefix.sh $TITLE "NEW:" "CHANGE:" "FIX:" "DOCS:" "RELEASE:" | ||
|
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,25 @@ | ||
#!/bin/bash | ||
|
||
exit_with_failure() | ||
{ | ||
echo "❌ $*" 1>&2 ; exit 1; | ||
} | ||
|
||
TITLE_STRING="$1" | ||
shift # Shift all arguments to the left, so $2 becomes $1, $3 becomes $2, etc. | ||
|
||
# The remaining arguments are treated as an array of strings | ||
PREFIXES_REQUIRED=("$@") | ||
|
||
# Validate the title string prefix based on prefixes required | ||
for PREFIX in "${PREFIXES_REQUIRED[@]}"; | ||
do | ||
if [[ "$TITLE_STRING" =~ ^$PREFIX ]]; then | ||
echo "✅" | ||
exit 0 | ||
fi | ||
done | ||
|
||
PREFIXES_REQUIRED_STRING="${PREFIXES_REQUIRED[*]}" | ||
|
||
exit_with_failure "PR Title needs the required prefixes: $PREFIXES_REQUIRED_STRING" |
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
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
Oops, something went wrong.