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

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

Triggers when a new global event occurs to or from the authenticated user on GitHub. Note that according to the [DOCs](https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-public-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 |
| --- | --- | --- |
| Actor of Event (`actor`) | select | Select the actor of your events. |

## 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.NewGlobalEvent",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Triggers when a new global event occurs to or from the authenticated user on GitHub. Note that according to the <a href='https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-public-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": {
        "actor": {
          "type": "string"
        }
      },
      "required": [
        "actor"
      ]
    },
    "inspector": {
      "inputs": {
        "actor": {
          "type": "select",
          "group": "config",
          "label": "Actor of Event",
          "index": 1,
          "tooltip": "Select the actor of your events.",
          "options": [
            {
              "label": "Me",
              "value": "me"
            },
            {
              "label": "Others",
              "value": "others"
            }
          ]
        }
      },
      "groups": {
        "config": {
          "label": "Configuration",
          "index": 1
        }
      }
    }
  }
}
```
