Skip to content

Commit fc03f94

Browse files
ci: [2.X] Turn off title validation for single commit PRs (#3314)
<!-- Replace this block with what this PR does and why. Describe what you'd like reviewers to know, how you applied the engineering principles, and any interesting tradeoffs made. Delete bullet points below that don't apply, and update the changelog section as appropriate. --> ## 2.x When the semantic commit action was added into the branch, the default squash commit for a pr with only a single commit was the commit name and not the PR title. Since then, Github has [added a feature to allow configuration of the default](https://github.com/orgs/community/discussions/16271) and we have that setting set in our repo. This PR turns off the validation of commits as the check is not valid anymore. Co-authored-by: Michał Chrobot <[email protected]>
1 parent 65cac82 commit fc03f94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/conventional-pr.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Conventional PR
22

3-
# Controls when the action will run.
3+
# Controls when the action will run.
44
on:
55
pull_request:
66
branches:
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: semantic-pull-request
2020
# Internal Unity mirror available at jesseo/action-semantic-pull-request, but actions from private repos aren't supported, so continue to use the public one below
21-
uses: amannn/action-semantic-pull-request@40166f00814508ec3201fc8595b393d451c8cd80
21+
uses: amannn/action-semantic-pull-request@v5
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424
with:
@@ -35,4 +35,4 @@ jobs:
3535
# For work-in-progress PRs you can typically use draft pull requests from Github. However, private repositories on the free plan don't have this option and therefore this action allows you to opt-in to using the special '[WIP]' prefix to indicate this state. This will avoid the validation of the PR title and the pull request checks remain pending. Note that a second check will be reported if this is enabled.
3636
#wip: # optional
3737
# When using "Squash and merge" on a PR with only one commit, GitHub will suggest using that commit message instead of the PR title for the merge commit, and it's easy to commit this by mistake. Enable this option to also validate the commit message for one commit PRs.
38-
validateSingleCommit: true # optional
38+
# validateSingleCommit: true # optional

0 commit comments

Comments
 (0)