You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add 'commits-since' configuration option for release drafts
When the last release does not exist for a specific project or branch,
all commits from the repository are searched.
For a repository with a long history, it can block generating release notes
due to timeout or due to too long release notes.
* try to validate input
* feat: require ISO 8601 date for commits-since
* test: test the actual string in commits-since valid config
* refactor: rename commits-since to initial-commits-since
* chore: debug logs instead of info for validation
* style: run linter
* chore: update build
* chore: upadte build
* docs: update README
---------
Co-authored-by: Clément Chanchevrier <[email protected]>
Co-authored-by: Clément Chanchevrier <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ You can configure Release Drafter using the following key in your `.github/relea
146
146
| `commitish` | Optional | The release target, i.e. branch or commit it should point to. Default: the ref that release-drafter runs for, e.g. `refs/heads/master` if configured to run on pushes to `master`. |
147
147
| `filter-by-commitish` | Optional | Filter previous releases to consider only those with the target matching `commitish`. Default: `false`. |
148
148
| `include-paths` | Optional | Restrict pull requests included in the release notes to only the pull requests that modified any of the paths in this array. Supports files and directories. Default: `[]`|
149
+
| `initial-commits-since` | Optional | When drafting your first release, limit the amount of scanned commits. Expects an ISO 8601 date, ex: `"2025-06-18T10:29:51Z"`. Default: `""` (unlimited) |
149
150
150
151
Release Drafter also supports [Probot Config](https://github.com/probot/probot-config), if you want to store your configuration files in a central repository. This allows you to share configurations between projects, and create a organization-wide configuration file by creating a repository named `.github` with the file `.github/release-drafter.yml`.
151
152
@@ -374,6 +375,7 @@ The Release Drafter GitHub Action accepts a number of optional inputs directly i
374
375
| `commitish` | A string specifying the target branch for the release being created. |
375
376
| `header` | A string that would be added before the template body. |
376
377
| `footer` | A string that would be added after the template body. |
378
+
| `initial-commits-since` | When drafting your first release, limit the amount of scanned commits. Expects an ISO 8601 date, ex: `"2025-06-18T10:29:51Z"`. Default: `""` (unlimited) |
377
379
| `disable-releaser` | A boolean indicating whether the releaser mode is disabled. |
378
380
| `disable-autolabeler` | A boolean indicating whether the autolabeler mode is disabled. |
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,10 @@ inputs:
73
73
A boolean indicating whether the autolabeler mode is disabled.
74
74
required: false
75
75
default: ''
76
+
initial-commits-since:
77
+
description: |
78
+
A date in ISO format (eg: '2025-06-18T10:29:51Z') marking the initial commit for the release draft. This is applied only when no prior release is available.
79
+
required: false
76
80
outputs:
77
81
id:
78
82
description: The ID of the release that was created or updated.
0 commit comments