Skip to content

Commit 7398289

Browse files
Merge branch '6.4' into 7.2
* 6.4: [fabbot] Make license check optional
2 parents 64feae6 + 35add1d commit 7398289

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/callable-fabbot.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
package:
77
required: true
88
type: string
9+
check_license:
10+
required: false
11+
type: boolean
12+
default: false
913

1014
env:
1115
GH_TOKEN: ${{ github.token }}
@@ -139,10 +143,12 @@ jobs:
139143
PR_TITLE="${{ github.event.pull_request.title }}"
140144
PR_BODY="${{ github.event.pull_request.body }}"
141145
142-
if [[ ! "$PR_BODY" =~ \|\ License[\ ]+\|\ MIT ]]; then
143-
echo "::error::You must add the standard contribution header in the PR description"
144-
echo "See https://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request"
145-
exit 1
146+
if [[ "${{ inputs.check_license }}" == "true" ]]; then
147+
if [[ ! "$PR_BODY" =~ \|\ License[\ ]+\|\ MIT ]]; then
148+
echo "::error::You must add the standard contribution header in the PR description"
149+
echo "See https://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request"
150+
exit 1
151+
fi
146152
fi
147153
148154
if [[ "$PR_TITLE" =~ (feat|fix|docs|style|refactor|perf|test|chore|revert|build|ci|types?|wip)[:()] ]]; then

.github/workflows/fabbot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ jobs:
1212
uses: ./.github/workflows/callable-fabbot.yml
1313
with:
1414
package: Symfony
15+
check_license: true

0 commit comments

Comments
 (0)