nœuds / builtin / trigger
New issue or pull request
Start the workflow when an issue or pull request is opened or updated on GitHub
Ce contenu n’est pas encore disponible dans votre langue.
Start the workflow when an issue or a pull request is opened, or updated, in a GitHub repository.
What it does
Section titled “What it does”Every Check every minutes, the trigger reads the repository’s latest issues or pull requests (Watch) and starts one run with the new ones. With Start a run when one is set to Updated, every new change to an issue counts again. The issue trigger never starts a run for a pull request.
A check that finds nothing new starts no run. Press Run to fetch a test event: the latest items, without moving the trigger’s position.
When to use it
Section titled “When to use it”- Post new issues to a team channel.
- Label or triage new pull requests with AI.
- Copy new issues to Linear or Todoist.
Inputs and settings
Section titled “Inputs and settings”| Réglage | Type | Ce que cela fait |
|---|---|---|
| Connection (obligatoire) | Credential | |
| Repository (obligatoire) | One of several shapes | owner/repo, or paste its link. |
| Watch | Choice | Options: Issues, Pull requests. Par défaut : Issues |
| Start a run when one is | Choice | Options: Opened, Updated. Par défaut : Opened |
| Check every | Number | At least 1 minute, only while the workflow is On. Par défaut : 5 |
| On the first check | Choice | Options: Skip what’s already there, Start with the latest. Par défaut : Skip what’s already there |
| How many to start with | Number | For “Start with the latest” and Fetch test event (1–20). Par défaut : 3 |
Repository takes owner/repo, or paste the repository’s link.
Outputs
Section titled “Outputs”-
Output
Each run returns a list of items with these fields:
| Field | Type | What it holds |
|---|---|---|
| id | Number | |
| number | Number | |
| title | Text |
[ { "id": 0, "number": 0, "title": "…" }]One item per issue or pull request, as GitHub returns it (number, title, html_url, user, labels…).
Dependencies and credentials
Section titled “Dependencies and credentials”- Connection (connection, Bearer Token): required. See Create a connection.
Example workflow
Section titled “Example workflow”- New issue or pull request, Watch Issues, Opened.
- Text Classifier sorts it into bug / question / idea.
- Slack posts it to the matching channel.
Common issues
Section titled “Common issues”- “Repository: use owner/repo.”: type it as
owner/repo, or paste the full link. - GitHub answered 404: the connection’s token can’t see that repository.
Related nodes
Section titled “Related nodes”- Polling triggers: how every “New …” trigger checks.
- GitHub: work with issues, pull requests and repositories.
- Schedule Trigger: run at fixed times instead.