komikku/.github/workflows/pr_label.yml
AntsyLich b976778c08
Set explicit runner version and specify build tools version for signing (mihonapp/mihon#1787)
(cherry picked from commit 7b70b40d300f3412b6dae8970817c01887050a24)
2025-03-23 23:43:06 +07:00

26 lines
689 B
YAML

name: Label PRs
on:
pull_request:
types: [opened]
jobs:
label_pr:
runs-on: 'ubuntu-24.04'
steps:
- name: Check PR and Add Label
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
script: |
const prAuthor = context.payload.pull_request.user.login;
if (prAuthor === 'weblate') {
const labels = ['Translations'];
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels: labels
});
}