mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-02 17:34:18 +00:00
Merge pull request #9501 from zvonkok/check-fixes
kata: Remove check for "Fixes" in PR
This commit is contained in:
11
.github/workflows/commit-message-check.yaml
vendored
11
.github/workflows/commit-message-check.yaml
vendored
@@ -86,17 +86,6 @@ jobs:
|
|||||||
error: 'Body line too long (max 150)'
|
error: 'Body line too long (max 150)'
|
||||||
post_error: ${{ env.error_msg }}
|
post_error: ${{ env.error_msg }}
|
||||||
|
|
||||||
- name: Check Fixes
|
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') && ( success() || failure() ) }}
|
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
|
||||||
with:
|
|
||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
|
||||||
pattern: '\s*Fixes\s*:?\s*(#\d+|github\.com\/kata-containers\/[a-z-.]*#\d+)|^\s*release\s*:'
|
|
||||||
flags: 'i'
|
|
||||||
error: 'No "Fixes" found'
|
|
||||||
post_error: ${{ env.error_msg }}
|
|
||||||
one_pass_all_pass: 'true'
|
|
||||||
|
|
||||||
- name: Check Subsystem
|
- name: Check Subsystem
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') && ( success() || failure() ) }}
|
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') && ( success() || failure() ) }}
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||||
|
@@ -62,11 +62,10 @@ jobs:
|
|||||||
grep -v "^\#" |\
|
grep -v "^\#" |\
|
||||||
cut -d';' -f3 || true)
|
cut -d';' -f3 || true)
|
||||||
|
|
||||||
# PR doesn't have any linked issues
|
# PR doesn't have any linked issues, handle it only if it exists
|
||||||
# (it should, but maybe a new user forgot to add a "Fixes: #XXX" commit).
|
|
||||||
[ -z "$linked_issue_urls" ] && {
|
[ -z "$linked_issue_urls" ] && {
|
||||||
echo "::error::No linked issues for PR $pr"
|
echo "::warning::No linked issues for PR $pr"
|
||||||
exit 1
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
project_name="Issue backlog"
|
project_name="Issue backlog"
|
||||||
|
Reference in New Issue
Block a user