Skip to content

Commit

Permalink
Merge branch 'stackkit:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
marickvantuil2 authored Jan 29, 2024
2 parents c59d66a + fcd4bd0 commit adc99b3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ jobs:
const issue_number = context.issue.number;
const repository = context.repo.repo;
const owner = context.repo.owner;
await github.rest.issues.removeLabel({
const response = await github.rest.issues.listLabelsOnIssue({
owner,
repo: repository,
issue_number,
name: 'safe-to-test'
issue_number
});
const labels = response.data.map(label => label.name);
if (labels.includes('safe-to-test')) {
await github.rest.issues.removeLabel({
owner,
repo: repository,
issue_number,
name: 'safe-to-test'
});
}
access_check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit adc99b3

Please sign in to comment.