mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* stop PR in case of forbidden label * sync PR * add tmp workflow * add tmp workflow * add tmp workflow * checkout repo
14 lines
376 B
JavaScript
Executable File
14 lines
376 B
JavaScript
Executable File
module.exports = async ({ github, context, checkLabels }) => {
|
|
const { data: issue } = await github.rest.issues.get({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
});
|
|
const labels = issue.labels?.map(item => item.name);
|
|
|
|
if (checkLabels.some(i => labels.includes(i))) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|