-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (44 loc) · 1.74 KB
/
new-issue.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: New Issue
on:
issues:
types: [opened, reopened]
permissions:
contents: read
jobs:
label:
runs-on: ubuntu-latest
permissions:
issues: write
repository-projects: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: V0ldek/modify-label@65905feb4c09417e7caed08928595a0b4f9b3d42 # v1.0.0
id: add-label
with:
action: add
issue-number: ${{ github.event.issue.number }}
label-id: "LA_kwDOHodxeM8AAAABA8dlvA"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Issue comment tag
uses: devops-actions/issue-comment-tag@ec5e2b8d5f031330ff19bf4ee5b5252b1176995a # v0.1.8
with:
# The tag of the team to mention in the issue comment
team: V0ldek
# The issue number to create a new comment in
issue: ${{ github.event.issue.number }}
# The owner for the repo to create a new comment in
owner: ${{ github.event.repository.owner.login }}
# The repo to create a new comment in
repo: ${{ github.event.repository.name }}
# The GitHub token to use to create a new comment with. Use `secrets.GITHUB_TOKEN` to inject it
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add To GitHub projects
uses: actions/add-to-project@0609a2702eefb44781da00f8e04901d6e5cd2b92 # v0.6.0
with:
# URL of the project to add issues to
project-url: https://github.com/users/V0ldek/projects/1
# A GitHub personal access token with write access to the project
github-token: ${{ secrets.RSONPATH_PROJECT_TOKEN }}