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

Post comment as notification if is deploy from a PR. #55

Merged
merged 1 commit into from
Oct 13, 2015

Conversation

shrimpy
Copy link
Contributor

@shrimpy shrimpy commented Oct 12, 2015

Comments will be look like below screenshot, there will be two message depends on if deployment has continuous deployment enabled or not.

image

if (queryStrings["pr"] != null)
{
// if deployment is come from a pull request, post a comment back to the pull request.
string siteUrl = string.Format(CultureInfo.InvariantCulture, "https://{0}.azurewebsites.net", inputs.parameters["siteName"]["value"]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, avoid hard coding azurewebsites.net and use same logic as what we already have to give user link to new site

@shrimpy shrimpy merged commit d84ee24 into master Oct 13, 2015
@shrimpy shrimpy deleted the xiaowu-pr-comments branch October 13, 2015 01:01
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