-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.66 KB
/
assign_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
name: Assign new issue to project
on:
issues:
types: [opened, labeled]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL_FOR_ISSUE }}
SLACK_MESSAGE: 'https://github.com/hgaiji/GithubActions/projects/1'
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: issueが作成されたときに、githubprojectに追加する
uses: srggrs/[email protected]
if: github.event.action == 'opened'
with:
project: 'https://github.com/hgaiji/GithubActions/projects/1'
column_name: '🤔 Considering...'
- name: バグラベルをついたissueが作成されたときにTODOとしてprojectに追加する
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'bug')
with:
project: 'https://github.com/hgaiji/GithubActions/projects/1'
column_name: '✅ To Do'
# ----------------------------------- slackへ通知 ----------------------------------------------------------------
- name: Slack Notification on Success # テスト成功時はこちらのステップが実行される
if: success()
uses: rtCamp/[email protected]
env:
SLACK_CHANNEL: issue
SLACK_TITLE: New Issue Created
SLACK_COLOR: good
- name: Slack Notification on Failure # テスト失敗時はこちらのステップが実行される
uses: rtCamp/[email protected]
if: failure()
env:
SLACK_CHANNEL: issue
SLACK_TITLE: New Issue not Created
SLACK_COLOR: danger