Skip to content

Commit 7d84a20

Browse files
authored
Print ghstack version in PR description (#295)
1 parent 2f04035 commit 7d84a20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ghstack/submit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ def strip_mentions(body: str) -> str:
167167
return RE_MENTION.sub(r"\1", body)
168168

169169

170-
STACK_HEADER = (
171-
"Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom)"
172-
)
170+
STACK_HEADER = f"Stack from [ghstack](https://github.com/ezyang/ghstack/tree/{ghstack.__version__}) (oldest at bottom)"
173171

174172

175173
def starts_with_bullet(body: str) -> bool:

0 commit comments

Comments
 (0)