-
Notifications
You must be signed in to change notification settings - Fork 0
Adapting the release notes workflow to the project. #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tmikula-dev
merged 1 commit into
master
from
feature/156-adapting-the-release-notes-workflow
May 22, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,3 @@ | ||
| # | ||
| # Copyright 2025 ABSA Group Limited | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| name: Draft Release | ||
| on: | ||
| workflow_dispatch: | ||
|
|
@@ -22,7 +6,9 @@ on: | |
| description: 'Name of git tag to be created, and then draft release created. Syntax: "v[0-9]+.[0-9]+.[0-9]+".' | ||
| required: true | ||
| from-tag-name: | ||
| description: 'Name of the git tag from which to detect changes from. Default value: latest tag. Syntax: "v[0-9]+.[0-9]+.[0-9]+".' | ||
| description: >- | ||
| Name of the git tag from which to detect changes from. | ||
| Default value: latest tag. Syntax: "v[0-9]+.[0-9]+.[0-9]+". | ||
| required: false | ||
|
|
||
| jobs: | ||
|
|
@@ -36,9 +22,9 @@ jobs: | |
|
|
||
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | ||
| with: | ||
| python-version: '3.13' | ||
| python-version: '3.14' | ||
|
|
||
| - name: Check Format of Received Tag | ||
| - name: Check format of received target tag | ||
| id: check-version-tag | ||
| uses: AbsaOSS/version-tag-check@4145e48bf3f77a5afff2ec9afdd8afb6b53bce34 | ||
| env: | ||
|
|
@@ -47,7 +33,7 @@ jobs: | |
| github-repository: ${{ github.repository }} | ||
| version-tag: ${{ github.event.inputs.tag-name }} | ||
|
|
||
| - name: Check Format of Received From Tag | ||
| - name: Check format of received from tag | ||
| if: ${{ github.event.inputs.from-tag-name }} | ||
| id: check-version-from-tag | ||
| uses: AbsaOSS/version-tag-check@4145e48bf3f77a5afff2ec9afdd8afb6b53bce34 | ||
|
|
@@ -60,55 +46,62 @@ jobs: | |
|
|
||
| - name: Generate Release Notes | ||
| id: generate_release_notes | ||
| uses: AbsaOSS/generate-release-notes@B90223510d1704301a36a36f0d86a72a0e72f0cf | ||
| uses: AbsaOSS/generate-release-notes@da535383f54a6532adb84e88d3b6e5c7236132df | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| release-notes-title: "## [Rr]elease [Nn]otes" | ||
| tag-name: ${{ github.event.inputs.tag-name }} | ||
| from-tag-name: ${{ github.event.inputs.from-tag-name }} | ||
| chapters: | | ||
| - {"title": "Entries to skip 🚫", "label": "duplicate"} | ||
| - {"title": "Entries to skip 🚫", "label": "invalid"} | ||
| - {"title": "Entries to skip 🚫", "label": "wontfix"} | ||
| - {"title": "Entries to skip 🚫", "label": "no RN"} | ||
| - {"title": "Breaking Changes 💥", "label": "breaking change"} | ||
| - {"title": "Security updates 👮", "label": "security"} | ||
| - {"title": "New Features 🎉", "label": "enhancement"} | ||
| - {"title": "Bugfixes 🛠", "label": "bug"} | ||
| - {"title": "Epics 📖", "label": "epic"} | ||
| - {"title": "Infrastructure ⚙️", "label": "infrastructure"} | ||
| - {"title": "Silent-live 🤫", "label": "silent live"} | ||
| - {"title": "Documentation 📜", "label": "documentation"} | ||
| duplicity-scope: 'none' | ||
| - { title: Breaking Changes 💥, label: breaking change, order: 10 } | ||
| - { title: New Features 🎉, label: enhancement, order: 20 } | ||
| - { title: Bugfixes 🛠, label: bug, order: 30 } | ||
| - { title: Infrastructure ⚙️, label: infrastructure, order: 40 } | ||
| - { title: Refactoring 🚀, label: refactoring, order: 50 } | ||
| - { title: Documentation 📜, label: documentation, order: 60 } | ||
| - { title: No entry 🚫, label: duplicate, hidden: true, order: 99 } | ||
| warnings: true | ||
| skip-release-notes-labels: "no RN,duplicate,invalid,wontfix" | ||
| print-empty-chapters: false | ||
| row-format-issue: '_{title}_ {developers} in {number}' | ||
| row-format-pr: '_{title}_ {developers} in {number}' | ||
| row-format-link-pr: true | ||
| hierarchy: true | ||
| row-format-issue: '{type}: {number} _{title}_ by {developers} in {pull-requests}' | ||
| row-format-pr: '{number} _{title}_ by {developers}' | ||
|
|
||
| - name: Create and Push Tag | ||
| - name: Create and push tag | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 | ||
| env: | ||
| TAG_NAME: ${{ github.event.inputs.tag-name }} | ||
| with: | ||
| script: | | ||
| const tag = process.env.TAG_NAME | ||
| const tag = process.env.TAG_NAME; | ||
| const ref = `refs/tags/${tag}`; | ||
| const sha = context.sha; // The SHA of the commit to tag | ||
| const tagMessage = `${tag} released by GitHub Action`; | ||
|
|
||
| const tagObject = await github.rest.git.createTag({ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what if the tag exists?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| tag: tag, | ||
| message: tagMessage, | ||
| object: sha, | ||
| type: 'commit', | ||
| tagger: { | ||
| name: context.actor, | ||
| email: `${context.actor}@users.noreply.github.com`, | ||
| date: new Date().toISOString() | ||
| } | ||
| }); | ||
|
|
||
| await github.rest.git.createRef({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| ref: ref, | ||
| sha: sha | ||
| sha: tagObject.data.sha | ||
| }); | ||
|
|
||
| console.log(`Tag created: ${tag}`); | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Create Draft Release | ||
| - name: Create draft release | ||
| uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: AbsaOSS/EventGate
Length of output: 576
🏁 Script executed:
Repository: AbsaOSS/EventGate
Length of output: 9948
Align the release-notes exclusion label across workflows.
check_pr_release_notes.ymlskips PRs withskip-labels: 'no RN', butrelease_draft.ymlonly hideslabel: duplicate(hidden: true) and has no corresponding hidden chapter forno RN. As a result, PRs labeledno RNmay still appear in generated release notes under other (visible) chapter labels.🤖 Prompt for AI Agents