From 18f81707272328b5cc2babf0481a8cb6494919bf Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 27 Oct 2023 15:19:47 -0400 Subject: [PATCH] feat: Create weekly tickets for on-call. I tried to do things bi-weekly but that's actually not easily possible with the versino of cron that Github uses. So we'll settle for doing this every week which is not a bad situation. --- .github/workflows/add-weekly-gh-requests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/add-weekly-gh-requests.yml diff --git a/.github/workflows/add-weekly-gh-requests.yml b/.github/workflows/add-weekly-gh-requests.yml new file mode 100644 index 0000000..ffe9805 --- /dev/null +++ b/.github/workflows/add-weekly-gh-requests.yml @@ -0,0 +1,20 @@ +name: Create weekly issues +on: + schedule: + - cron: 0 0 * * 0 + workflow_dispatch: {} + +jobs: + create_issue: + name: Create weeksly issues + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: | + gh issue create --repo "openedx/axim-engineering" \ + --title "Welcome new discourse members" \ + --label "github-request" \ + --body "Go through [new discourse introductions](https://discuss.openedx.org/c/community/introductions/18) and welcome new people to the community." + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}