Commit 977ac88
committed
pkg/cli/admin/release/info: Mention elided first-parent, non-merge commits
Originally, the change-log generation focused on merge commits, which
are common in many repositories. For example, in this 'oc' repository:
$ git log --graph --oneline -10
* 559c67e (HEAD -> main, origin/main) Merge pull request openshift#2083 from wking/oc-adm-upgrade-recommend-certificate-authority
|\
| * b98b2e1 pkg/cli/admin/inspectalerts: Pass through --certificate-authority, etc.
* | e7900fe Merge pull request openshift#2082 from ardaguclu/code-rabbit-test
|\ \
| |/
|/|
| * ffe752e Remove mentioning about IRC channel from README
* | f114b17 OTA-1581: Promote `oc adm upgrade status` to general availability (openshift#2063)
* | 1c54ec0 Merge pull request openshift#2077 from hongkailiu/OTA-1601
|\ \
| * | 5f1dbb8 Move not-lines-related table.Write out of the loop
| * | a352662 Truncate long reasons
| * | 11f9f47 Reproduce the long reason issue
| * | 970f883 status: improve line break handling for CO Message
4299014 (Add squash-merge support into oc adm release info,
2022-04-26, openshift#1116), and mentioned the insights operator:
$ git clone --depth 10 --branch master https://github.com/openshift/insights-operator
$ cd insights-operator
$ git log --graph --oneline -5
* da45333 (HEAD -> master, origin/master, origin/HEAD) OCPBUGS-60611: virt launcher logs gatherer (openshift#1110)
* 737b59b fix: incorrect anonymization of domains (openshift#1111)
* b5185da feat: add permissions to gather clusterrole (openshift#1106)
* 3099eb0 feat: Allow on-demand gathering during initial periodic run (openshift#1109)
* 7f8b40d RFE-4152: Add missing readonlyRootFilesystem (openshift#1104)
But some repositories also use a mixture of real merges and squash or
rebase merges:
$ git clone --depth 20 --branch main https://github.com/openshift/operator-framework-operator-controller
$ cd operator-framework-operator-controller
$ git log --graph --oneline -11
* 9319f22a (HEAD -> main, origin/main, origin/HEAD) UPSTREAM: <carry>: Ensure unique name for bad-catalog tests
* 9b50498a UPSTREAM: <carry>: Adds ResourceVersion checks to the tls secret deletion test, mirroring the logic used in the certificate rotation test. This makes the test more robust by ensuring a new secret is created, not just that an existing one is still present.
* 2ed1a5c8 UPSTREAM: <carry>: Migrate single/own namespace tests
* 0c4f4303 UPSTREAM: <carry>: [OTE] add catalog tests from openshift/origin
* 28299f38 UPSTREAM: <carry>: remove obsolete owners
* 5aa7897f UPSTREAM: <carry>: [OTE] - Readme:Add info to help use payload-aggregate with new tests
* 0bb19537 UPSTREAM: <carry>: Adds ResourceVersion checks to the tls secret deletion test, mirroring the logic used in the certificate rotation test. This makes the test more robust by ensuring a new secret is created, not just that an existing one is still present.
* e9e3220f UPSTREAM: <carry>: [OTE] Add webhook to validate openshift-service-ca certificate rotation
* a7d35272 Merge pull request openshift#453 from openshift-bot/synchronize-upstream
|\
| * d93f9d16 UPSTREAM: <drop>: configure the commit-checker
| * 9a69e8ed UPSTREAM: <drop>: remove upstream GitHub configuration
Before this commit, the logic would find the merge commits, assume
that all content came in via merge commits, and not mention the other
changes:
$ git log --first-parent --merges --oneline
a7d3527 Merge pull request openshift#453 from openshift-bot/synchronize-upstream
4cae159 Merge pull request openshift#449 from openshift-bot/synchronize-upstream
82f63dc Merge pull request openshift#444 from openshift-bot/synchronize-upstream
6f91d84 Merge pull request openshift#435 from openshift-bot/synchronize-upstream
With this commit, we'll continue to include a line for each of those
merges. But we'll also include the count of any elided, non-merge,
first-parent commits:
$ git log --first-parent --no-merges --oneline | wc -l
16
Folks interested in what exactly was elided will have to click through
to 'Full changelog' or otherwise go digging. But at least they'll get
the count of elided commits to know that there is more information
there to see behind that click.1 parent 559c67e commit 977ac88
3 files changed
+57
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | | - | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
257 | 270 | | |
258 | 271 | | |
259 | 272 | | |
| |||
262 | 275 | | |
263 | 276 | | |
264 | 277 | | |
265 | | - | |
| 278 | + | |
266 | 279 | | |
267 | 280 | | |
268 | 281 | | |
269 | 282 | | |
270 | | - | |
| 283 | + | |
271 | 284 | | |
272 | 285 | | |
273 | 286 | | |
274 | | - | |
| 287 | + | |
275 | 288 | | |
276 | 289 | | |
277 | 290 | | |
| |||
304 | 317 | | |
305 | 318 | | |
306 | 319 | | |
307 | | - | |
| 320 | + | |
308 | 321 | | |
309 | 322 | | |
310 | 323 | | |
| |||
314 | 327 | | |
315 | 328 | | |
316 | 329 | | |
317 | | - | |
| 330 | + | |
318 | 331 | | |
319 | 332 | | |
320 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
302 | 306 | | |
303 | 307 | | |
304 | 308 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
1797 | | - | |
| 1797 | + | |
1798 | 1798 | | |
1799 | 1799 | | |
1800 | 1800 | | |
1801 | 1801 | | |
1802 | 1802 | | |
1803 | | - | |
| 1803 | + | |
1804 | 1804 | | |
1805 | | - | |
1806 | | - | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
| |||
1903 | 1904 | | |
1904 | 1905 | | |
1905 | 1906 | | |
1906 | | - | |
| 1907 | + | |
1907 | 1908 | | |
1908 | 1909 | | |
1909 | 1910 | | |
1910 | 1911 | | |
1911 | 1912 | | |
1912 | | - | |
| 1913 | + | |
1913 | 1914 | | |
1914 | 1915 | | |
1915 | 1916 | | |
| |||
1930 | 1931 | | |
1931 | 1932 | | |
1932 | 1933 | | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
1933 | 1937 | | |
1934 | 1938 | | |
1935 | 1939 | | |
| |||
1955 | 1959 | | |
1956 | 1960 | | |
1957 | 1961 | | |
1958 | | - | |
| 1962 | + | |
1959 | 1963 | | |
1960 | 1964 | | |
1961 | 1965 | | |
| |||
2479 | 2483 | | |
2480 | 2484 | | |
2481 | 2485 | | |
2482 | | - | |
| 2486 | + | |
2483 | 2487 | | |
2484 | 2488 | | |
2485 | | - | |
| 2489 | + | |
2486 | 2490 | | |
2487 | 2491 | | |
2488 | 2492 | | |
2489 | | - | |
| 2493 | + | |
2490 | 2494 | | |
2491 | | - | |
| 2495 | + | |
2492 | 2496 | | |
2493 | | - | |
| 2497 | + | |
2494 | 2498 | | |
2495 | | - | |
| 2499 | + | |
2496 | 2500 | | |
2497 | 2501 | | |
2498 | 2502 | | |
| |||
2733 | 2737 | | |
2734 | 2738 | | |
2735 | 2739 | | |
| 2740 | + | |
2736 | 2741 | | |
2737 | 2742 | | |
2738 | 2743 | | |
| |||
0 commit comments