Skip to content

Commit a2fe3d5

Browse files
Add migration changelog type (#2243)
1 parent 867213c commit a2fe3d5

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ reason = "Internal change only."
2525
```
2626
2727
Allowed scopes: rpc, protocol, docs, node, network-monitor, ntx-builder, prover, validator, internal, general
28-
Allowed impacts: breaking, added, changed, fixed, removed, deprecated
28+
Allowed impacts: breaking, migration, added, changed, fixed, removed, deprecated
2929
-->
3030

3131
```toml

xtask/src/changelog.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ enum Scope {
5555
#[serde(rename_all = "kebab-case")]
5656
enum Impact {
5757
Breaking,
58+
Migration,
5859
Added,
5960
Changed,
6061
Fixed,
@@ -296,6 +297,19 @@ description = "Added a bootstrap command."
296297
verify_pr_body(&body).unwrap();
297298
}
298299

300+
#[test]
301+
fn accepts_migration_impact() {
302+
let body = valid_body(
303+
r#"[[entry]]
304+
scope = "node"
305+
impact = "migration"
306+
description = "Added a storage migration for node databases."
307+
"#,
308+
);
309+
310+
verify_pr_body(&body).unwrap();
311+
}
312+
299313
#[test]
300314
fn accepts_validator_and_internal_scopes() {
301315
let body = valid_body(

0 commit comments

Comments
 (0)