Commits

Tags: Flow

Overview

A commit represents a set of code changes stored in git.

Supported request

Get a list of commits:

https://flow.pluralsight.com/v3/customer/core/commits/

Fields

NameTypeDescription
iddoubleCommit ID (not the SHA).
hexshastringUnique identifier for the commit.
user_aliasdoubleFilter-traversable object
user_alias_iddoubleUnique identifier assigned to an user alias.
user_alias_id__instringMultiple user_alias_ids in comma separated list.
apex_user_iddoubleUnique identifier for the main user record for multiple user aliases that is associated with a commit.
apex_user_id__instringMultiple apex_user_id in a comma separated list.
repo_iddoubleUnique identifier for a repository.
author_datestringCommit author date.
author_tzoffsetdoubleThe time zone offset from UTC+0 for an author (in seconds).
author_local_datestringAuthor date adjusted to the author’s local time based on the author_tzoffset.
committer_datestringDate and time of the commit.
committer_tzoffsetstringThe time zone offset from UTC+0 for the commit (in seconds).
ignore_hashstringA hash of the "Ignored Files" text when a commit was last updated.
is_mergebooleanReturns true to indicate the commit is merged.
is_pr_orphanbooleanReturns true to indicate the commit is for a pull request that does not have a parent.
messagestringCommit message.
extracted_tagsstringCommit tags.
external_commit_urlstringExternal commit URL.
halocdoubleHunk Aware Lines of Code (total lines of code).
new_workdoubleNumber of new lines of code.
legacy_refactordoubleNumber of lines of edited code replacing code older than three weeks.
help_othersdoubleNumber of lines of edited code replacing code less than three weeks.
churndoubleNumber of lines of edited codes replacing code less than three weeks authored by the same authored.
filesdoubleNumber of files.
hunksdoubleNumber of hunks (blocks of code in a file).
insertionsdoubleNumber of insertions.
deletionsdoubleNumber of deletions.
levenshteindoubleThe total edit distance per line, over the total line length for each hunk represented as a percentage.
riskdoubleNumber representing how likely it is the commit will cause problems.
impactdoubleNumber of impact.
is_trivialstringReturns true to indicate the commit is trivial.
ins_del_ratiodoubleRatio of inserts to deletions.
is_outlierbooleanReturns true if the commit has been marked as an outlier.
outlier_reasonstringReason why the commit is an outlier.
logical_codedoubleNumber of lines of code that are not comments or whitespace. Configurable in the Advanced Outlier Detection Settings.
multi_line_commentsdoubleNumber of comments that span across multiple lines.
single_line_commentsdoubleNumber of comments that are single line comments.
whitespace_and_punctuationdoubleNumber of lines that included only whitespace or punctuation.

Example response

back to top


If you need help, please email support@pluralsight.com for 24/7 assistance.