Skip to content

Commit

Permalink
🔇 silent changes: update function git_publish_tag_branch #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Sep 5, 2024
1 parent a094a8f commit 5601277
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ function git_publish_tag_branch() {
commit_date=$(git log -1 --format='%ad' --date=format:'%Y-%m-%d %H:%M:%S')

# Construct the release message
release_message=":gem: release: $2\n\n"
release_message+="**Branch:** $1\n"
release_message+="**Latest Commit:** $current_commit\n"
release_message+="**Commit Author:** $commit_author\n"
release_message+="**Commit Date:** $commit_date\n"
release_message="🚀 *AI Workflow Administrator* \n"
release_message+="📌 *Branch:* \`$1\`\n"
release_message+="📌 *Latest Commit*: \`$current_commit\`\n"
release_message+="📌 *Commit Author*: \`$commit_author\`\n"
release_message+="📌 *Date of Commit*: \`$commit_date\`\n"

# Create and push the tag
if git tag -a "$2" -m "$release_message" && git push origin "$2"; then
Expand All @@ -423,7 +423,7 @@ function git_publish_tag_branch() {

# Switch back to the original branch
wsd_exe_cmd git checkout "$current_branch"
send_telegram_git_activity "$release_message \n\n Tag \`$2\` created and pushed successfully"
send_telegram_git_activity "$release_message \n 🌟 *Tag* \`$2\` *has been successfully created and pushed.*"
}
alias gitpublishtagbranch="git_publish_tag_branch"

Expand Down

0 comments on commit 5601277

Please sign in to comment.