> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.github.list.NewCommit

- Component: `appmixer.github.list.NewCommit`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.github 4.2.0](https://connectors.appmixer.com/connector/appmixer.github/4.2.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.github/4.2.0/component/appmixer.github.list.NewCommit>

Triggered when a new commit is created.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Repository (`repositoryId`) | text | Enter the repository in `owner/repo` format (e.g. `octocat/Hello-World`). You can also pick from the dynamically loaded list of your repositories. |
| Branch (`branchId`) | text | Select a branch. You can also type the value manually. |

## Output ports

### Port `commit`

| Field | Type | Description |
| --- | --- | --- |
| Sha (`sha`) | string | - |
| HTML URL (`html_url`) | string | - |
| Commit Message (`commit.message`) | string | - |
| Commit Author Name (`commit.author.name`) | string | - |
| Commit Author Email (`commit.author.email`) | string | - |
| Commit Author Date (`commit.author.date`) | string | - |
| Commit Committer Name (`commit.committer.name`) | string | - |
| Commit Committer Email (`commit.committer.email`) | string | - |
| Commit Committer Date (`commit.committer.date`) | string | - |
| Commit Tree Sha (`commit.tree.sha`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.NewCommit",
  "author": "Robert Beinaravicius <rbeinaravicius@ntrc.eu>",
  "icon": "(data URI omitted)",
  "description": "Triggered when a new commit is created.",
  "private": false,
  "tick": true,
  "auth": {
    "service": "appmixer:github",
    "scope": [
      "user",
      "public_repo",
      "repo",
      "notifications",
      "gist"
    ]
  },
  "quota": {
    "manager": "appmixer:github",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "outPorts": [
    {
      "name": "commit",
      "options": [
        {
          "label": "Sha",
          "value": "sha",
          "schema": {
            "type": "string",
            "example": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
          }
        },
        {
          "label": "HTML URL",
          "value": "html_url",
          "schema": {
            "type": "string",
            "example": "https://github.com/octocat/Hello-World/issues/1"
          }
        },
        {
          "label": "Commit Message",
          "value": "commit.message",
          "schema": {
            "type": "string",
            "example": "Initial commit"
          }
        },
        {
          "label": "Commit Author Name",
          "value": "commit.author.name",
          "schema": {
            "type": "string",
            "example": "Monalisa Octocat"
          }
        },
        {
          "label": "Commit Author Email",
          "value": "commit.author.email",
          "schema": {
            "type": "string",
            "example": "octocat@github.com"
          }
        },
        {
          "label": "Commit Author Date",
          "value": "commit.author.date",
          "schema": {
            "type": "string",
            "example": "2024-01-15T10:30:00Z"
          }
        },
        {
          "label": "Commit Committer Name",
          "value": "commit.committer.name",
          "schema": {
            "type": "string",
            "example": "Monalisa Octocat"
          }
        },
        {
          "label": "Commit Committer Email",
          "value": "commit.committer.email",
          "schema": {
            "type": "string",
            "example": "octocat@github.com"
          }
        },
        {
          "label": "Commit Committer Date",
          "value": "commit.committer.date",
          "schema": {
            "type": "string",
            "example": "2024-01-15T10:30:00Z"
          }
        },
        {
          "label": "Commit Tree Sha",
          "value": "commit.tree.sha",
          "schema": {
            "type": "string",
            "example": "827efc6d56897b048c772eb4087f854f46256132"
          }
        }
      ]
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "repositoryId": {
          "type": "string",
          "pattern": "[^/]+[/][^/]+"
        },
        "branchId": {
          "type": "string"
        }
      },
      "required": [
        "repositoryId",
        "branchId"
      ]
    },
    "inspector": {
      "inputs": {
        "repositoryId": {
          "type": "text",
          "group": "config",
          "label": "Repository",
          "index": 1,
          "tooltip": "Enter the repository in `owner/repo` format (e.g. `octocat/Hello-World`). You can also pick from the dynamically loaded list of your repositories.",
          "source": {
            "url": "/component/appmixer/github/list/ListRepos?outPort=repositories",
            "data": {
              "transform": "./transformers#reposToSelectArray"
            }
          }
        },
        "branchId": {
          "type": "text",
          "group": "config",
          "label": "Branch",
          "index": 2,
          "source": {
            "url": "/component/appmixer/github/list/ListBranches?outPort=branches",
            "data": {
              "properties": {
                "repositoryId": "properties/repositoryId"
              },
              "transform": "./transformers#branchesToSelectArray"
            }
          },
          "tooltip": "Select a branch. You can also type the value manually."
        }
      },
      "groups": {
        "config": {
          "label": "Configuration",
          "index": 1
        }
      }
    }
  }
}
```
