Skip to content
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

Use pullRequestParser in TeamCity provider #613

Merged
merged 2 commits into from
Jun 13, 2018
Merged

Conversation

markelog
Copy link
Member

If one uses Bitbucket Server + TeamCity, parsing of the
PULL_REQUEST_URL environment variable will be incorrect.

It seems pullRequestParser module already does a pretty good
job in figuring out what's what, so use it in TeamCity provider implementation

@markelog
Copy link
Member Author

Oh and btw, should we add info about PULL_REQUEST_URL variable here – https://danger.systems/js/usage/bitbucket_server.html?

@markelog markelog force-pushed the bitbucket branch 2 times, most recently from 08c622f to 48d0298 Compare June 13, 2018 12:31
If one uses Bitbucket Server + TeamCity, parsing of the
PULL_REQUEST_URL environment variable will be incorrect.

It seems `pullRequestParser` module already does a pretty good
job in figuring out what's what, so use it in TeamCity provider implementation
@markelog
Copy link
Member Author

Also added proper handling of - symbols in BitBucker server repo names

@orta
Copy link
Member

orta commented Jun 13, 2018

Nice one, yeah, this looks good to me 👍

@orta orta merged commit bc9d119 into danger:master Jun 13, 2018
@peril-staging
Copy link
Contributor

peril-staging bot commented Jun 13, 2018

Thanks for the PR @markelog.

This PR has been shipped in v3.7.17 - CHANGELOG.

@markelog
Copy link
Member Author

Cool thanks!

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.

None yet

2 participants