-
-
Notifications
You must be signed in to change notification settings - Fork 11
29 lines (25 loc) · 859 Bytes
/
Copy pathlabels.yml
File metadata and controls
29 lines (25 loc) · 859 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: {}
jobs:
issue-labeled:
if: ${{ ! github.event.issue.pull_request && github.event.label.name == 'good first issue' }}
permissions:
contents: read # for actions/checkout
issues: write # for gh issue comment
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Add good first issue comment
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