1name: Backport Issue Check
2
3on:
4  pull_request_target:
5    types:
6      - edited
7      - opened
8      - reopened
9      - synchronize
10    branches:
11      - v*-branch
12
13jobs:
14  backport:
15    name: Backport Issue Check
16    concurrency:
17      group: backport-issue-check-${{ github.ref }}
18      cancel-in-progress: true
19    runs-on: ubuntu-22.04
20    if: github.repository == 'zephyrproject-rtos/zephyr'
21
22    steps:
23      - name: Check out source code
24        uses: actions/checkout@v4
25
26      - name: Install Python dependencies
27        run: |
28          pip install -U pygithub
29
30      - name: Run backport issue checker
31        env:
32          GITHUB_TOKEN: ${{ secrets.ZB_GITHUB_TOKEN }}
33        run: |
34          ./scripts/release/list_backports.py \
35            -o ${{ github.event.repository.owner.login }} \
36            -r ${{ github.event.repository.name }} \
37            -b ${{ github.event.pull_request.base.ref }} \
38            -p ${{ github.event.pull_request.number }}
39