Skip to content

Commit 97fab06

Browse files
authored
Merge pull request #1206 from betatim/include-title
[MRG] Add commit title to chartpress message
2 parents d8e28cc + 5e0c0fe commit 97fab06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/publish

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ if [[ $GITHUB_REF != refs/tags/* ]]; then
2727
# jupyterhub/binderhub@123abcd which will be understood as a reference
2828
# by GitHub.
2929
PR_OR_HASH=$(git log -1 --pretty=%h-%B | head -n1 | sed 's/^.*\(#[0-9]*\).*/\1/' | sed 's/^\([0-9a-f]*\)-.*/@\1/')
30-
EXTRA_MESSAGE="${GITHUB_REPOSITORY}${PR_OR_HASH}"
30+
LATEST_COMMIT_TITLE=$(git log -1 --pretty=%B | head -n1)
31+
EXTRA_MESSAGE="${GITHUB_REPOSITORY}${PR_OR_HASH} ${LATEST_COMMIT_TITLE}"
3132
chartpress --push --publish-chart --long --extra-message "${EXTRA_MESSAGE}"
3233
else
3334
# Setting a tag explicitly enforces a rebuild if this tag had already been

0 commit comments

Comments
 (0)