Browse Source

Added GitHub Actions to create and check for reminders in pull requests.

nessita 1 year ago
parent
commit
1fd57f2a21
2 changed files with 34 additions and 0 deletions
  1. 17 0
      .github/workflows/reminders_check.yml
  2. 17 0
      .github/workflows/reminders_create.yml

+ 17 - 0
.github/workflows/reminders_check.yml

@@ -0,0 +1,17 @@
+name: Check reminders
+
+on:
+  schedule:
+    - cron: '0 * * * *'  # At the start of every hour
+  workflow_dispatch:
+
+permissions:
+  contents: read
+  pull-requests: write
+
+jobs:
+  reminders:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check reminders and notify users
+        uses: agrc/reminder-action@v1

+ 17 - 0
.github/workflows/reminders_create.yml

@@ -0,0 +1,17 @@
+name: Create reminders
+
+on:
+  issue_comment:
+    types: [created, edited]
+  workflow_dispatch:
+
+permissions:
+  contents: read
+  pull-requests: write
+
+jobs:
+  reminders:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check comments and create reminders
+        uses: agrc/create-reminder-action@v1