git-machete
git-machete copied to clipboard
Feature suggestion: Show status of CI checks in `git machete status`
Thank you for the real nice software. I love using it every day.
Just a feature idea: Add an optional flag to git machete status to show the status of the CI checks, e.g. gh pr checks. Just something to consider!
Thanks ❤️ I use it every day too 😅
I think you can automate it using machete-status-branch hook (.git/hooks/machete-status-branch; the file must be executable). The script might be as simple as:
#!/bin/bash
branch=$1
if gh pr checks "$branch" &>/dev/null; then
echo OK
else
echo Failing
fi
Not tested, just a guess 😅 Also, you can check sample machete-status-branch hook in hook_samples/machete-status-branch.