mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-09-04 13:20:42 +02:00
Merge branch 'dev/pr_automation_2' into dev/test_pr_automation_2
This commit is contained in:
@@ -26,6 +26,22 @@ jobs:
|
||||
const prNumber = context.payload.pull_request.number;
|
||||
const pr = context.payload.pull_request;
|
||||
|
||||
|
||||
/*
|
||||
* Infrastructure PRs do not receive detector labels.
|
||||
*/
|
||||
const body = pr.body || '';
|
||||
|
||||
const infrastructureSelected =
|
||||
/-\s*\[[xX]\]\s*Infrastructure\b/.test(body);
|
||||
|
||||
if (infrastructureSelected) {
|
||||
core.info(
|
||||
'Infrastructure PR detected. Skipping detector label detection.'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Known detector labels.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user