[Issue Management] Pull Request Review Reminder #72
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "[Issue Management] Pull Request Review Reminder" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Trigger every Monday at 10:00 GMT+8 | |
| - cron: '0 2 * * 1' | |
| jobs: | |
| pull-request-review-reminder: | |
| runs-on: ubuntu-latest | |
| name: "Pull Request Review Reminder" | |
| steps: | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install requests | |
| - id: app-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.LONGHORN_GITHUB_BOT_APP_ID }} | |
| private-key: ${{ secrets.LONGHORN_GITHUB_BOT_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| permission-contents: read | |
| permission-issues: read | |
| permission-pull-requests: read | |
| permission-organization-projects: read | |
| - name: Authenticate GitHub CLI | |
| run: echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token | |
| - uses: actions/checkout@v4 | |
| - name: Pull Request Review Reminder | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_LONGHORN_QA_WEBHOOK_URL }} | |
| USER_MAPPING: ${{ secrets.USER_MAPPING_FOR_GITHUB_SLACK }} | |
| run: python .github/workflows/pr-review-reminder.py |