Skip to content

Conversation

@robertbrignull
Copy link
Contributor

It's annoying that you have to specify the ref to the API in it's full explicit format. Users definitely won't do this so I think we should prepend refs/heads/ if whatever they enter doesn't already start with resf/.

I admit there is a slight possibilty for confusion if someone makes a branch legitimately called refs/heads/refs/foo but this is quite unlikely.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

@robertbrignull
Copy link
Contributor Author

@rneatherway, can you review this? Do you think applying this transformation makes sense so users can input the branch name they are familiar with?

@rneatherway
Copy link
Contributor

I admit there is a slight possibilty for confusion if someone makes a branch legitimately called refs/heads/refs/foo but this is quite unlikely.

I agree. It's still possible to specify that branch unambiguously using the full form so I think that's fine.

@robertbrignull robertbrignull merged commit 0e9b8f4 into main Sep 7, 2020
@robertbrignull robertbrignull deleted the runner_refs branch September 7, 2020 11:19
@github-actions github-actions bot mentioned this pull request Sep 14, 2020
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.

3 participants