A pull request asks to merge a branch into main. A push run tests the branch alone; a pull_request run tests what main would be after the merge: the branch merged into main. That's the run to trust before you merge.
A workflow can have more than one trigger:
on: [push, pull_request]A pull request's run uses the workflow on its branch, so add pull_request there:
git switch -c add-ogreChange the workflow, add the ogre (ogre 40 in prices.txt), commit, then push the branch and open the pull request:
git push -u origin add-ogre
gh pr create --fillWith one commit on the branch, --fill takes the pull request's title and description from it.
gh pr checks
The pull request's checks: one for each job run on its newest commit, named Workflow/job (event), with ✓, X or * (still running).
gh pr checksObjectives
- Run CI on a pull request.
- Get its checks green.