From 157deaa7e604093e4e29c3256aacaaa095dbe44e Mon Sep 17 00:00:00 2001 From: David Benedeki Date: Thu, 20 Jun 2024 12:27:28 +0200 Subject: [PATCH] * Fixes --- ...comments_copy_from_pr_to_linked_issues.yml | 18 +++++++++++++- .github/workflows/test_filenames_check.yml | 24 +++++++++++++++---- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release_notes_comments_copy_from_pr_to_linked_issues.yml b/.github/workflows/release_notes_comments_copy_from_pr_to_linked_issues.yml index ef4641488..712268242 100644 --- a/.github/workflows/release_notes_comments_copy_from_pr_to_linked_issues.yml +++ b/.github/workflows/release_notes_comments_copy_from_pr_to_linked_issues.yml @@ -1,3 +1,19 @@ +# +# Copyright 2021 ABSA Group Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + name: Release Notes Comments Copy from PR to Linked Issues on: @@ -20,7 +36,7 @@ jobs: const prNumber = context.payload.pull_request.number; const repoName = context.repo.repo; const repoOwner = context.repo.owner; - const releaseNotesRegex = /release notes/i; + const releaseNotesRegex = /release notes?:?/i; const comments = await github.rest.issues.listComments({ owner: repoOwner, diff --git a/.github/workflows/test_filenames_check.yml b/.github/workflows/test_filenames_check.yml index 7fee9142c..bc29ee53f 100644 --- a/.github/workflows/test_filenames_check.yml +++ b/.github/workflows/test_filenames_check.yml @@ -1,3 +1,19 @@ +# +# Copyright 2021 ABSA Group Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + name: Test Filenames Check on: @@ -17,8 +33,8 @@ jobs: id: scan-test-files uses: AbsaOSS/filename-inspector@master with: - name_patterns: '*UnitTest.*,*IntegrationTest.*' + name-patterns: '*UnitTest.*,*IntegrationTest.*' paths: '**/src/test/scala/**' - report_format: 'console' - verbose_logging: 'false' - fail_on_violation: 'true' + report-format: 'console' + verbose-logging: 'false' + fail-on-violation: 'true'