> 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.NewEvent

- Component: `appmixer.github.list.NewEvent`
- 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.NewEvent>

Triggered when anything happens on a repo. Note that according to the [DOCs](https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-repository-events): This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.

## 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. |

## Output ports

### Port `event`

| Field | Type | Description |
| --- | --- | --- |
| ID (`id`) | integer | - |
| Type (`type`) | string | - |
| Created At (`created_at`) | string | - |
| Repo ID (`repo.id`) | integer | - |
| Repo Name (`repo.name`) | string | - |
| Actor ID (`actor.id`) | integer | - |
| Actor Login (`actor.login`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.NewEvent",
  "author": "Robert Beinaravicius <rbeinaravicius@ntrc.eu>",
  "icon": "(data URI omitted)",
  "description": "Triggered when anything happens on a repo. Note that according to the <a href='https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-repository-events' target='blank'>DOCs</a>: This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.",
  "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": "event",
      "options": [
        {
          "label": "ID",
          "value": "id",
          "schema": {
            "type": "integer",
            "example": 1234567890
          }
        },
        {
          "label": "Type",
          "value": "type",
          "schema": {
            "type": "string",
            "example": "User"
          }
        },
        {
          "label": "Created At",
          "value": "created_at",
          "schema": {
            "type": "string",
            "example": "2024-01-15T10:30:00Z"
          }
        },
        {
          "label": "Repo ID",
          "value": "repo.id",
          "schema": {
            "type": "integer",
            "example": 1296269
          }
        },
        {
          "label": "Repo Name",
          "value": "repo.name",
          "schema": {
            "type": "string",
            "example": "octocat/Hello-World"
          }
        },
        {
          "label": "Actor ID",
          "value": "actor.id",
          "schema": {
            "type": "integer",
            "example": 583231
          }
        },
        {
          "label": "Actor Login",
          "value": "actor.login",
          "schema": {
            "type": "string",
            "example": "octocat"
          }
        }
      ]
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "repositoryId": {
          "type": "string",
          "pattern": "[^/]+[/][^/]+"
        }
      },
      "required": [
        "repositoryId"
      ]
    },
    "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"
            }
          }
        }
      },
      "groups": {
        "config": {
          "label": "Configuration",
          "index": 1
        }
      }
    }
  }
}
```
