Skip to content

Commit b5b9bb5

Browse files
carlescufifabiobaltieri
authored andcommitted
action: Display branch names in monospace
This makes them more visible and easier to spot. Signed-off-by: Carles Cufi <[email protected]>
1 parent 0501e36 commit b5b9bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def fmt_rev(repo, rev):
171171

172172
try:
173173
if maybe_sha(rev):
174-
branches = [b.name for b in repo.get_branches() if rev ==
174+
branches = [f'`{b.name}`' for b in repo.get_branches() if rev ==
175175
b.commit.sha]
176176
s = repo.get_commit(rev).html_url
177177
# commits get formatted nicely by GitHub itself

0 commit comments

Comments
 (0)