-
Notifications
You must be signed in to change notification settings - Fork 70
52 lines (43 loc) · 1.62 KB
/
issue-workflow.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
48
49
50
51
52
name: Workflow Labeling
on:
issues:
types: [labeled]
jobs:
comment-workflow:
if: ${{ github.repository == 'siemens/ix' }}
runs-on: ubuntu-latest
steps:
# Useful if we try to also integrate other labels
# - name: Find comments
# id: find_comments
# uses: actions-cool/issues-helper@v3
# with:
# actions: 'find-comments'
# token: ${{ secrets.GITHUB_TOKEN }}
# issue-number: ${{ github.event.issue.number }}
# comment-auth: 'github-actions[bot]'
# body-includes: '🤖 Hello '
# - uses: actions/github-script@v7
# id: filter-comment
# env:
# COMMENTS_RESULT: ${{ steps.find_comments.outputs.comments }}
# with:
# script: |
# const { COMMENTS_RESULT } = process.env;
# const comments = JSON.parse(COMMENTS_RESULT);
# if (comments.length === 1) {
# return comments[0].id;
# }
# return '';
# result-encoding: string
- name: Jira Ticket created
if: "contains(github.event.label.name, 'Workflow: Issue created')"
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
body: |
🤖 Hello @${{ github.event.issue.user.login }}
Your issue will be analyzed and is part of our internal workflow.
To get informed about our workflow please checkout the [Contributing Guidelines](https://github.com/siemens/ix/blob/main/CONTRIBUTING.md#issue-workflow)
JIRA: IX-000