Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 914 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 914 Bytes

Summary

This script will:

  1. Get all the open PRs from a GitHub repo.
  2. Check which are mergeable with origin HEAD (usually master).
  3. Check which pass all CI checks.
  4. Check which are mergeable with local branch.
  5. Summarize results.

Example:

asciicast

Useage

Special dependencies: gh with cached auth token, jq and rg.

Clone this repo, make sure the dependencies are set up (Arch users can use the AUR package git-conflict-git for this), then run:

  # in directory of repo that is to be checked
  git-conflict.sh

Script will automatically look for a remote named origin to retrieve the uprstream url from there. If this fails, then the owner and repo can can be passed as an optional arguments:

  git-conflict.sh gibbz00 conflict # to run on https://github.com/gibbz00/conflict