---
title: "Set Git Commit Status"
---
Sets a status message on Git server for a commit.
Git::Set-CommitStatus(
[Commit: <text>],
[Status: <text>],
[AdditionalContext: <text>],
[Description: <text>],
[NormalDescription: <text>],
[WarningDescription: <text>],
[ErrorDescription: <text>],
[From: <text>],
[UserName: <text>],
[Password: <text>],
[Namespace: <text>],
[Repository: <text>]
);
| Name | Format | Script Usage | Usage Notes |
|---|---|---|---|
| Commit | text | Commit | Default value is "$Commit". |
| Status (default) | text | Status | Not specifying will use value: "Automatically determine status". |
| Additional context | text | AdditionalContext | Appears in the commit status dialog on GitHub after "ci/buildmaster". Used to differentiate between multiple BuildMaster statuses on the same commit. In most cases, it is safe to leave this blank. |
| Description | text | Description | Used for all statuses except 'auto'. Default value is "#$ExecutionId in progress...". |
| Complete (success) | text | NormalDescription | Default value is "#$ExecutionId completed.". |
| Complete (warning) | text | WarningDescription | Default value is "#$ExecutionId completed with warnings.". |
| Complete (error) | text | ErrorDescription | Default value is "#$ExecutionId failed!". |
| Repository connection | text | From | Default value is "$Repository". |
| User name | text | UserName | Not specifying will "Use Username from repository connection". |
| Password | text | Password | Not specifying will "Use Password from repository connection". |
| Namespace name | text | Namespace | Not specifying will "Use namespace from repository connection". |
| Repository name | text | Repository | Not specifying will "Use repository from repository connection". |