From 042283081820a0784976cdd86a0f83d0c4766ef5 Mon Sep 17 00:00:00 2001 From: Kalaiselvim <117940852+Kalaiselvi84@users.noreply.github.com> Date: Thu, 13 Jul 2023 18:55:51 -0700 Subject: [PATCH] Cleanup labeler (#3257) --- .github/pull_request_template.md | 1 + .github/workflows/label-pr.yml | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 703c272b67..5aba75514b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -14,6 +14,7 @@ > /kind documentation > /kind feature > /kind hotfix +> /kind release **What this PR does / Why we need it**: diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 2da47df4a0..17719e23da 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -18,17 +18,14 @@ name: Label PR on: - pull_request_target: - types: [opened] + - pull_request_target jobs: label: runs-on: ubuntu-latest permissions: - id-token: write contents: read pull-requests: write - issues: write steps: - name: Label PR @@ -41,7 +38,8 @@ jobs: "feature": "kind/feature", "cleanup": "kind/cleanup", "documentation": "kind/documentation", - "hotfix": "kind/hotfix" + "hotfix": "kind/hotfix", + "release": "kind/release" }; const prBody = context.payload.pull_request.body; const prLabels = [];