ravsamhq / notify-slack-action

🔔 Send a Slack Notification from Github Actions regarding failure, warnings, or even success.
https://ravsam.in/blog/send-slack-notification-when-github-actions-fails/
MIT License
173 stars 57 forks source link

Request for "{branch_url}" OR usage of environment variables in the message_format #39

Closed gabiganam closed 2 years ago

gabiganam commented 2 years ago

I think this variable will be very useful. It is basically: {repo_url}/tree/{branch}, just need to remove the "refs/heads/" prefix from the branch variable.

Alternatively, if I can use environment variables, it will also solve my issue, I could construct the URL with my "CI_BRANCH" env var, like so: message_format: 'Branch <{repo_url}/tree/$CI_BRANCH|{branch}> on commit <{commit_url}|{commit_sha}>'

ravsam-bot[bot] commented 2 years ago

Hello and welcome to RavSam :purple_heart:. Thanks for opening your first issue. I will assign one of our team members to take a look at the problem you have raised. Make sure to include as much information as possible to help our team diagnose the issue and solve it quickly.

If the problem is related to a security concern, please feel free to email us at info@ravsam.in.

ravgeetdhillon commented 2 years ago

@gabiganam branch_url variable is now available in v2.2.0. For more details, checkout the README.