File tree Expand file tree Collapse file tree 2 files changed +95
-0
lines changed
Expand file tree Collapse file tree 2 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Annotate Jira Issues
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ name :
7+ required : true
8+ type : string
9+ tag_matcher :
10+ required : false
11+ type : string
12+ secrets :
13+ collector_key :
14+ required : true
15+ tagging_key :
16+ required : true
17+ jira_url :
18+ required : true
19+ jira_token :
20+ required : true
21+ jira_email :
22+ required : true
23+
24+ jobs :
25+ jira-annotate :
26+
27+ name : Annotate all occurring tickets since last release-tag
28+ runs-on : ubuntu-20.04
29+
30+ steps :
31+ - name : Checkout
32+ uses : actions/checkout@v3
33+ with :
34+ fetch-depth : 0
35+
36+ - name : Checkout Staffbase/github-action-issue-id-collection
37+ uses : actions/checkout@v3
38+ with :
39+ repository : Staffbase/github-action-issue-id-collection
40+ ssh-key : ${{ secrets.collector_key }}
41+ ref : master
42+ path : github-action-issue-id-collection
43+
44+ - name : Checkout Staffbase/github-action-jira-release-tagging
45+ uses : actions/checkout@v3
46+ with :
47+ repository : Staffbase/github-action-jira-release-tagging
48+ ssh-key : ${{ secrets.tagging_key }}
49+ ref : master
50+ path : github-action-jira-release-tagging
51+
52+ - name : fetchTicketIds
53+ id : fetchTicketIds
54+ uses : ./github-action-issue-id-collection
55+ env :
56+ TAG_MATCHER : ${{ inputs.tag_matcher }}
57+
58+ - name : Add release notes to JIRA tickets
59+ uses : ./github-action-jira-release-tagging
60+ env :
61+ JIRA_BASEURL : ${{ secrets.jira_url }}
62+ JIRA_TOKEN : ${{ secrets.jira_token }}
63+ JIRA_EMAIL : ${{ secrets.jira_email }}
64+ with :
65+ issueIds : ${{ steps.fetchTicketIds.outputs.tIDs }}
66+ componentName : ${{ inputs.name }}
67+ tagName : ${{ steps.fetchTicketIds.outputs.tagName }}
Original file line number Diff line number Diff line change 4545` ` `
4646</details>
4747
48+ ### Jira Ticket Tagging
49+
50+ <details>
51+ <summary>
52+ The action can be used to collect all jira issues between the last two tags created.
53+ Then the jira issues will be updated with a release date and the labels will be tagged with the current tag name.
54+ </summary>
55+
56+ ` ` ` yml
57+ name : Annotate Jira Issues
58+ on :
59+ push :
60+ tags : ['**']
61+
62+ jobs :
63+ jira_annotate :
64+ uses : Staffbase/gha-workflows/.github/workflows/template_jira_tagging.yml@<version>
65+ with :
66+ name : ' component name'
67+ secrets :
68+ collector_key : ${{ <your-key> }}
69+ tagging_key : ${{ <your-key> }}
70+ jira_url : ${{ <your-url> }}
71+ jira_token : ${{ <your-token> }}
72+ jira_email : ${{ <your-email> }}
73+ ` ` `
74+ </details>
75+
4876### Release Drafter
4977
5078<details>
You can’t perform that action at this time.
0 commit comments