File: ci-labeler.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (24 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: "Pull Request Labeler"
on:
  - pull_request_target

jobs:
  triage:
    permissions:
      contents: read
      pull-requests: write
    runs-on: ubuntu-latest
    steps:
    - uses: actions/labeler@v5
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        sync-labels: "true"

    - name: Checkout code
      uses: actions/checkout@v4

    - name: Apply draft label using gh CLI
      env:
        GH_TOKEN: ${{ github.token }}
      if: github.event.action == 'opened' && github.event.pull_request.draft == true && !contains(github.event.pull_request.labels.*.name, 'Skip spread')
      run: gh pr edit ${{ github.event.pull_request.number }} --add-label 'Run only one system'