Inspect the Latest Commit on a Branch
A 2-step recipe with GitHub. We can help you get access.
Recipe · 2 steps
Inspect the Latest Commit on a Branch
with GitHub · Software Construction Management
List commits on a branch then fetch the newest commit's detail.
- List the most recent commits on the branch, limited to one so the newest commit is returned first.
- Fetch the full detail of the newest commit using the SHA captured from the list step.
What you'll need to have ready
- githubToken: A GitHub token with repo scope, passed as a Bearer credential.
- owner: The account owner of the repository.
- repo: The name of the repository.
- branch: The branch (or SHA) to list commits from.
For your developer
Arazzo workflow github:inspect-latest-commit, 2 operations: repos/list-commits → repos/get-commit. Specs on APIs.io.