Skip to content

Conversation

@camdencheek
Copy link
Member

During batch execution, we were creating the template variable with no branch name set, which meant that steps would just get an empty string for the branch name if it is used in a step.

Fixes https://github.com/sourcegraph/sourcegraph/issues/59250

Test plan

Ran a batch change that uses the ${{ repository.branch }} template variable and ensured that the variable gets populated with a non-empty string.

@camdencheek camdencheek merged commit 0621a63 into main Jan 1, 2024
@camdencheek camdencheek deleted the cc/branch-name-template branch January 1, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Batch spec templating: ${{ repository.branch }} not returning a value in the "steps" field

3 participants