1414# limitations under the License.
1515#
1616
17- name : Release - create draft release
17+ name : Draft Release
1818on :
1919 workflow_dispatch :
2020 inputs :
2121 tag-name :
2222 description : ' Name of git tag to be created, and then draft release created. Syntax: "v[0-9]+.[0-9]+.[0-9]+".'
2323 required : true
2424 from-tag-name :
25- description : ' Name of the git tag from which to detect changes from. Default value: latest tag. Syntax: "v[0-9]+.[0-9]+.[0-9]+".'
25+ description : >-
26+ Name of the git tag from which to detect changes from.
27+ Default value: latest tag. Syntax: "v[0-9]+.[0-9]+.[0-9]+".
2628 required : false
2729
30+ permissions :
31+ contents : write
32+ issues : read
33+ pull-requests : read
34+
2835jobs :
2936 release-draft :
3037 runs-on : ubuntu-latest
3946 with :
4047 python-version : ' 3.14'
4148
42- - name : Check format of received tag
49+ - name : Check format of received target tag
4350 id : check-version-tag
4451 uses : AbsaOSS/version-tag-check@4145e48bf3f77a5afff2ec9afdd8afb6b53bce34
4552 env :
@@ -59,44 +66,46 @@ jobs:
5966 version-tag : ${{ github.event.inputs.from-tag-name }}
6067 should-exist : true
6168
62- - name : Generate release notes
69+ - name : Generate Release Notes
6370 id : generate_release_notes
64- uses : AbsaOSS/generate-release-notes@da535383f54a6532adb84e88d3b6e5c7236132df
71+ uses : AbsaOSS/generate-release-notes@b4d6e3fafcff2dedc32ec751975fa3d0b3efad67
6572 env :
6673 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6774 with :
75+ release-notes-title : " ## [Rr]elease [Nn]otes"
6876 tag-name : ${{ github.event.inputs.tag-name }}
77+ from-tag-name : ${{ github.event.inputs.from-tag-name }}
6978 chapters : |
70- - {"title": "Entries to skip 🚫", "label": "duplicate"}
71- - {"title": "Entries to skip 🚫", "label": "invalid"}
72- - {"title": "Entries to skip 🚫", "label": "wontfix"}
73- - {"title": "Entries to skip 🚫", "label": "no RN"}
74- - {"title": "Breaking Changes 💥", "label": "breaking-change"}
75- - {"title": "Security updates 👮", "label": "security"}
76- - {"title": "New Features 🎉", "label": "enhancement"}
77- - {"title": "New Features 🎉", "label": "feature"}
78- - {"title": "Bugfixes 🛠", "label": "bug"}
79- - {"title": "Epics 📖", "label": "Epic"}
80- - {"title": "Infrastructure ⚙️", "label": "infrastructure"}
81- - {"title": "Silent-live 🤫", "label": "silent-live"}
82- - {"title": "Documentation 📜", "label": "documentation"}
83- duplicity-scope : ' service'
84- duplicity-icon : ' 🔁'
79+ - { title: Breaking Changes 💥, label: breaking change, order: 10 }
80+ - { title: Epics 🚀, label: epic, order: 20 }
81+ - { title: New Features 🎉, label: enhancement, order: 30 }
82+ - { title: Bugfixes 🛠, label: bug, order: 40 }
83+ - { title: Infrastructure ⚙️, label: infrastructure, order: 50 }
84+ - { title: Spikes 💡, label: spike, order: 60 }
85+ - { title: Agent 🤖, label: Agent, order: 70 }
86+ - { title: DB 🗄️, label: DB, order: 75 }
87+ - { title: Model 🧩, label: Model, order: 80 }
88+ - { title: Server 🖥️, label: Server, order: 85 }
89+ - { title: Reader 📖, label: Reader, order: 90 }
90+ - { title: Entries to skip 🚫, label: duplicate, hidden: true, order: 99 }
91+ - { title: Entries to skip 🚫, label: no RN, hidden: true, order: 99 }
92+ - { title: Silent-live 🤫, catch-open-hierarchy: true, hidden: false }
8593 warnings : true
86- # skip-release-notes-labels: "no RN,duplicate,invalid,wontfix" I would rather see the chapter, review and remove it manually
8794 print-empty-chapters : false
88- row-format-issue : ' _{title}_ {developers} in {number}'
89- row-format-pr : ' _{title}_ {developers} in {number}'
90- row-format-link-pr : true
95+ row-format-issue : ' {type}: {number} _{title}_ by {developers} in {pull-requests}'
96+ row-format-pr : ' {number} _{title}_ by {developers}'
9197 hierarchy : true
98+ row-format-hierarchy-issue : ' {type}: {number} _{title}_ by {developers} {progress}'
9299
93- - name : Create and Push Tag
100+ - name : Create and push tag
94101 uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
102+ env :
103+ TAG_NAME : ${{ github.event.inputs.tag-name }}
95104 with :
96105 script : |
97- const tag = core.getInput('tag-name')
106+ const tag = process.env.TAG_NAME;
98107 const ref = `refs/tags/${tag}`;
99- const sha = context.sha; // The SHA of the commit to tag
108+ const sha = context.sha;
100109
101110 await github.rest.git.createRef({
102111 owner: context.repo.owner,
@@ -107,7 +116,6 @@ jobs:
107116
108117 console.log(`Tag created: ${tag}`);
109118 github-token : ${{ secrets.GITHUB_TOKEN }}
110- tag-name : ${{ github.event.inputs.tag-name }}
111119
112120 - name : Create draft release
113121 uses : softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda
0 commit comments