name: e2e

on:
  issue_comment:
    types: [created]

permissions:
  contents: read
  pull-requests: write

jobs:
  ack:
    if: github.event.issue.pull_request && github.event.comment.body == '/e2e'
    runs-on: ubuntu-latest
    steps:
      - name: Acknowledge
        env:
          GH_TOKEN: ${{ github.token }}
          NUMBER: ${{ github.event.issue.number }}
        run: gh pr comment "$NUMBER" --repo "$GITHUB_REPOSITORY" --body "Queued"
