Skip to content

Instantly share code, notes, and snippets.

@mwhagedorn
Last active August 13, 2025 14:20
Show Gist options
  • Select an option

  • Save mwhagedorn/af4521acb263c0e416b4684b17bbf2d7 to your computer and use it in GitHub Desktop.

Select an option

Save mwhagedorn/af4521acb263c0e416b4684b17bbf2d7 to your computer and use it in GitHub Desktop.
Create slack/teams notification for issue reviews
fs_notify() {
if [[ -z "$1" ]]; then
echo "Usage: fs_notify ICN-19379"
return 1
fi
local ticket="$1"
local issue_url="https://icapitalnetwork.atlassian.net/browse/${ticket}"
# Convert ticket to lowercase for FS URL
local fs_ticket=$(echo "${ticket}" | tr '[:upper:]' '[:lower:]')
local fs_url="https://${fs_ticket}.stg.icapitalnetwork.com/login"
local message="Issue: ${issue_url} is ready for FS testing at ${fs_url}"
echo "$message" | pbcopy
echo "✅ Copied to clipboard:"
echo "$message"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment