From e178a944d6d157214af15ab3bd372e63c4f91910 Mon Sep 17 00:00:00 2001
From: Ed Morley <501702+edmorley@users.noreply.github.com>
Date: Tue, 17 Oct 2023 14:42:20 +0100
Subject: [PATCH] Set required labels on the automatic pack version update PRs

When a new Pack CLI version is released, automation opens PRs like:
https://github.com/buildpacks/github-actions/pull/227

Currently the human reviewer has to remember to set the semver
and type labels on that PR in order for the status checks to pass.

Now, the automation will set these itself on the PR.

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
---
 .github/workflows/update-pack-version.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/update-pack-version.yml b/.github/workflows/update-pack-version.yml
index 9f307e8..a02dbf7 100644
--- a/.github/workflows/update-pack-version.yml
+++ b/.github/workflows/update-pack-version.yml
@@ -30,6 +30,9 @@ jobs:
             
             Release notes:
             https://github.com/buildpacks/pack/releases/tag/v${{ steps.version.outputs.new_version }}
+          labels: |
+            semver:patch
+            type:dependency-upgrade
           branch: update-version
           base: main
           signoff: true