-
Notifications
You must be signed in to change notification settings - Fork 20
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
If branch contains '/' deploy fails #75
Comments
Yeah, seems it's busted in that case. |
Fix is deployed. Please verify. |
Actually, I found that my change broke some scenarios, so I reverted it for now. Specifically, when including the readme.md in the URL, with my change it starts viewing the branch as Worse yet, I'm finding that the GitHub URLs make it very hard to determine the branch. e.g. Here the branch is So to summarize, the path can contain 3 things:
And we somehow need to figure it all out. In light of this, we need to step back and think about how this can be achieved. |
If I were you I would offer the option to explicitly state the branch in the query string, so |
It's not that simple, based on how things flow. e.g. look what happens when you go to https://github.com/giuliov/tfsaggregator/blob/feature/webhooks/readme.md and click the button. The button just goes to https://azuredeploy.net/. That then goes into the redirector site, which gets the repo info from the referrer (see code). But at that point we're already dealing with ambiguous info. deploy.azure.com could certainly accept an alternate way to get the branch on the query string, but then authoring the readme will become tricky, as you'd need to change it for each branch to hard code the branch, and that's pretty nasty. I think it should be possible to have a heuristic which works in the wide majority of scenarios, with more complex logic. e.g.
I think in practice it would work well, unless someone goes out of their way to make it ambiguous, and we could live with that. Please note that we have limited resources to work on slingshot, so if you want to make something happen, a PR would help :) |
I will try as it seems reasonably simple to debug locally, but do not expect anything soon: I have my own GitHub project to support in spare time. |
There are instructions at hand on building this? I get a |
Can you use VS2015 instead? VS2017 is still rough, and might be broken in all kind of ways. |
That works, now I have to setup the AAD environment... you'll hear from me when I have news. Sleep well. |
In our project on GitHub we use GitFlow convention supported by many tools, so we have
feature/x
,release/2.2-rc.1
,hotfix/y
branch names.Slingshot fails from such branches, while succeeds for a branch pointing to the same commit but without the forward slash
/
character.The text was updated successfully, but these errors were encountered: