Skip to content

Commit af34675

Browse files
committed
feat(app): calendar event reminder
1 parent 8f2015b commit af34675

8 files changed

Lines changed: 565 additions & 16 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Calendar Reminder
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Run daily at midnight
6+
7+
jobs:
8+
send-reminder:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 20
18+
cache: 'pnpm'
19+
20+
- name: Install dependencies
21+
run: pnpm install
22+
23+
- name: Run script
24+
run: node dist/src/github.js
25+
env:
26+
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
27+
GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }}
28+
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"IDX.aI.enableInlineCompletion": true,
3+
"IDX.aI.enableCodebaseIndexing": true
4+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
"author": "",
1414
"license": "MIT",
1515
"dependencies": {
16-
"octokit": "^3.1.2",
17-
"dotenv": "^16.3.1"
16+
"dotenv": "^16.3.1",
17+
"googleapis": "^148.0.0",
18+
"octokit": "^3.1.2"
1819
},
1920
"devDependencies": {
2021
"@types/node": "^20.17.25",

0 commit comments

Comments
 (0)