Skip to content

Commit

Permalink
#139 mention thе valve page in valves.enter()
Browse files Browse the repository at this point in the history
  • Loading branch information
Suban05 committed Sep 19, 2024
1 parent 0f68f57 commit bd92890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion objects/baza/valves.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def enter(name, badge, why, job)
[enc(r), @human.id, name.downcase, badge]
).first
human.notify(
"🍒 A new [valve](//valves) ##{row['id']}",
"🍒 A new [valve](//valves/#{row['id']}) ##{row['id']}",
"just entered for the `#{name}` job",
job.nil? ? '' : "([##{job}](//jobs/#{job}))",
": #{escape(why.inspect)}.",
Expand Down
2 changes: 1 addition & 1 deletion test/baza/test_valves.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def test_escapes_for_tbot
n = fake_name
b = fake_name
valves.enter(n, b, 'you @jeff-lebowski is [awesome] in foo/foo-x.j#42', nil) { 42 }
assert_match(/A new \[valve\]\(\/\/valves\/\d+\)/, loog.to_s)
assert_include(
loog.to_s,
'A new [valve](//valves)',
'"you [@jeff-lebowski](https://github.com/jeff-lebowski) is \[awesome\]',
'in [foo/foo-x.j#42](https://github.com/foo/foo-x.j/issues/42)',
'The result is `42`'
Expand Down

0 comments on commit bd92890

Please sign in to comment.