Skip to content

Commit

Permalink
Fix Slug value to work in private specs repo (Azure#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangan12 authored Apr 23, 2018
1 parent d03281b commit bcd3b5c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/momentOfTruthPostProcessing.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function getLink(jsonRef, prNumber){
let fileName = jsonRef.substr(jsonRef.indexOf("specification"), (jsonRef.indexOf(".json") + 5) - jsonRef.indexOf("specification"));
let md5 = crypto.createHash('md5').update(fileName).digest("hex");

let link = "https://github.com/Azure/azure-rest-api-specs/pull/"
let link = "https://github.com/" + process.env.TRAVIS_REPO_SLUG + "/pull/"
+ prNumber
+ "/files?diff=unified#diff-"
+ md5 + "R" + line;
Expand Down Expand Up @@ -261,8 +261,10 @@ function postProcessing() {
armFileSummaries = armFileSummaries.concat(fileSummaryCopy);
}

postSummariesToGithub("SDK Related Validation Errors/Warnings", sdkFileSummaries, "Azure", "azure-rest-api-specs", pullRequestNumber, sdkContactMessage);
postSummariesToGithub("ARM Related Validation Errors/Warnings", armFileSummaries, "Azure", "azure-rest-api-specs", pullRequestNumber, armContactMessage);
let slug = process.env.TRAVIS_REPO_SLUG;
slug = slug.split("/")[1];
postSummariesToGithub("SDK Related Validation Errors/Warnings", sdkFileSummaries, "Azure", slug, pullRequestNumber, sdkContactMessage);
postSummariesToGithub("ARM Related Validation Errors/Warnings", armFileSummaries, "Azure", slug, pullRequestNumber, armContactMessage);
}

postProcessing();

0 comments on commit bcd3b5c

Please sign in to comment.