Skip to content

Commit

Permalink
ci: special labels to trigger integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skatsaounis committed Dec 6, 2023
1 parent cb6f76e commit d0b0f16
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/delabeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Pull Request Delabeler"

on:
pull_request_target:
# type 'opened' is not included, so maintainers can create PRs with labels
# specified during creation.
types: [edited, closed, reopened, synchronize, converted_to_draft]

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const special = 'Review: Core +1'
const labels = await github.rest.issues.listLabelsOnIssue({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
})
if (!labels.data.map((x) => x.name).includes(special)) {
return
}
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: [special]
})

0 comments on commit d0b0f16

Please sign in to comment.