-
Notifications
You must be signed in to change notification settings - Fork 41
39 lines (35 loc) · 2.22 KB
/
contributor-reminder.yml
File metadata and controls
39 lines (35 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Contributor Reminder
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
jobs:
guidance:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Comment on Issue
if: github.event_name == 'issues' && github.actor != 'jagdish-15'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Thank you for opening an issue.\n\nPlease review our `CONTRIBUTING.md` guidelines before getting started.\n\nA maintainer will review this issue shortly. If you would like to work on the issue yourself, please leave a comment requesting assignment.\n\n### Issue Assignment Policy\n- The issue creator is given the first priority to work on their issue.\n- If the creator declines or does not request assignment, the issue will be assigned to others in the order of requests received.\n- Please do not submit PRs or begin work until you are officially assigned.\n\n> **Note:** This project is currently maintained by a solo maintainer, so reviews, assignments, and responses may sometimes take a little time. Thanks for your patience."
})
- name: Comment on Pull Request
if: github.event_name == 'pull_request_target' && github.actor != 'jagdish-15'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Thank you for submitting a pull request.\n\nPlease ensure your changes comply with the project's contribution guidelines and that all workflow checks pass successfully.\n\n### Formatting and Branching\n- Please confirm you have formatted your code using `npx prettier --write .`\n- Ensure this PR is made from a `feature/*` branch and not `main`.\n\n> **Note:** This project is currently maintained by a solo maintainer, so reviews and responses may sometimes take a little time. Thanks for your patience."
})