mirror of
https://github.com/fmhy/edit.git
synced 2026-02-18 01:01:23 +11:00
Merge branch 'main' into test-workflow
This commit is contained in:
commit
5af655c363
1 changed files with 2 additions and 2 deletions
4
.github/workflows/labeler.yml
vendored
4
.github/workflows/labeler.yml
vendored
|
|
@ -27,13 +27,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const prNumber = context.payload.pull_request.number;
|
const prNumber = context.payload.pull_request.number;
|
||||||
const labels = await github.issues.listLabelsOnIssue({
|
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
issue_number: prNumber,
|
issue_number: prNumber,
|
||||||
});
|
});
|
||||||
|
|
||||||
const hasCoreLabel = labels.data.some(label => label.name === 'core');
|
const hasCoreLabel = labels.some(label => label.name === 'core');
|
||||||
return hasCoreLabel;
|
return hasCoreLabel;
|
||||||
|
|
||||||
- name: Auto-assign to PR
|
- name: Auto-assign to PR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue