From c5156d81c39c0c73d81494bc7cdc02e15013c453 Mon Sep 17 00:00:00 2001 From: Dheeraj Date: Tue, 30 Sep 2025 20:56:40 +0530 Subject: [PATCH] Label PR with a size label based on lines changed --- .github/workflows/label-pr-size.yaml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/label-pr-size.yaml diff --git a/.github/workflows/label-pr-size.yaml b/.github/workflows/label-pr-size.yaml new file mode 100644 index 0000000..9df05b5 --- /dev/null +++ b/.github/workflows/label-pr-size.yaml @@ -0,0 +1,32 @@ +# Copyright The Conforma Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +--- +name: PR Size Label +on: + pull_request_target: + types: [opened, synchronize] + +permissions: + pull-requests: write + issues: write + +jobs: + size-label: + runs-on: ubuntu-latest + steps: + - name: Label PR by size + uses: conforma/pr-size-label-action@v1.0.0