1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 16:23:39 +08:00
Files
osu-lazer/.github/workflows/pull-request-copy-labels.yml
T
Bartłomiej Dach ccb0224a1b Attempt to fix "copy labels from issues" workflow permissions again
It's still broken:

https://github.com/ppy/osu/actions/runs/22310482792/job/64540909415

and I'm not sure what else it could be other than this, so I'm giving it
one more honest try before I throw up hands.

For better or worse,
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#permissions
explicitly lists that the `pull-requests` permission allows tagging PRs,
so I'm holding out hope that this is it. Still terrible marks for
documentation here, both to the github action, as well as everything to
do with `GITHUB_TOKEN`.
2026-02-24 13:34:06 +01:00

20 lines
462 B
YAML

name: Copy labels from linked issues
on:
pull_request:
types: [opened]
permissions:
issues: read # to read the labels of any linked issue(s)
pull-requests: write # to put the found labels if any on the PR
jobs:
copy-labels:
runs-on: ubuntu-latest
name: Copy labels from linked issues
steps:
- name: Copy labels
uses: michalvankodev/copy-issue-labels@v1.3.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}