Skip to content

Standup On Comment #434

Standup On Comment

Standup On Comment #434

name: Standup On Comment
on:
discussion_comment:
types: [created]
jobs:
respond:
if: |
github.event.discussion.category.slug == 'check-ins' &&
startsWith(github.event.discussion.title, 'Weekly Check-in:') &&
github.event.comment.parent_id == null &&
github.event.comment.user.type != 'Bot' &&
contains(github.event.comment.body, '/check-in')
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install requests pyyaml
- name: Mint bot token
id: bot-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
- run: python .github/scripts/respond_to_standup_comment.py
env:
GITHUB_REPOSITORY: ${{ github.repository }}
STANDUP_TOKEN: ${{ steps.bot-token.outputs.token }}
BOT_LOGIN: ${{ steps.bot-token.outputs.app-slug }}
COMMENT_ID: ${{ github.event.comment.node_id }}
COMMENT_BODY: ${{ github.event.comment.body }}
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
DISCUSSION_ID: ${{ github.event.discussion.node_id }}
DISCUSSION_CREATED_AT: ${{ github.event.discussion.created_at }}