Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Code Owners for DFXswiss/api
# These users must approve all pull requests to protected branches

# Default owners for everything in the repo
* @davidleomay @TaprootFreak
16 changes: 9 additions & 7 deletions .github/workflows/pr-review-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,7 @@ jobs:
return;
}

const body = `# 🤖 PR Review Bot

${comments.join('\n\n---\n\n')}

---
<sub>This is an automated review. Please address the issues above.</sub>`;
const body = comments.join('\n\n---\n\n');

// Find existing bot comment
const existingComments = await github.rest.issues.listComments({
Expand All @@ -238,7 +233,14 @@ jobs:
});

const botComment = existingComments.data.find(c =>
c.user?.type === 'Bot' && c.body?.includes('🤖 PR Review Bot')
c.user?.login === 'github-actions[bot]' && (
c.body?.includes('Unverified Commits') ||
c.body?.includes('Non-Conventional Commits') ||
c.body?.includes('ESLint:') ||
c.body?.includes('TypeScript:') ||
c.body?.includes('Security:') ||
c.body?.includes('TODOs/FIXMEs')
)
);

if (botComment) {
Expand Down
Loading