Skip to content

Commit 3f70da7

Browse files
Apply suggestions from code review
Co-authored-by: Tim Head <[email protected]>
1 parent e8ac8eb commit 3f70da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/publish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if [ "${TRAVIS_TAG:-}" == "" ]; then
4444
# we craft a commit message like jupyterhub/binderhub#123 or
4545
# jupyterhub/binderhub@123abcd which will be understood as a reference
4646
# by GitHub.
47-
PR_OR_HASH=$(git log -1 --pretty=%B | head -n1 | sed 's/^.*\(#[0-9]*\).*/\1/' | sed 's/^\([0-9a-f]*\)-.*/@\1/')
47+
PR_OR_HASH=$(git log -1 --pretty=%h-%B | head -n1 | sed 's/^.*\(#[0-9]*\).*/\1/' | sed 's/^\([0-9a-f]*\)-.*/@\1/')
4848
LATEST_COMMIT_TITLE=$(git log -1 --pretty=%B | head -n1)
4949
EXTRA_MESSAGE="${TRAVIS_REPO_SLUG}${PR_OR_HASH} ${LATEST_COMMIT_TITLE}"
5050
chartpress --push --publish-chart --long --extra-message "${EXTRA_MESSAGE}"

0 commit comments

Comments
 (0)