Commit 321ef8f
committed
fix(ci): stop releasable-commit-types flagging release-please's own release commit
publishedSourcePrefixes includes <pkg>/package.json, and a release-please release commit is
`chore(release): …` whose entire job is to write the new version into exactly that file. So the
guard matched by construction on every release PR it ever ran against -- #10283 surfaced it, where
the flagged claim ("would merge green and then never reach npm") is exactly backwards: that commit
is the one that performs the release, and a maintainer cannot reword it because release-please
generates it. This file's own isPublishedFile note already warns that a guard firing on the
ordinary case is a guard that gets disabled.
The exemption keys on what the diff DID, not on the subject: a commit borrowing the
`chore(release):` subject while editing a dependency range or an exports map still strands a real
change, so only a manifest whose sole changed lines are the "version" field is dropped. A commit
left with no other published-source path is release-please's own and is not stranded; a mixed
commit still reports its remaining paths. An empty diff proves nothing and stays flagged, which
keeps the default accessor's behaviour unchanged.
Closes #102861 parent 7f27a0f commit 321ef8f
2 files changed
Lines changed: 103 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
86 | 108 | | |
87 | 109 | | |
88 | 110 | | |
89 | 111 | | |
90 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
91 | 117 | | |
92 | 118 | | |
93 | 119 | | |
94 | 120 | | |
95 | 121 | | |
| 122 | + | |
96 | 123 | | |
97 | 124 | | |
98 | 125 | | |
| |||
102 | 129 | | |
103 | 130 | | |
104 | 131 | | |
| 132 | + | |
| 133 | + | |
105 | 134 | | |
106 | | - | |
| 135 | + | |
107 | 136 | | |
108 | 137 | | |
109 | 138 | | |
| |||
165 | 194 | | |
166 | 195 | | |
167 | 196 | | |
168 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
169 | 203 | | |
170 | 204 | | |
171 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
159 | 226 | | |
160 | 227 | | |
161 | 228 | | |
| |||
0 commit comments