Closed lubieniebieski closed 5 years ago
I'm not sure accessing the entire payload is viable currently as we need to scan all possible commits for a single build and that can be nuanced from just git
commands in different checkout scenarios. This is why we rely on the payload provided by github that summarizes all commits in the push, but is limited to subject only.
Capturing from branch is certainly viable though and an interesting pattern to explore.
v1.0.3
of the orb includes the fix for this
Orb version
1.0.2
What happened
ABC-123-test
ABC-123
is saved in the last line, so it looks like this:subject
key inall_commit_details
contains only the first line, so there's no way to extract the issue key{"acceptedBuilds":[],"rejectedBuilds":[{"key":{"pipelineId":"XXX","buildNumber":1},"errors":[{"message":"At least one 'issueKeys' is required"}]}],"unknownIssueKeys":[]}Success!
Expected behavior
I would like the script to extract the data from
branch
key withinall_commit_details
first and then trysubject
(which should contain the entire commit message body).Please let me know if there's anything to clarify!