PR auto-merge flag

Open
#42 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github, go
Domain
api, cli

Research direction

Start by locating the git-xargs command option handling and the code that creates GitHub pull requests. Review the GitHub GraphQL v4 auto-merge capability and the githubv4 library mentioned in the issue. Done means the new switch enables auto-merge on pull requests created by git-xargs.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
We'd like the safety and communication benefits of using Pull Requests while reducing the burden as much as possible

Describe the solution you'd like
I'd like a switch when calling git-xargs that will turn on the GitHub auto-merge PR feature on the PRs that it creates.

Describe alternatives you've considered
I guess we could use a GitHub action that does it somehow but then we'd need to roll that out everywhere too (there is obviously a nice tool that can do that :))

Additional context
Unfortunately the GitHub v3 API doesn't appear to expose the auto-merge feature, only the GraphQL v4 API does, so you'd need to use a library like https://github.com/shurcooL/githubv4 since go-github doesn't support v4 API.

Dominant language
Go
Stars
1.1k
Forks
75
Avg merge
22h 5m
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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 gruntwork-io/git-xargs

All issues in gruntwork-io/git-xargs

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.