From 4fb7e30cdb69fbdf38dc2ca97011cdc708261715 Mon Sep 17 00:00:00 2001 From: Daniel R Date: Mon, 15 Jul 2024 12:34:51 -0400 Subject: [PATCH] Updating workflow --- .github/workflows/automatic_pr_comment.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/automatic_pr_comment.yaml b/.github/workflows/automatic_pr_comment.yaml index 0fdf86d7..3218a6a7 100644 --- a/.github/workflows/automatic_pr_comment.yaml +++ b/.github/workflows/automatic_pr_comment.yaml @@ -15,9 +15,12 @@ jobs: const issue_number = context.payload.pull_request.number; const repo = context.repo; const commentBody = `Hello, thank you for your contribution. If you are a participant, please close this pull request and open it in your own forked repository instead of here. Please read the instructions on your onboarding [Assignment Submission Guide](https://github.com/UofT-DSI/onboarding/blob/main/onboarding_documents/submissions.md) more carefully. If you are not a participant, please give us up to 72 hours to review your PR. Alternatively, you can reach out to us directly to expedite the review process.`; - github.rest.issues.createComment({ - owner: repo.owner, - repo: repo.repo, - issue_number: issue_number, - body: commentBody - }); \ No newline at end of file + // Check if the PR is made to a repo in the UofT-DSI organization + if (repo.owner === 'UofT-DSI') { + github.rest.issues.createComment({ + owner: repo.owner, + repo: repo.repo, + issue_number: issue_number, + body: commentBody + }); + } \ No newline at end of file