פעילות ב-GitHub
Trigger
github-activitygithubמתחיל כש-issue או pull request במאגרים שבחרתם נפתח, מתויג, נסגר או מוזג, כשמתבקשת סקירה, או כש-pull request בטיוטה מסומן כמוכן לסקירה. GitHub נבדק כל כמה דקות.
במבט אחד
| מאפיין | ערך |
|---|---|
| Trigger name | github-activity |
| Resource | ClusterTrigger (lumen.ai/v1alpha1) |
| Source | event |
| Needs a connection | yes, one that provides github |
| Produces | fields, text |
| Emits | item |
| Installation must provide | nothing |
A flow using this trigger names a Connector in connectorRef. Connection types that provide github: [GitHub](/reference/connections/github).
The trigger goes under spec.triggers of a Flow. Its outputs are referenced as <triggerId>.<field>. A trigger can also carry a when condition ("Start only when") and disabled: true.
פלט
צומת מאוחר יותר מפנה לפלט כ-{nodeId.field} בטקסט, או כ-nodeId.field בתנאי.
| פלט | סוג |
|---|---|
event | string |
repo | string |
number | number |
kind | string |
title | string |
body | string |
state | string |
labels | array |
label | string |
author | string |
actor | string |
reviewer | string |
url | string |
merged | boolean |
draft | boolean |
createdAt | date |
updatedAt | date |
githubConnection | string |
הגדרות
Set under config: on the flow trigger.
| הגדרה | סוג | ברירת מחדל | תיאור |
|---|---|---|---|
reposחובה | list of string | - | owner/name, such as acme/website. The token needs Issues: Read and Pull requests: Read on each.minItems 1; maxItems 20 |
events | list of string | - | Empty is opened, labelled, closed and merged.maxItems 6 |
kinds | list of string | - | Empty is both.maxItems 2 |
labels | list of string | - | Labels keeps only items carrying one of these labels (for a labelled event: the label added).maxItems 20 |
pollMinutes | integer | 5 | PollMinutes is how often GitHub is asked.minimum 1; maximum 60 |
importExisting | integer | 0 | Starts one run for each of the newest N open issues and pull requests of each repository, once, when the trigger is first switched on.minimum 0; maximum 50 |
ה-JSON Schema המלא של ההגדרות: github-activity.schema.json.
הדף עזר לכם?