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
13 changes: 7 additions & 6 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
* @dbiguenet @cnovel @lr06 @RenaudKeriven @arianacarnielli @mcote01 @MarcBedard8
* @dbiguenet @cnovel @lr06 @RenaudKeriven @arianacarnielli @MarcBedard8
Comment thread
dbiguenet marked this conversation as resolved.

.github/workflows/typescript/typescript-publish-release.yml @aruniverse @itwin/oss-admins

python_sdk/ @dbiguenet @cnovel @RenaudKeriven

# https://developer.bentley.com/apis/reality-management/overview/
typescript/packages/reality-data-client/ @mcote01 @MarcBedard8 @matmarchand @BeChaRem

typescript/packages/reality-data-client/ @dbiguenet @cnovel @RenaudKeriven

typescript/packages/reality-capture/ @dbiguenet @cnovel @RenaudKeriven

typescript/examples/ @dbiguenet @cnovel @RenaudKeriven
typescript/examples/ @dbiguenet @cnovel @RenaudKeriven
71 changes: 71 additions & 0 deletions .github/workflows/mention-reality-data-client-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Mention reality-data-client maintainers

on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited
- ready_for_review
paths:
- "typescript/packages/reality-data-client/**"
branches:
- main

jobs:
mention_maintainers:
if: ${{ !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
permissions:
issues: write
Comment thread
Copilot marked this conversation as resolved.
pull-requests: read
steps:
- name: Check if maintainers are already mentioned
id: check_mentioned
uses: actions/github-script@v7
with:
script: |
const maintainers = ['MarcBedard8', 'matmarchand', 'BeChaRem'];
const pr = context.payload.pull_request;
const prBody = pr.body || '';

// Get all comments on the PR
const comments = await github.paginate(github.rest.issues.listComments, {
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number
});

// Check if this workflow has already commented
const workflowCommentExists = comments.some(comment =>
(comment.body || '').includes('<!-- reality-data-client-mention -->')
);

if (workflowCommentExists) {
core.setOutput('should_comment', 'false');
return;
}

// Check if maintainers are already mentioned in PR body or comments
const allText = prBody + '\n' + comments.map(c => c.body || '').join('\n');

const toMention = maintainers.filter(user =>
!allText.includes(`@${user}`)
);

core.setOutput('to_mention', toMention.join(' @'));
core.setOutput('should_comment', toMention.length > 0 ? 'true' : 'false');

- name: Comment mentioning maintainers
if: steps.check_mentioned.outputs.should_comment == 'true'
uses: actions/github-script@v7
with:
script: |
const toMention = '${{ steps.check_mentioned.outputs.to_mention }}';
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `<!-- reality-data-client-mention -->\nFYI: This PR affects \`typescript/packages/reality-data-client/\` @${toMention}`
});
Loading