Skip to content

Commit

Permalink
Enhance release notes automation (#3751)
Browse files Browse the repository at this point in the history
* Bump versions
* It now tabs every line included in the Release Notes section of
  the PR template
  • Loading branch information
jackkoenig committed Jan 20, 2024
1 parent da6ae7d commit b00b22a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/config/release-notes.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
"pattern": "<!--.*-->",
"flags": "gus",
"target": ""
},
{
"pattern": "\n\\s*\n",
"flags": "gu",
"target": "\n"
},
{
"pattern": "\n",
"flags": "gu",
"target": "\n "
}
],
"custom_placeholders": [
Expand All @@ -65,12 +75,12 @@
"transformer": {
"pattern": ".*#### Release Notes(?:[\n\\s]|(?:<!--.*?-->))*((?:\\S(?!!--)).*?)[\n\\s]*\n#.*",
"flags": "gus",
"target": "\n $1"
"target": "\n$1"
}
}
],
"trim_values": false,
"max_tags_to_fetch": 200,
"max_pull_requests": 500,
"max_pull_requests": 1000,
"max_back_track_time_days": 365
}
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build Release Notes
id: release-notes
uses: mikepenz/release-changelog-builder-action@v3.7.0
uses: mikepenz/release-changelog-builder-action@v4.1.1
with:
configuration: .github/workflows/config/release-notes.json
failOnError: true
Expand Down

0 comments on commit b00b22a

Please sign in to comment.