Skip to content

Label pull request 7219 by mhucka #8

Label pull request 7219 by mhucka

Label pull request 7219 by mhucka #8

Workflow file for this run

# Copyright 2025 The Cirq Developers
#
# 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
#
# https://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.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Label PRs with labels such as size.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
name: Pull request labeler
run-name: >-
Label pull request ${{github.event.pull_request.number}} by ${{github.actor}}
on:
pull_request:
types:
- opened
- synchronize
# Allow manual invocation.
workflow_dispatch:
# Declare default permissions as read only.
permissions: read-all
jobs:
label-pr-size:
name: Update size labels on a PR
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
issues: write
steps:
# We need a copy of the repo so the action can read the config file.
- name: Check out a copy of the git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Label the PR with a size label
uses: cbrgm/pr-size-labeler-action@85f918ef4ef0a7dbc08166774f9158697584bc8c # v1
with:
github_token: ${{secrets.GITHUB_TOKEN}}
github_pr_number: ${{github.event.number}}
github_repository: ${{github.repository}}
config_file_path: '.github/pr-size-labels.yaml'