Skip to content

Commit ed95866

Browse files
committed
Updating workflow
1 parent 0611b42 commit ed95866

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/automatic_pr_comment.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
const issue_number = context.payload.pull_request.number;
1616
const repo = context.repo;
1717
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.`;
18-
github.rest.issues.createComment({
19-
owner: repo.owner,
20-
repo: repo.repo,
21-
issue_number: issue_number,
22-
body: commentBody
23-
});
18+
// Check if the PR is made to a repo in the UofT-DSI organization
19+
if (repo.owner === 'UofT-DSI') {
20+
github.rest.issues.createComment({
21+
owner: repo.owner,
22+
repo: repo.repo,
23+
issue_number: issue_number,
24+
body: commentBody
25+
});
26+
}

0 commit comments

Comments
 (0)