Skip to content

Commit

Permalink
Enhance release notes automation (chipsalliance#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 authored and SpriteOvO committed Jan 20, 2024
1 parent d9e2c2a commit fbc7a27
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 fbc7a27

Please sign in to comment.