Skip to content

fix(workflows): replace invalid trim() in LGTM matcher [DOPS-600] #4

fix(workflows): replace invalid trim() in LGTM matcher [DOPS-600]

fix(workflows): replace invalid trim() in LGTM matcher [DOPS-600] #4

Workflow file for this run

---
# Thin caller — logic lives in LocumTenens-com/ltx merge-on-green-reusable.yml.
name: Merge on Green
on:
issue_comment:
types: [created]
pull_request_review:
types: [submitted]
pull_request:
types: [labeled]
concurrency:
group: auto-merge-${{ github.event.issue.number || github.event.pull_request.number || github.sha }}
cancel-in-progress: false
jobs:
queue-merge:
name: Queue for Merge
if: |
(
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
(contains(github.event.comment.body, 'LGTM') || contains(github.event.comment.body, 'lgtm'))
) ||
(
github.event_name == 'pull_request_review' &&
github.event.review.state == 'approved' &&
contains(github.event.review.body || '', 'LGTM')
)
uses: LocumTenens-com/ltx/.github/workflows/merge-on-green-reusable.yml@main

Check failure on line 31 in .github/workflows/merge-on-green.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/merge-on-green.yml

Invalid workflow file

error parsing called workflow ".github/workflows/merge-on-green.yml" -> "LocumTenens-com/ltx/.github/workflows/merge-on-green-reusable.yml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
pr-number: ${{ github.event.issue.number || github.event.pull_request.number }}
event-type: ${{ github.event_name == 'issue_comment' && 'comment' || 'review' }}
commenter: ${{ github.event.comment.user.login || github.event.review.user.login }}
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
auto-merge:
name: Auto Merge on Green
if: |
github.event_name == 'pull_request' &&
github.event.action == 'labeled' &&
github.event.label.name == 'automerge'
uses: LocumTenens-com/ltx/.github/workflows/merge-on-green-reusable.yml@main
with:
pr-number: ${{ github.event.pull_request.number }}
event-type: labeled
commenter: ${{ github.event.sender.login }}
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}