Skip to content

Commit 9b17ee0

Browse files
committed
ci: update issue templates
1 parent 15dfc0b commit 9b17ee0

File tree

5 files changed

+1769
-1643
lines changed

5 files changed

+1769
-1643
lines changed

.github/workflows/auto-assign.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Auto Assign
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
pull_request:
7+
types: [opened]
8+
9+
jobs:
10+
run:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
17+
steps:
18+
- name: Auto-assign issue
19+
uses: pozil/auto-assign-issue@v2
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
assignees: Aetherinox
23+
numOfAssignee: 1

.github/workflows/issues-accept.yml

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ run-name: "🎫 Issue › Accept"
1414
# ---------------------------------------------------------------------------------------
1515

1616
on:
17-
issue_comment:
18-
types: [created]
17+
issue_comment:
18+
types: [created]
1919

2020
# ---------------------------------------------------------------------------------------
2121
# environment variables
2222
# ---------------------------------------------------------------------------------------
2323

2424
env:
25-
LABEL_ACCEPT: "Status 𐄂 Accepted"
25+
LABEL_ACCEPT: "Status 𐄂 Accepted"
2626

27-
ASSIGN_USER: Aetherinox
28-
BOT_NAME_1: AdminServ
29-
BOT_NAME_2: AdminServX
30-
BOT_NAME_3: EuropaServ
31-
BOT_NAME_DEPENDABOT: dependabot[bot]
27+
ASSIGN_USER: Aetherinox
28+
BOT_NAME_1: AdminServ
29+
BOT_NAME_2: AdminServX
30+
BOT_NAME_3: EuropaServ
31+
BOT_NAME_DEPENDABOT: dependabot[bot]
3232

3333
# ---------------------------------------------------------------------------------------
3434
# jobs
@@ -37,31 +37,33 @@ env:
3737
# ---------------------------------------------------------------------------------------
3838

3939
jobs:
40-
deploy:
41-
runs-on: ubuntu-latest
42-
if: github.event.issue.pull_request && contains(github.event.comment.body, '/accept') && github.event.comment.user.login == 'Aetherinox'
43-
steps:
40+
deploy:
41+
runs-on: ubuntu-latest
42+
if: github.event.issue.pull_request && contains(github.event.comment.body, '/accept') && github.event.comment.user.login == 'Aetherinox'
43+
steps:
4444

45-
# ---------------------------------------------------------------------------------------
46-
# Add Label to accepted PR
47-
# ---------------------------------------------------------------------------------------
45+
# ---------------------------------------------------------------------------------------
46+
# Add Label to accepted PR
47+
# ---------------------------------------------------------------------------------------
4848

49-
- name: "🏷️ Assign Label › ${{ env.LABEL_ACCEPT }}"
50-
run: gh issue edit "$NUMBER" --add-label "$LABELS"
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
GH_REPO: ${{ github.repository }}
54-
NUMBER: ${{ github.event.issue.number }}
55-
LABELS: ${{ env.LABEL_ACCEPT }}
49+
- name: >-
50+
🏷️ Assign Label › ${{ env.LABEL_ACCEPT }}
51+
run: gh issue edit "$NUMBER" --add-label "$LABELS"
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GH_REPO: ${{ github.repository }}
55+
NUMBER: ${{ github.event.issue.number }}
56+
LABELS: ${{ env.LABEL_ACCEPT }}
5657
57-
# ---------------------------------------------------------------------------------------
58-
# Add assignee to accepted PR
59-
# ---------------------------------------------------------------------------------------
58+
# ---------------------------------------------------------------------------------------
59+
# Add assignee to accepted PR
60+
# ---------------------------------------------------------------------------------------
6061

61-
- name: "🏷️ Assign Assignee › ${{ env.ASSIGN_USER }}"
62-
run: gh issue edit "$NUMBER" --add-assignee "$ASSIGNEE"
63-
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
GH_REPO: ${{ github.repository }}
66-
NUMBER: ${{ github.event.issue.number }}
67-
ASSIGNEE: ${{ env.ASSIGN_USER }}
62+
- name: >-
63+
🏷️ Assign Assignee › ${{ env.ASSIGN_USER }}
64+
run: gh issue edit "$NUMBER" --add-assignee "$ASSIGNEE"
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
GH_REPO: ${{ github.repository }}
68+
NUMBER: ${{ github.event.issue.number }}
69+
ASSIGNEE: ${{ env.ASSIGN_USER }}

0 commit comments

Comments
 (0)