-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: nicosampler <[email protected]> Co-authored-by: dbeal <[email protected]> Co-authored-by: FuzzB0t <[email protected]> Co-authored-by: saeta.eth <[email protected]>
- Loading branch information
1 parent
7342f44
commit df61d49
Showing
36 changed files
with
5,753 additions
and
165,342 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,34 @@ | ||
name: Branch Name | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
check-branch-name: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check branch name for different base branches | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const base = '${{ github.base_ref }}' | ||
const branch = '${{ github.head_ref }}' | ||
switch(base) { | ||
case 'main': | ||
case 'alpha': { | ||
if (!/^hotfix\/[a-z0-9-_\.]+$/.test(branch)) { | ||
console.error(`::error::Branch name must start with 'hotfix/*' for PRs to ${base}`) | ||
process.exit(1) | ||
} | ||
break; | ||
} | ||
case 'dev': { | ||
if (!/^(feat|fix|chore|docs|test)\/[a-z0-9-_\.]+$/.test(branch)) { | ||
console.error(`::error::Branch name must start with '(feat|fix|chore|docs|test)/*' for PRs to ${base}`) | ||
process.exit(1) | ||
} | ||
break; | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -72,5 +72,5 @@ jspm_packages/ | |
# local env vars | ||
.env.local | ||
|
||
# nx cache folder | ||
.nx/cache | ||
# nx | ||
.nx |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.