Skip to content

Include Branch and Commit names in Release Notes #1244

Closed Answered by K-Codemagic
vovaklh asked this question in Q&A
Discussion options

You must be logged in to vote

You can create a script to add details in the release_notes. Something like this:

CURRENT_BRANCH=$(git branch --show-current)
GIT_COMMIT_MESSAGE=$(git log --format=%B -n 1 $CM_COMMIT)

and then add that to the release_notes.json using cat or sed. Example:

RELEASENOTES="${CURRENT_BRANCH}${GIT_COMMIT_MESSAGE}"
chmod +x $CM_BUILD_DIR/release_notes.json
cat <<< "$RELEASENOTES" > $CM_BUILD_DIR/release_notes.json

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vovaklh
Comment options

@K-Codemagic
Comment options

Answer selected by vovaklh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
publishing_appstore Queries Related to Publishing
2 participants