Skip to content

Commit de336b1

Browse files
authored
fix(librarian): shorten SHAs in generate commit msgs (#2472)
This mirrors the change we made in #2325. Updates: #2470
1 parent fff0686 commit de336b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/librarian/release_notes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ BEGIN_NESTED_COMMIT
9898
9999
PiperOrigin-RevId: {{index .Footers "PiperOrigin-RevId"}}
100100
101-
Source-link: [googleapis/googleapis@{{shortSHA .CommitHash}}](https://github.com/googleapis/googleapis/commit/{{.CommitHash}})
101+
Source-link: [googleapis/googleapis@{{shortSHA .CommitHash}}](https://github.com/googleapis/googleapis/commit/{{shortSHA .CommitHash}})
102102
END_NESTED_COMMIT
103103
{{ end }}
104104
END_COMMIT_OVERRIDE

internal/librarian/release_notes_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ This is another body.
115115
116116
PiperOrigin-RevId: 573342
117117
118-
Source-link: [googleapis/googleapis@fedcba0](https://github.com/googleapis/googleapis/commit/fedcba0987654321000000000000000000000000)
118+
Source-link: [googleapis/googleapis@fedcba0](https://github.com/googleapis/googleapis/commit/fedcba0)
119119
END_NESTED_COMMIT
120120
121121
END_COMMIT_OVERRIDE
@@ -197,7 +197,7 @@ This is another body.
197197
198198
PiperOrigin-RevId: 573342
199199
200-
Source-link: [googleapis/googleapis@fedcba0](https://github.com/googleapis/googleapis/commit/fedcba0987654321000000000000000000000000)
200+
Source-link: [googleapis/googleapis@fedcba0](https://github.com/googleapis/googleapis/commit/fedcba0)
201201
END_NESTED_COMMIT
202202
203203
END_COMMIT_OVERRIDE
@@ -275,7 +275,7 @@ This is another body.
275275
276276
PiperOrigin-RevId: 573342
277277
278-
Source-link: [googleapis/googleapis@fedcba0](https://github.com/googleapis/googleapis/commit/fedcba0987654321000000000000000000000000)
278+
Source-link: [googleapis/googleapis@fedcba0](https://github.com/googleapis/googleapis/commit/fedcba0)
279279
END_NESTED_COMMIT
280280
281281
BEGIN_NESTED_COMMIT
@@ -284,7 +284,7 @@ This is body.
284284
285285
PiperOrigin-RevId: 98765
286286
287-
Source-link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567890abcdef000000000000000000000000)
287+
Source-link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567)
288288
END_NESTED_COMMIT
289289
290290
END_COMMIT_OVERRIDE

0 commit comments

Comments
 (0)