Skip to content

Commit

Permalink
new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrazavi committed Jul 8, 2024
1 parent 9c28c4c commit d5b7543
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/auto-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Automatic PR Comment

on:
pull_request_target:
types: [opened, synchronize]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Comment on PR
uses: actions/github-script@v6
with:
script: |
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.issues.createComment({
...repo,
issue_number: issue_number,
body: commentBody
});

0 comments on commit d5b7543

Please sign in to comment.