Skip to content

Commit

Permalink
Fix-format
Browse files Browse the repository at this point in the history
  • Loading branch information
sivasadobe committed May 29, 2024
1 parent f52419d commit 7769cdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/src/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function convertMarkdownToSlackFormat(markdown) {
console.log(markdown);
// Convert headings
markdown = markdown.replace(/^(#+) (.*$)/gim, "*$2*");
// Convert bold text
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/src/send-slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const { convertMarkdownToSlackFormat } = require("./helpers");
const sendSlackMessage = async (event_pr, slack_webhook_url) => {
const { number, html_url, title, body } = event_pr;

console.log({ number, html_url, title, body });

const text = `:rocket: *Production Release*\n*Title:* ${title} | <${html_url}|#${number}>\n*PR Description:* ${convertMarkdownToSlackFormat(
body
)}`;
Expand Down

0 comments on commit 7769cdc

Please sign in to comment.