main is protected: changes reach it only through pull requests, and a pull request can merge only when the required checks pass. Here the required check is the test job.
You're on add-troll, a pull request whose tests fail. Try to merge it:
gh pr merge
Merges the pull request of the branch you're on into its base branch. --merge keeps every commit and adds a merge commit.
gh pr merge --mergeIt's refused: the base branch policy prohibits the merge. A required check that fails, is still running, or never ran blocks it.
Fix it on the branch: commit, git push, and the pull request runs again. When gh pr checks is all ✓, merge.
Objectives
- Make the pull request's checks pass.
- Merge it.