Skip to content

Commit dfcc3ee

Browse files
Merge branch '7.3' into 7.4
* 7.3: [fabbot] Make license check optional
2 parents 8e376fa + 32083bf commit dfcc3ee

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy