Skip to content

Commit

Permalink
Merge pull request #30 from RodrigoMNardi/feature/slack/link2check
Browse files Browse the repository at this point in the history
Slack Bot Message
  • Loading branch information
RodrigoMNardi authored Nov 23, 2023
2 parents 5419be8 + 29f5c29 commit 8f9b050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slack_bot/slack_bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def pull_request_message(check_suite, status)

def generate_notification_message(job, status)
pr = job.check_suite.pull_request
pr_url = "https://github.com/#{pr.repository}/pull/#{pr.github_pr_id}"
pr_url = "https://github.com/#{pr.repository}/pull/#{pr.github_pr_id}/checks?check_run_id=#{job.check_ref}"
bamboo_link = "https://ci1.netdef.org/browse/#{job.job_ref}"

"PR <#{pr_url}|##{pr.github_pr_id}>. <#{bamboo_link}|#{job.name} - #{status}> "
Expand Down

0 comments on commit 8f9b050

Please sign in to comment.