Get Commits
Fetch the list of commits for a specified GitHub repository.
To use this procedure, make sure your agent has learned the GitHub Book (BDK).
Syntax
Below is a line-by-line overview of the automation syntax. Expand each line to learn more.
Examples
1. Retrieve the list of commits from the main branch of a repository
get some commits from "kognitos/bdk-api"
2. Retrieve the list of commits from a specific branch of a repository
get some commits from "kognitos/bdk-api" with
the branch is "develop"
3. Retrieve the list of commits filtered by the date in which they were committed
convert "2024-08-20T15:00:00Z" to a datetime
use the above as the commit date
get the list of commits from "kognitos/bdk-api" whose date commited is the commit date
4. Retrieve the list of commits that were committed in the specified time period
convert "2024-08-13T15:00:00Z" to a datetime
use the above as the start date
convert "2024-08-20T15:00:00Z" to a datetime
use the above as the end date
get the list of commits from "kognitos/bdk-api" whose date commited is after the start date and whose date commited is before the end date
Last updated
Was this helpful?