Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into New_web
  • Loading branch information
pandeyji711 committed May 30, 2024
2 parents b0d114d + 4038648 commit cff6f9e
Show file tree
Hide file tree
Showing 11 changed files with 2,941 additions and 126 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/issue-reminder.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# name: "Open-Issue-Reminder"
name: "Open-Issue-Reminder"

# on:
# schedule:
# - cron: "* 12 */3 * *"
on:
schedule:
- cron: "0 12 */3 * *"

# jobs:
# welcome:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

# - name: Run script
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# const { data: issues } = await github.issues.listForRepo({
# owner: context.repo.owner,
# repo: context.repo.repo,
# state: 'open'
# });
# for (const issue of issues) {
# const issueComment = `Hi there! This issue is still open. We are for your response.
# Contributor Assigned: ${issue.assignees.map(assignee => '@' + assignee.login).join(', ') || 'None'}`;
# await github.issues.createComment({
# issue_number: issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: issueComment
# });
# }
- name: Run script
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: issues } = await github.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
});
for (const issue of issues) {
const issueComment = `Hi there! This issue is still open. We are waiting for your response.
Assignees: ${issue.assignees.map(assignee => '@' + assignee.login).join(', ') || 'None'}`;
await github.issues.createComment({
issue_number: issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: issueComment
});
}
Loading

0 comments on commit cff6f9e

Please sign in to comment.