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

# Repository Dispatch

- Component: `appmixer.github.list.RepositoryDispatch`
- Kind: Action
- 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.RepositoryDispatch>

Trigger a repository_dispatch event in a repository, starting any GitHub Actions workflow that listens for it.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Repository (`repositoryId`) | text | The repository to dispatch to, in the 'owner/repo' form. |
| Event Type (`eventType`) | text | Custom name of the event, matched by the workflow's 'on: repository_dispatch: types'. At most 100 characters. |
| Client Payload (`clientPayload`) | textarea | Optional JSON object passed to the workflow as github.event.client_payload. GitHub accepts at most 10 top-level keys. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.RepositoryDispatch",
  "label": "Repository Dispatch",
  "description": "Trigger a repository_dispatch event in a repository, starting any GitHub Actions workflow that listens for it.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:github",
    "scope": [
      "repo"
    ]
  },
  "quota": {
    "manager": "appmixer:github",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "repositoryId": {
            "type": "string",
            "pattern": "[^/]+[/][^/]+"
          },
          "eventType": {
            "type": "string"
          },
          "clientPayload": {
            "type": "string"
          }
        },
        "required": [
          "repositoryId",
          "eventType"
        ]
      },
      "inspector": {
        "inputs": {
          "repositoryId": {
            "type": "text",
            "label": "Repository",
            "index": 1,
            "source": {
              "url": "/component/appmixer/github/list/ListRepos?outPort=repositories",
              "data": {
                "transform": "./transformers#reposToSelectArray"
              }
            },
            "tooltip": "The repository to dispatch to, in the 'owner/repo' form."
          },
          "eventType": {
            "type": "text",
            "label": "Event Type",
            "index": 2,
            "tooltip": "Custom name of the event, matched by the workflow's 'on: repository_dispatch: types'. At most 100 characters."
          },
          "clientPayload": {
            "type": "textarea",
            "label": "Client Payload",
            "index": 3,
            "tooltip": "Optional JSON object passed to the workflow as github.event.client_payload. GitHub accepts at most 10 top-level keys."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out"
    }
  ],
  "icon": "(data URI omitted)"
}
```
