Skip to content

Commit

Permalink
Update discord_commit.sh
Browse files Browse the repository at this point in the history
This adds:
commit Author
Branch
Commit name
Commit description
  • Loading branch information
Avalon2106 committed Apr 30, 2024
1 parent 7bdee90 commit a95df05
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/discord_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@
f=$COMMIT_FROM
t=$COMMIT_TO
generate_post_data() {
cat <<EOF
cat <<EOF
{
"content": "",
"tts": false,
"embeds": [
{
"id": 652627557,
"title": "Work Progress Report",
"color": 3617648,
"description": "We hereby report that the [**ImmersiveIntelligence_External**](https://github.com/Team-Immersive-Intelligence/ImmersiveIntelligence) has received the following new commits\\n$(git log "$COMMIT_FROM...$COMMIT_TO" --format="[\`%h\`](https://github.com/Team-Immersive-Intelligence/ImmersiveIntelligence/commit/%h) **%an**: %s%n%n%b\\n" | tr -d '\n' )",
"description": "We hereby report that the [**Internal Repository**](https://github.com/Team-Immersive-Intelligence/ImmersiveIntelligence-Internal) has received following new commits",
"fields": [
{
"name": "Commit Details",
"value": "Author: $(git log --format='%an' | sed 's/"/\\"/g')\nBranch: $(git rev-parse --abbrev-ref HEAD)\nCommit name: $(git log --format='%s' | sed 's/"/\\"/g')\nCommit Description: $(git log --format='%b' | sed 's/"/\\"/g')"
}
],
"footer": {
"text": "Glory to the Engineer Cause!"
}
Expand Down

0 comments on commit a95df05

Please sign in to comment.