From 36f862e41144f63061af84b74ad5ed4ad25b226b Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Fri, 19 Aug 2022 10:21:59 -0400 Subject: [PATCH] .github/workflows: Use upstream pr-size-labeler and ignore go.sum (#265) Reference: https://github.com/CodelyTV/pr-size-labeler/pull/26 The customization capabilities were merged awhile ago, but switching this back to upstream was missed. --- .github/workflows/pull-request.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f091387a..98df3d78 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,6 +2,11 @@ name: "Pull Request Triage" on: [pull_request_target] +permissions: + # CodelyTV/pr-size-labeler uses issues URL for labeling + issues: write + pull-requests: write + jobs: triage: runs-on: ubuntu-latest @@ -10,8 +15,7 @@ jobs: with: configuration-path: .github/labeler-pull-request-triage.yml repo-token: "${{ secrets.GITHUB_TOKEN }}" - # See also: https://github.com/CodelyTV/pr-size-labeler/pull/26 - - uses: bflad/pr-size-labeler@7df62b12a176513631973abfe151d2b6213c3f12 + - uses: CodelyTV/pr-size-labeler@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} xs_label: 'size/XS' @@ -24,3 +28,4 @@ jobs: l_max_size: '300' xl_label: 'size/XL' message_if_xl: '' + files_to_ignore: 'go.sum'