feat: Add LGTM auto-merge command for approved PRs

Open
#6,262 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions
Domain
ci-cd, devops

Research direction

Start by reviewing the repository’s existing GitHub Actions workflows and the issue_comment event entry point. Implement the /lgtm and /lgtm cancel behavior described, including org-member verification and gh pr merge --auto --squash, then confirm auto-merge waits for required checks and cancellation works.

Written by the indexing model from the issue text.

Description

Summary

Add a /lgtm (or /merge) comment command that enables auto-merge on a PR. Once all CI checks pass, the PR merges automatically.

Motivation

After approval, maintainers must manually return to click merge when CI finishes. This adds unnecessary latency.

Proposed Behavior

  1. Maintainer comments /lgtm on an approved PR
  2. Workflow enables GitHub auto-merge via gh pr merge --auto --squash
  3. PR merges when all required checks pass; if CI fails, auto-merge is cancelled

Implementation

A GitHub Actions workflow on issue_comment that:

  • Verifies the commenter is an org member
  • Runs gh pr merge --auto --squash on the PR
  • Supports /lgtm cancel to disable auto-merge
Dominant language
Python
Stars
7.4k
Forks
1.5k
Avg merge
2d 6h
Merged PRs (30d)
107

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from feast-dev/feast

All issues in feast-dev/feast

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.