From 2389aaf3c63a81c4b79b0567592bf32d7281ca7e Mon Sep 17 00:00:00 2001 From: thezaeemaanwar Date: Wed, 23 Aug 2023 13:02:43 +0500 Subject: [PATCH] chore: Tag Aximprovements team on weekly maintenance PRs --- .../workflows/upgrade-python-requirements.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/upgrade-python-requirements.yml b/.github/workflows/upgrade-python-requirements.yml index e17844c..b8c4aa4 100644 --- a/.github/workflows/upgrade-python-requirements.yml +++ b/.github/workflows/upgrade-python-requirements.yml @@ -25,3 +25,24 @@ jobs: requirements_bot_github_email: ${{ secrets.REQUIREMENTS_BOT_GITHUB_EMAIL }} edx_smtp_username: ${{ secrets.EDX_SMTP_USERNAME }} edx_smtp_password: ${{ secrets.EDX_SMTP_PASSWORD }} + + tag-axim-team-for-review: + name: Tag Axim Team for review + runs-on: ubuntu-latest + steps: + - name: Mention aximprovements team + uses: actions/github-script@v4 + with: + script: | + const teamName = "openedx/axim-aximprovements"; + const prNumber = context.payload.pull_request.number; + const comment = `@${teamName} New pull request (#${prNumber})for review + github.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + body: comment + }); + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +