דלג לתוכן הראשי

פעילות ב-GitHub

Triggergithub-activitygithub

מתחיל כש-issue או pull request במאגרים שבחרתם נפתח, מתויג, נסגר או מוזג, כשמתבקשת סקירה, או כש-pull request בטיוטה מסומן כמוכן לסקירה. GitHub נבדק כל כמה דקות.

במבט אחד​

מאפייןערך
Trigger namegithub-activity
ResourceClusterTrigger (lumen.ai/v1alpha1)
Sourceevent
Needs a connectionyes, one that provides github
Producesfields, text
Emitsitem
Installation must providenothing

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 בתנאי.

פלטסוג
eventstring
repostring
numbernumber
kindstring
titlestring
bodystring
statestring
labelsarray
labelstring
authorstring
actorstring
reviewerstring
urlstring
mergedboolean
draftboolean
createdAtdate
updatedAtdate
githubConnectionstring

הגדרות​

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
eventslist of string-Empty is opened, labelled, closed and merged.maxItems 6
kindslist of string-Empty is both.maxItems 2
labelslist of string-Labels keeps only items carrying one of these labels (for a labelled event: the label added).maxItems 20
pollMinutesinteger5PollMinutes is how often GitHub is asked.minimum 1; maximum 60
importExistinginteger0Starts 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.