File tree 1 file changed +8
-6
lines changed 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,17 @@ import { ValidationError } from "@changesets/errors";
15
15
const getReleasePlanMessage = ( releasePlan : ReleasePlan | null ) => {
16
16
if ( ! releasePlan ) return "" ;
17
17
18
- let table = markdownTable ( [
19
- [ "Name" , "Type" ] ,
20
- ...releasePlan . releases
18
+ const publishableReleases = releasePlan . releases
21
19
. filter (
22
20
(
23
21
x
24
22
) : x is ComprehensiveRelease & { type : Exclude < VersionType , "none" > } =>
25
23
x . type !== "none"
26
24
)
25
+
26
+ let table = markdownTable ( [
27
+ [ "Name" , "Type" ] ,
28
+ ...publishableReleases
27
29
. map ( ( x ) => {
28
30
return [
29
31
x . name ,
@@ -39,15 +41,15 @@ const getReleasePlanMessage = (releasePlan: ReleasePlan | null) => {
39
41
return `<details><summary>This PR includes ${
40
42
releasePlan . changesets . length
41
43
? `changesets to release ${
42
- releasePlan . releases . length === 1
44
+ publishableReleases . length === 1
43
45
? "1 package"
44
- : `${ releasePlan . releases . length } packages`
46
+ : `${ publishableReleases . length } packages`
45
47
} `
46
48
: "no changesets"
47
49
} </summary>
48
50
49
51
${
50
- releasePlan . releases . length
52
+ publishableReleases . length
51
53
? table
52
54
: "When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types"
53
55
}
You can’t perform that action at this time.
0 commit comments