feat(discord): added hash links + fix trailing
This commit is contained in:
parent
feb765448b
commit
37ba9341cc
1 changed files with 5 additions and 6 deletions
11
.github/workflows/beta.yml
vendored
11
.github/workflows/beta.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
fi
|
||||
echo "Commits since $LAST_SHA:"
|
||||
# Accumulate commit logs in a shell variable
|
||||
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"● %s ~%an")
|
||||
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"[[%h](https://github.com/${{ github.repository }}/commit/%H)] %s ~%an")
|
||||
# Replace commit messages with pull request links
|
||||
COMMIT_LOGS=$(echo "$COMMIT_LOGS" | sed -E 's/#([0-9]+)/[#\1](https:\/\/github.com\/rebelonion\/Dantotsu\/pull\/\1)/g')
|
||||
# URL-encode the newline characters for GitHub Actions
|
||||
|
@ -108,9 +108,9 @@ jobs:
|
|||
}
|
||||
# Additional information for the goats
|
||||
declare -A additional_info
|
||||
additional_info["ibo"]=" Discord: <@951737931159187457>\n AniList: [takarealist112](<https://anilist.co/user/takarealist112/>)"
|
||||
additional_info["aayush262"]=" Discord: <@918825160654598224>\n AniList: [aayush262](<https://anilist.co/user/aayush262/>)"
|
||||
additional_info["rebelonion"]=" Discord: <@714249925248024617>\n AniList: [rebelonion](<https://anilist.co/user/rebelonion/>)\n PornHub: [rebelonion](<https://www.cornhub.com/model/rebelonion>)"
|
||||
additional_info["ibo"]=" Discord: <@951737931159187457>\n AniList: [takarealist112](<https://anilist.co/user/takarealist112/>)\n"
|
||||
additional_info["aayush262"]=" Discord: <@918825160654598224>\n AniList: [aayush262](<https://anilist.co/user/aayush262/>)\n"
|
||||
additional_info["rebelonion"]=" Discord: <@714249925248024617>\n AniList: [rebelonion](<https://anilist.co/user/rebelonion/>)\n PornHub: [rebelonion](<https://www.cornhub.com/model/rebelonion>)\n"
|
||||
# Extract contributor names from commit log and make unique list
|
||||
committers=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g' | grep -oP '(?<=~)[^%]*')
|
||||
committers=$(echo "$committers" | sort | uniq)
|
||||
|
@ -133,8 +133,7 @@ jobs:
|
|||
extra_info=$(echo -e "$extra_info" | sed 's/^/- /')
|
||||
fi
|
||||
developers="${developers}◗ **${name}**
|
||||
${extra_info}
|
||||
- Github: [${login}](https://github.com/${login})
|
||||
${extra_info} Github: [${login}](https://github.com/${login})
|
||||
- Commits: ${commits}
|
||||
"
|
||||
committers_count=$((committers_count + 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue