-
-
Notifications
You must be signed in to change notification settings - Fork 25
29 lines (25 loc) · 792 Bytes
/
labels.yml
File metadata and controls
29 lines (25 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: CC0-1.0
# This file is maintained in https://github.com/WeblateOrg/meta/
name: Issue labeled
on:
issues:
types: [labeled]
permissions:
contents: read
jobs:
issueLabeled:
permissions:
issues: write # for gh issue comment
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Add good first issue comment
if: ${{ github.event.label.name == 'good first issue' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
run: gh issue comment "$ISSUE_NUMBER" --body-file .github/comments/issue-newbie.md