Get the latest tech news

The Many SHAs of a GitHub Pull Request


Executing a GitHub Action for a pull request creates a surprising number of SHA commits. Learn the purpose of the different SHAs and when to use each one.

Many people don’t realize it, but pull requests actually have multiple “identities” when an Action workflow runs. At the same time, calls to the Status or Checks API need access to the SHA associated with the HEAD of the branch being merged. github.merge_commit_sha This is a temporary commit that is created behind the scenes for the test merge that validated no conflicts exist with the base branch.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of GitHub

GitHub

Photo of request

request

Photo of pull

pull

Related news:

News photo

GitHub Actions Typosquatting: a High-Impact Supply Chain Attack-in-Waiting?

News photo

Nginx has moved to GitHub

News photo

GitHub disabled adguard filters repository