Skip to content

Commit

Permalink
pull
Browse files Browse the repository at this point in the history
  • Loading branch information
alpharsh committed May 18, 2024
2 parents 155961a + 3d80822 commit 4d6d4b5
Show file tree
Hide file tree
Showing 7 changed files with 402 additions and 290 deletions.
50 changes: 20 additions & 30 deletions .github/workflows/issueReminder.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,32 @@
name: Issue reminder workflow
name: 'open-issue reminder'

on:
schedule:
- cron: "30 2 * * *"

- cron: '15 4 * * *'
jobs:
stale:
welcome:
runs-on: ubuntu-latest
steps:
- name: Reminder message
- name: Checkout repository
uses: actions/checkout@v2

- name: Run script
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { context, github } = require('@actions/github');
const message = 'Hi there! This issue is still open. We are looking forward to your response.';
github.issues.listForRepo({
owner: 'Curious-Ecosystem',
repo: 'Curious-Connect',
const { data: issues } = await github.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
}).then(async (response) => {
for (const issue of response.data) {
const { data: assignees } = await github.issues.listAssignees({
owner: 'Curious-Ecosystem',
repo: 'Curious-Connect',
issue_number: issue.number
});
const assigneeLogins = assignees.map(assignee => '@' + assignee.login).join(' ');
github.issues.createComment({
owner: 'Curious-Ecosystem',
repo: 'Curious-Connect',
issue_number: issue.number,
body: `${message}\n\nAssignees: ${assigneeLogins}`
});
}
}).catch((error) => {
console.error(error);
process.exit(1);
});
for (const issue of issues) {
const issueComment = `Hi there! This issue is still open. We are looking forward to 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
});
}
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"dependencies": {
"@material-tailwind/react": "^2.1.9",
"@remixicon/react": "^4.2.0",
"express": "^4.19.2",
"flowbite": "^2.3.0",
"flowbite-react": "^0.9.0",
"mongoose": "^8.3.5",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-datepicker": "^6.9.0",
Expand Down
Loading

0 comments on commit 4d6d4b5

Please sign in to comment.