File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) Jupyter Development Team.
2
2
# Distributed under the terms of the Modified BSD License.
3
+ import textwrap
4
+
3
5
import plumbum
4
6
5
7
from tagging .manifests .manifest_interface import MarkdownPiece
@@ -28,18 +30,17 @@ def markdown_piece(config: Config, build_timestamp: str) -> MarkdownPiece:
28
30
"{{.Size}}" ,
29
31
]().rstrip ()
30
32
31
- return MarkdownPiece (
32
- title = "## Build Info" ,
33
- sections = [
34
- f"""\
35
- - Build timestamp: { build_timestamp }
36
- - Docker image: `{ config .full_image ()} :{ commit_hash_tag } `
37
- - Docker image size: { image_size }
38
- - Git commit SHA: [{ commit_hash } ](https://github.com/{ config .repository } /commit/{ commit_hash } )
39
- - Git commit message:
40
-
41
- ```text
42
- { commit_message }
43
- ```"""
44
- ],
33
+ build_info = textwrap .dedent (
34
+ f"""\
35
+ - Build timestamp: { build_timestamp }
36
+ - Docker image: `{ config .full_image ()} :{ commit_hash_tag } `
37
+ - Docker image size: { image_size }
38
+ - Git commit SHA: [{ commit_hash } ](https://github.com/{ config .repository } /commit/{ commit_hash } )
39
+ - Git commit message:
40
+
41
+ ```text
42
+ { commit_message }
43
+ ```"""
45
44
)
45
+
46
+ return MarkdownPiece (title = "## Build Info" , sections = [build_info ])
You can’t perform that action at this time.
0 commit comments