Skip to content

ci: add TiiVih auto-approve workflow#63

Merged
TommiLindfors merged 1 commit into
mainfrom
feat/tiivih-auto-approve
Jun 8, 2026
Merged

ci: add TiiVih auto-approve workflow#63
TommiLindfors merged 1 commit into
mainfrom
feat/tiivih-auto-approve

Conversation

@TommiLindfors

@TommiLindfors TommiLindfors commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a workflow that converts TiiVih's \ok\ comment into a proper GitHub APPROVED review, so her async reviews are marked as reviewed.

How it works

  1. TiiVih comments \ok\ or \ok.\ (case-insensitive) on any PR
  2. This workflow fires and submits a formal \APPROVED\ review on her behalf using her stored PAT
  3. Any other comment text (questions, notes, concerns) does not trigger approval

Setup required

Before this workflow activates, add TiiVih's PAT as a repository secret:

  • Secret name: \TIIVIH_REVIEW_TOKEN\
  • Required scope:
    epo\ (classic PAT) or \pull_requests: write\ (fine-grained PAT)

Converts a TiiVih comment of exactly 'ok' or 'ok.' (case-insensitive)
into a proper GitHub APPROVED review using a stored PAT secret.

Requires secret: TIIVIH_REVIEW_TOKEN
@github-actions github-actions Bot requested a review from TiiVih June 8, 2026 08:49
id: check
run: |
# Strip whitespace and newlines, lowercase
body=$(echo "${{ github.event.comment.body }}" \
@TommiLindfors TommiLindfors merged commit 1b96fb5 into main Jun 8, 2026
5 of 6 checks passed
@TommiLindfors TommiLindfors deleted the feat/tiivih-auto-approve branch June 8, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants