Skip to content

Commit

Permalink
Updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrazavi committed Jul 15, 2024
1 parent 565264c commit 4fb7e30
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/automatic_pr_comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
// 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
});
}

0 comments on commit 4fb7e30

Please sign in to comment.