Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ANSHIKA-26 committed Oct 2, 2024
1 parent ab775b5 commit 02955fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/restrict_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:
jobs:
restrict_issue_creation:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Fetch contributor's issues
uses: actions/github-script@v7 # Updated to v7
uses: actions/github-script@v6.1.0 # Updated to a newer version
with:
script: |
const user = context.payload.issue.user.login;
Expand Down Expand Up @@ -42,6 +43,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
body: `Hello, since this is an open-source project, we would like every contributor to have a chance to contribute. Therefore, we have restricted the number of issues one contributor can create at a time. In order to make a new issue, kindly close one of your open issues first, so that there is less spamming of issues and more PR merges!`
});
}
body: `Hello, since this is an open-source project, we would like every contributor to have a chance to contribute

0 comments on commit 02955fd

Please sign in to comment.