Skip to content

Commit

Permalink
Merge branch 'main' into conroy/formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Dec 28, 2023
2 parents 3f10df5 + cae756c commit 7763ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/@aws-cdk/prlint/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ export class PullRequestLinter {

/**
* Trusted community reviewers is derived from the source of truth at this wiki:
* https://github.com/aws/aws-cdk/wiki/Introducing-CDK-Community-PR-Reviews
* https://github.com/aws/aws-cdk/wiki/CDK-Community-PR-Reviews
*/
private getTrustedCommunityMembers(): string[] {
if (this.trustedCommunity.length > 0) { return this.trustedCommunity; }

const wiki = execSync('curl https://raw.githubusercontent.com/wiki/aws/aws-cdk/Introducing-CDK-Community-PR-Reviews.md', { encoding: 'utf-8' }).toString();
const wiki = execSync('curl https://raw.githubusercontent.com/wiki/aws/aws-cdk/CDK-Community-PR-Reviews.md', { encoding: 'utf-8' }).toString();
const rawMdTable = wiki.split('<!--section-->')[1].split('\n').filter(l => l !== '');
for (let i = 2; i < rawMdTable.length; i++) {
this.trustedCommunity.push(rawMdTable[i].split('|')[1].trim());
Expand Down

0 comments on commit 7763ce3

Please sign in to comment.