-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (39 loc) · 1.22 KB
/
issue-comment-to-jira.yml
File metadata and controls
48 lines (39 loc) · 1.22 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
name: "Create Jira Comment"
on:
workflow_call:
issue_comment:
types: ["created"]
jobs:
issue-commented:
name: "Comment Issue"
runs-on: ubuntu-latest
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
steps:
- name: "Checkout Branch"
uses: actions/checkout@v6
- name: "Login"
uses: atlassian/gajira-login@master
- name: "Get Issue"
id: get
uses: actions-cool/issues-helper@v3
with:
actions: 'get-issue'
- name: "Log created issue"
run: echo "${{ steps.get.outputs.issue-labels }}"
- name: Find in commit messages
id: find
uses: atlassian/gajira-find-issue-key@master
with:
string: ${{ steps.get.outputs.issue-labels }}
- name: "Log found issue"
run: |
echo "${{ steps.find.outputs.issue }}"
echo "${{ github.event.issue }}"
- name: "Create comment"
uses: atlassian/gajira-comment@master
with:
issue: ${{ steps.find.outputs.issue }}
comment: ${{ github.event.comment.body }}