MCPcopy Create free account
hub / github.com/ezyang/ghstack / strip_mentions

Function strip_mentions

src/ghstack/submit.py:167–168  ·  view source on GitHub ↗
(body: str)

Source from the content-addressed store, hash-verified

165
166# Replace GitHub mentions with non mentions, to prevent spamming people
167def strip_mentions(body: str) -> str:
168 return RE_MENTION.sub(r"\1", body)
169
170
171STACK_HEADER = f"Stack from [ghstack](https://github.com/ezyang/ghstack/tree/{ghstack.__version__}) (oldest at bottom)"

Callers 1

process_commitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected