We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3efec18 commit fcd4bd0Copy full SHA for fcd4bd0
.github/workflows/run-tests.yml
@@ -18,12 +18,20 @@ jobs:
18
const issue_number = context.issue.number;
19
const repository = context.repo.repo;
20
const owner = context.repo.owner;
21
- await github.rest.issues.removeLabel({
+ const response = await github.rest.issues.listLabelsOnIssue({
22
owner,
23
repo: repository,
24
- issue_number,
25
- name: 'safe-to-test'
+ issue_number
26
});
+ const labels = response.data.map(label => label.name);
27
+ if (labels.includes('safe-to-test')) {
28
+ await github.rest.issues.removeLabel({
29
+ owner,
30
+ repo: repository,
31
+ issue_number,
32
+ name: 'safe-to-test'
33
+ });
34
+ }
35
36
access_check:
37
runs-on: ubuntu-latest
0 commit comments