mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
currently, the patchback bot creates PRs that get labeled as "needs-triage". This change prevents labeling PR created by the patchback bot.
29 lines
721 B
YAML
29 lines
721 B
YAML
---
|
|
name: label new prs
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- converted_to_draft
|
|
- ready_for_review
|
|
|
|
jobs:
|
|
add_label:
|
|
if: github.actor != 'patchback[bot]'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- name: Add 'needs_triage' label if the pr is not a draft
|
|
uses: actions-ecosystem/action-add-labels@v1
|
|
if: github.event.pull_request.draft == false
|
|
with:
|
|
labels: needs_triage
|
|
|
|
- name: Remove 'needs_triage' label if the pr is a draft
|
|
uses: actions-ecosystem/action-remove-labels@v1
|
|
if: github.event.pull_request.draft == true
|
|
with:
|
|
labels: needs_triage
|