mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-14 22:58:38 +00:00
9 lines
220 B
JavaScript
9 lines
220 B
JavaScript
module.exports = {
|
|
hasLabel: (context, label) => {
|
|
const pr = context.payload.pull_request || context.payload.issue;
|
|
const { labels = [] } = pr;
|
|
|
|
return !!labels.find(({ name }) => name === label);
|
|
},
|
|
};
|