-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Slash in Branch Names for Azure DevOps #835
Comments
I'll try and dig into the code myself but I'm not sure I'll have time this week. |
@mcdafydd maybe you can take a look? |
Yes - I should have some time this week. |
@mcdafydd I tried to figure out where the branch is bring split from |
Thanks for jumping in @shawnferry. I have a little time tonight to dig in and will post an update as soon as I can. |
It looks like this is coming from my usage of Path.Base() to get the branch name out of the webhook payload. Webhook payload looks like this:
The issue is here:
So maybe we just change to split() and return everything after Great find! |
I just ran a production test with this patch and it looks good. |
- Improve tests - Replace instead of Split
Using Azure DevOps
atlantis 0.10.1
I've been able to create a otherwise identical branch called feature_newthing where Atlantis works as expected.
To reproduce create a pull request for a branch containing /s e.g. feature/NewThing the hook parsing seems to be getting
.*/(.*)$
for the branch instead of something likerefs/heads/(.*)
The text was updated successfully, but these errors were encountered: