Skip to content

Commit

Permalink
feat(gha): update pr naming check regex (#2239)
Browse files Browse the repository at this point in the history
* feat(gha): update pr naming check regex

* fix(gha): correct syntax error

* fix(gha): update regex to support gha name

* fix(gha): add back missing /

* fix(gha): update to allow guides
  • Loading branch information
FonduemangVI authored Jan 26, 2025
1 parent bc2c8bc commit 895a879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-naming-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const titleRegex = /^(Revert \")?(feat|fix|docs|style|refactor|perf|test|update|build|ci|chore)(\([\w\/-]+\))?:\s.+$/g;
const titleRegex = /^(Revert \")?(((feat|fix|chore)\((((radarr|sonarr|starr)(-(german|french|anime))?)|(prowlarr|lidarr|bazarr|hardlinks|downloaders|plex|guide(-sync)?|misc|glossary|gha))\))|(docs|style|refactor|perf|test|update|build|ci)(\([\w\/-]+\))?):\s.+$/;
const title = context.payload.pull_request.title;
const isValid = titleRegex.test(title);
if (!isValid) {
Expand Down

0 comments on commit 895a879

Please sign in to comment.