Skip to content

Commit

Permalink
See if I can find idx as a reviewer...
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-wong-dfinity-org committed Jan 6, 2025
1 parent 2b9e3e1 commit fc34db3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/governance_pull_request_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ jobs:
script: |
const pullRequestNumber = context.payload.number;
console.log("\n");
console.log("BEGIN context");
console.log(JSON.stringify(context, null, 2));
console.log("END context");
console.log("\n");
// Only remind if nns-team approval is required.
const reviews = await github.pulls.getReviews({
owner: "dfinity",
repo: "ic",
pull_number: pullRequestNumber,
});
console.log("reviews = " + JSON.stringify(reviews));
const requiredTeams = reviews.data.required_pull_request_reviews;
const nnsTeamApprovalRequired = requiredTeams.some((team) => team.team_id === 'nns-team');
if (!nnsTeamApprovalRequired) {
return;
}
// TODO: Figure out how to post in such a way that there is a "Resolve" button nearby.
await github.rest.pulls.createReview({
Expand Down

0 comments on commit fc34db3

Please sign in to comment.