Skip to content

Commit 3e9a4fa

Browse files
authored
Add backticks to format file names as code (#7)
The Actions summary view is formatted as Markdown, as Python uses `__` around files (like `__init__.py`) this looks wrong. If we add (escaped) backticks it looks much nicer. Based on an idea by @oscargus raised in #4.
1 parent 2805447 commit 3e9a4fa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bin/diff-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if ! git diff-index --quiet HEAD; then
66
printf 'These files changed when running the command:\n\n'
77

88
git diff --name-only | while read -r n ; do
9-
echo "* $n"
9+
echo "* \`$n\`"
1010
done
1111

1212
exit 1

spec/black_box/diff-check_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
expect(session.run("diff-check")).to have_stdout(<<~SUMMARY
2626
These files changed when running the command:
2727
28-
* README
28+
* `README`
2929
SUMMARY
3030
)
3131
end

0 commit comments

Comments
 (0)