-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (43 loc) · 1.48 KB
/
moderate-new-issues.yml
File metadata and controls
54 lines (43 loc) · 1.48 KB
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
48
49
50
51
52
53
54
# SPDX-License-Identifier: Apache-2.0
name: "Moderate New Issues"
on:
issues:
types:
- opened
defaults:
run:
shell: bash
permissions:
issues: write
concurrency:
group: moderate-issues-${{ github.event.issue.number }}
cancel-in-progress: false
jobs:
moderate:
name: Moderate Issue
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Add pending-review label
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: pending-review
- name: Comment on issue
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for your submission.
This issue is awaiting approval from @hiero-ledger/hiero-enterprise-java-committers and @hiero-ledger/hiero-enterprise-java-maintainers.
- name: Lock issue (IMPORTANT FIX)
run: |
gh api \
-X PUT \
repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/lock \
-f lock_reason=off-topic
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}