mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-10-12 15:20:26 +02:00
Merge branch 'dev/pr_automation_5' into dev/test_pr_automation_5
This commit is contained in:
@@ -134,9 +134,10 @@ jobs:
|
||||
const releaseNotes = findReleaseNotesSection(pr.body || '');
|
||||
const hasNoReleaseNoteLabel = labelNames.includes('No release note');
|
||||
|
||||
core.info(`Release notes section found: ${releaseNotes}`);
|
||||
|
||||
if (releaseNotes) {
|
||||
core.info(`Release notes found in the PR body: ${releaseNotes}`);
|
||||
|
||||
if (hasNoReleaseNoteLabel) {
|
||||
core.setFailed(
|
||||
'The PR has a "## Release notes" section but is also labeled "No release note". Remove the label or remove the release notes section.'
|
||||
@@ -151,7 +152,7 @@ jobs:
|
||||
return;
|
||||
}
|
||||
|
||||
core.info('Release notes found in the PR body.');
|
||||
core.info(`Confirm no further action required for release notes.`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user