Files
NewPipe/.github/workflows/linked-issue-check.yml
T
TobiGr 5e91af442c FIx: Skip check for linked issues and assignee for collaborators
This skips the check for collaborators like weblate.
2026-10-23 13:29:47 +08:00

38 lines
1.0 KiB
YAML

# SPDX-FileCopyrightText: 2026 NewPipe e.V. <https://newpipe-ev.de>
# SPDX-License-Identifier: GPL-3.0-or-later
name: Check for linked issue
on:
pull_request_target:
types: [opened]
permissions:
contents: read
issues: write
pull-requests: write
jobs:
check-linked-issue:
name: Check for linked issues and author being assigned to at least one issue
if: >-
!contains(fromJSON('["MEMBER", "OWNER", "COLLABORATOR"]'),
github.event.pull_request.author_association)
runs-on: ubuntu-latest
steps:
- name: Dump Author Association
env:
AUTHOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
run: |
echo "Author Association: $AUTHOR_ASSOCIATION"
- uses: actions/checkout@v6
- name: Check linked issues
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('.github/workflows/linked-issue-check.js');
await script({github, context});