Skip to content

Add MoT to Private Specs Repository#3950

Merged
sarangan12 merged 5 commits intoAzure:masterfrom
sarangan12:AddMoTToPrivatespecsrepo
Sep 20, 2018
Merged

Add MoT to Private Specs Repository#3950
sarangan12 merged 5 commits intoAzure:masterfrom
sarangan12:AddMoTToPrivatespecsrepo

Conversation

@sarangan12
Copy link
Contributor

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-ruby

Unable to detect any generation context from this PR.

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-python

Unable to detect any generation context from this PR.

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-node

Unable to detect any generation context from this PR.

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-java

Unable to detect any generation context from this PR.

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-js

Unable to detect any generation context from this PR.

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-go

Unable to detect any generation context from this PR.

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@bsiegel
Copy link
Member

bsiegel commented Sep 19, 2018

@sarangan12 You don't need to add custom formatting for this, you can just post the contents of output.summary and output.text directly to the PR as the comment, since they are already markdown-formatted.

}

function compareJsonRef(beforeJsonRef, afterJsonRef) {
return (beforeJsonRef.replace(/json:\d+:\d+/, '') == afterJsonRef.replace(/json:\d+:\d+/, ''));
Copy link
Member

Choose a reason for hiding this comment

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

What's the intent behind this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is related to the issue specified by Joel.

}

module.exports = {
postGithubComment: function(owner, repository, prNumber, commentBody) {
Copy link
Member

Choose a reason for hiding this comment

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

Are we concerned that every time a commit is pushed, a new build will run and this will create a new comment? If so, maybe we can put an identifier in the comment and then either create a new comment or update the existing one if found. SwaggerToSdk is already doing this (it matches on the header text) but you should also be able to do it by inserting an HTML comment like <!-- momentoftruth --> which will be invisible to the user but will make it easy to locate the comment to update.

@sarangan12 sarangan12 merged commit bdfeff1 into Azure:master Sep 20, 2018
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.

5 participants

Comments