xref: /curl/.github/workflows/label.yml (revision f73f6bf9)
1# Copyright (C) Daniel Fandrich, <dan@coneharvesters.com>, et al.
2#
3# SPDX-License-Identifier: curl
4
5# This workflow will triage pull requests and apply a label based on the
6# paths that are modified in the pull request.
7#
8# To use this workflow, you will need to set up a .github/labeler.yml
9# file with configuration.  For more information, see:
10# https://github.com/actions/labeler
11
12name: Labeler
13'on': [pull_request_target]
14
15jobs:
16  label:
17
18    runs-on: ubuntu-latest
19    permissions:
20      contents: read
21      pull-requests: write
22
23    steps:
24      - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
25        with:
26          repo-token: "${{ secrets.GITHUB_TOKEN }}"
27