Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"presets": [["@nx/js/babel", { "useBuiltIns": "usage" }]]
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"extends": [
|
||||
"../../../../.eslintrc.json"
|
||||
],
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx",
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {},
|
||||
"extends": [
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
"plugins": ["prettier"]
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-github
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Running lint
|
||||
|
||||
Run `nx lint pieces-github` to execute the lint via [ESLint](https://eslint.org/).
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-github",
|
||||
"version": "0.5.10"
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "pieces-github",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/github/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/github",
|
||||
"tsConfig": "packages/pieces/community/github/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/github/package.json",
|
||||
"main": "packages/pieces/community/github/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/github/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/github/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/github",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"GitHub": "GitHub",
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Developer platform that allows developers to create, store, manage and share their code",
|
||||
"Create Issue": "Create Issue",
|
||||
"Get issue information": "Get issue information",
|
||||
"Create comment on a issue": "Create comment on a issue",
|
||||
"Lock issue": "Lock issue",
|
||||
"Unlock issue": "Unlock issue",
|
||||
"Raw GraphQL query": "Raw GraphQL query",
|
||||
"Create Pull Request Review Comment": "Create Pull Request Review Comment",
|
||||
"Create Commit Comment": "Create Commit Comment",
|
||||
"Create Discussion Comment": "Create Discussion Comment",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create Issue in GitHub Repository": "Create Issue in GitHub Repository",
|
||||
"Grabs information from a specific issue": "Grabs information from a specific issue",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Adds a comment to the specified issue (also works with pull requests)",
|
||||
"Locks the specified issue": "Locks the specified issue",
|
||||
"Unlocks the specified issue": "Unlocks the specified issue",
|
||||
"Perform a raw GraphQL query": "Perform a raw GraphQL query",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Creates a review comment on a pull request in a GitHub repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Creates a comment on a commit in a GitHub repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Creates a comment on a discussion in a GitHub repository",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Repository": "Repository",
|
||||
"Title": "Title",
|
||||
"Description": "Description",
|
||||
"Labels": "Labels",
|
||||
"Assignees": "Assignees",
|
||||
"Issue Number": "Issue Number",
|
||||
"Issue number": "Issue number",
|
||||
"Comment": "Comment",
|
||||
"Lock Reason": "Lock Reason",
|
||||
"Query": "Query",
|
||||
"Parameters": "Parameters",
|
||||
"Pull Request Number": "Pull Request Number",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "File Path",
|
||||
"Comment Body": "Comment Body",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Discussion Number",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The title of the issue": "The title of the issue",
|
||||
"The description of the issue": "The description of the issue",
|
||||
"Labels for the Issue": "Labels for the Issue",
|
||||
"Assignees for the Issue": "Assignees for the Issue",
|
||||
"The number of the issue you want to get information from": "The number of the issue you want to get information from",
|
||||
"The number of the issue to comment on": "The number of the issue to comment on",
|
||||
"The comment to add to the issue": "The comment to add to the issue",
|
||||
"The number of the issue to be locked": "The number of the issue to be locked",
|
||||
"The reason for locking the issue": "The reason for locking the issue",
|
||||
"The number of the issue to be unlocked": "The number of the issue to be unlocked",
|
||||
"The number of the pull request": "The number of the pull request",
|
||||
"The SHA of the commit to comment on": "The SHA of the commit to comment on",
|
||||
"The relative path to the file to comment on": "The relative path to the file to comment on",
|
||||
"The content of the review comment": "The content of the review comment",
|
||||
"The position in the diff where the comment should be placed": "The position in the diff where the comment should be placed",
|
||||
"The content of the comment": "The content of the comment",
|
||||
"The relative path to the file to comment on (optional)": "The relative path to the file to comment on (optional)",
|
||||
"The line index in the diff to comment on (optional)": "The line index in the diff to comment on (optional)",
|
||||
"The number of the discussion to comment on": "The number of the discussion to comment on",
|
||||
"The content of the comment (supports markdown)": "The content of the comment (supports markdown)",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD",
|
||||
"New Pull Request": "New Pull Request",
|
||||
"New Star": "New Star",
|
||||
"New Issue": "New Issue",
|
||||
"Push": "Push",
|
||||
"New Discussion": "New Discussion",
|
||||
"New Comment Posted": "New Comment Posted",
|
||||
"Triggers when there is activity on a pull request.": "Triggers when there is activity on a pull request.",
|
||||
"Trigger when there is activity relating to repository stars.": "Trigger when there is activity relating to repository stars.",
|
||||
"Triggers when there is activity relating to an issue.": "Triggers when there is activity relating to an issue.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.",
|
||||
"Triggers when there is activity relating to a discussion.": "Triggers when there is activity relating to a discussion.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Triggers when there is a new comment posted on a discussion."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Entwicklerplattform, die es Entwicklern erlaubt Code zu erstellen, zu speichern, zu verwalten und zu teilen",
|
||||
"Create Issue": "Ticket erstellen",
|
||||
"Get issue information": "Ticket-Informationen abrufen",
|
||||
"Create comment on a issue": "Kommentar zu einem Problem erstellen",
|
||||
"Lock issue": "Problem sperren",
|
||||
"Unlock issue": "Problem entsperren",
|
||||
"Raw GraphQL query": "Rohe GraphQL-Abfrage",
|
||||
"Create Pull Request Review Comment": "Pull Request Review Kommentar erstellen",
|
||||
"Create Commit Comment": "Commit Kommentar erstellen",
|
||||
"Create Discussion Comment": "Diskussionskommentar erstellen",
|
||||
"Add Labels to Issue": "Label zum Thema hinzufügen",
|
||||
"Create Branch": "Branch erstellen",
|
||||
"Delete Branch": "Branch löschen",
|
||||
"Update Issue": "Problem aktualisieren",
|
||||
"Find Branch": "Zweig finden",
|
||||
"Find Issue": "Problem finden",
|
||||
"Find User": "Benutzer finden",
|
||||
"Custom API Call": "Eigener API-Aufruf",
|
||||
"Create Issue in GitHub Repository": "Problem in GitHub Repository erstellen",
|
||||
"Grabs information from a specific issue": "Erfasse Informationen von einem bestimmten Problem",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Fügt dem angegebenen Problem einen Kommentar hinzu (funktioniert auch mit Pull-Requests)",
|
||||
"Locks the specified issue": "Sperrt den angegebenen Fall",
|
||||
"Unlocks the specified issue": "Entsperrt den angegebenen Fall",
|
||||
"Perform a raw GraphQL query": "Eine rohe GraphQL-Abfrage ausführen",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Erstellt einen Kommentar zu einem Pull-Request in einem GitHub Repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Erstellt einen Kommentar zu einem Commit in einem GitHub Repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Erstellt einen Kommentar zu einer Diskussion in einem GitHub Repository",
|
||||
"Adds labels to an existing issue.": "Fügt Labels einem existierenden Problem hinzu.",
|
||||
"Creates a new branch on a repository.": "Erstellt einen neuen Zweig auf einem Repository.",
|
||||
"Deletes a branch from a repository.": "Löscht einen Branch aus einem Repository.",
|
||||
"Updates an existing issue.": "Aktualisiert ein existierendes Problem.",
|
||||
"Finds a branch by name and returns its details.": "Findet einen Branch nach Namen und gibt seine Details zurück.",
|
||||
"Finds an issue based title.": "Findet einen Issue-basierten Titel.",
|
||||
"Finds a user by their login name.": "Findet einen Benutzer mit seinem Loginnamen.",
|
||||
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
||||
"Repository": "Repository",
|
||||
"Title": "Titel",
|
||||
"Description": "Beschreibung",
|
||||
"Labels": "Etiketten",
|
||||
"Assignees": "Beauftragte",
|
||||
"Issue Number": "Ticket Nummer",
|
||||
"Issue number": "Ticket Nummer",
|
||||
"Comment": "Kommentar",
|
||||
"Lock Reason": "Sperrgrund",
|
||||
"Query": "Abfrage",
|
||||
"Parameters": "Parameter",
|
||||
"Pull Request Number": "Pull-Request-Nummer",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "Dateipfad",
|
||||
"Comment Body": "Kommentar-Text",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Diskussionsnummer",
|
||||
"Issue": "Ticket",
|
||||
"Source Branch": "Quell-Zweig",
|
||||
"New Branch Name": "Neuer Branchname",
|
||||
"Branch": "Zweig",
|
||||
"Body": "Körper",
|
||||
"State": "Bundesland",
|
||||
"State Reason": "Grund des Staates",
|
||||
"Milestone": "Meilenstein",
|
||||
"Branch Name": "Branchname",
|
||||
"Username": "Benutzername",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopfzeilen",
|
||||
"Query Parameters": "Abfrageparameter",
|
||||
"Response is Binary ?": "Antwort ist binär?",
|
||||
"No Error on Failure": "Kein Fehler bei Fehler",
|
||||
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
||||
"The title of the issue": "Der Titel des Tickets",
|
||||
"The description of the issue": "Die Beschreibung des Problems",
|
||||
"Labels for the Issue": "Bezeichnungen für den Fall",
|
||||
"Assignees for the Issue": "Beauftragte für den Fall",
|
||||
"The number of the issue you want to get information from": "Die Anzahl des Problems, von dem Sie Informationen erhalten möchten",
|
||||
"The number of the issue to comment on": "Die Anzahl der zu kommentierenden Probleme",
|
||||
"The comment to add to the issue": "Der Kommentar, der dem Problem hinzugefügt werden soll",
|
||||
"The number of the issue to be locked": "Die Anzahl der zu sperrenden Probleme",
|
||||
"The reason for locking the issue": "Der Grund für das Sperren des Problems",
|
||||
"The number of the issue to be unlocked": "Die Anzahl der zu entspertenden Probleme",
|
||||
"The number of the pull request": "Die Anzahl der Pull-Requests",
|
||||
"The SHA of the commit to comment on": "Die SHA des Commit zu kommentieren",
|
||||
"The relative path to the file to comment on": "Der relative Pfad zur zu kommentierenden Datei",
|
||||
"The content of the review comment": "Der Inhalt des Bewertungskommentars",
|
||||
"The position in the diff where the comment should be placed": "Die Position im Diff, wo der Kommentar platziert werden soll",
|
||||
"The content of the comment": "Der Inhalt des Kommentars",
|
||||
"The relative path to the file to comment on (optional)": "Der relative Pfad zur zu kommentierenden Datei (optional)",
|
||||
"The line index in the diff to comment on (optional)": "Der Zeilenindex in dem zu kommentierenden Diff (optional)",
|
||||
"The number of the discussion to comment on": "Die Anzahl der Diskussionen, die kommentiert werden sollen",
|
||||
"The content of the comment (supports markdown)": "Der Inhalt des Kommentars (unterstützt Markdown)",
|
||||
"The issue to select.": "Das auszuwählende Problem.",
|
||||
"The source branch that will be used to create the new branch": "Der Quell-Zweig, der verwendet wird, um den neuen Zweig zu erstellen",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "Der Name des neuen Zweiges (z.B. 'feature/new-design').",
|
||||
"The new state of the issue.": "Der neue Stand der Dinge.",
|
||||
"The reason for the state change. (Only used if State is changed).": "Der Grund für die Änderung des Staates (nur verwendet, wenn der Staat geändert wird).",
|
||||
"The milestone to associate this issue with.": "Der Meilenstein, mit dem dieses Problem in Verbindung gebracht werden soll.",
|
||||
"Filter issues by their state.": "Fälle nach ihrem Status filtern.",
|
||||
"The GitHub username (login) to look up.": "Der GitHub Benutzername (Login), um nach oben zu schauen.",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
||||
"Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
|
||||
"Open": "Öffnen",
|
||||
"Closed": "Geschlossen",
|
||||
"Completed": "Abgeschlossen",
|
||||
"Not Planned": "Nicht geplant",
|
||||
"Reopened": "Erneut geöffnet",
|
||||
"Duplicate": "Duplizieren",
|
||||
"All": "Alle",
|
||||
"GET": "ERHALTEN",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "LÖSCHEN",
|
||||
"HEAD": "HEAD",
|
||||
"New Pull Request": "Neuer Pull-Request",
|
||||
"New Star": "Neuer Stern",
|
||||
"New Issue": "Neuer Fall",
|
||||
"Push": "Push",
|
||||
"New Discussion": "Neue Diskussion",
|
||||
"New Comment Posted": "Neuer Kommentar veröffentlicht",
|
||||
"New Branch": "Neuer Zweig",
|
||||
"New Collaborator": "Neuer Mitarbeiter",
|
||||
"New Label": "Neue Bezeichnung",
|
||||
"New Milestone": "Neuer Meilenstein",
|
||||
"New Release": "Neue Version",
|
||||
"Triggers when there is activity on a pull request.": "Wird ausgelöst, wenn ein Pull-Request aktiv ist.",
|
||||
"Trigger when there is activity relating to repository stars.": "Auslösen wenn es Aktivitäten in Bezug auf Repository-Sterne gibt.",
|
||||
"Triggers when there is activity relating to an issue.": "Wird ausgelöst, wenn es Aktivitäten im Zusammenhang mit einem Thema gibt.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Wird ausgelöst, wenn es einen Push zu einem Repository-Zweig gibt. Dies schließt ein, wenn ein Commit gedrückt wird, wenn ein Commit-Tag gedrückt wird, wenn ein Branch gelöscht wird , wenn ein Tag gelöscht wird oder wenn ein Repository aus einer Vorlage erstellt wird.",
|
||||
"Triggers when there is activity relating to a discussion.": "Wird ausgelöst, wenn es Aktivitäten im Zusammenhang mit einer Diskussion gibt.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Trigger wenn es einen neuen Kommentar zu einer Diskussion gepostet.",
|
||||
"Triggers when a new branch is created.": "Wird ausgelöst, wenn ein neuer Zweig erstellt wird.",
|
||||
"Triggers when a new collaborator is added to a repository.": "Wird ausgelöst, wenn ein neuer Mitarbeiter zu einem Repository hinzugefügt wird.",
|
||||
"Triggers when a new label is created in a repository.": "Wird ausgelöst, wenn ein neues Label in einem Repository erstellt wird.",
|
||||
"Triggers when a new milestone is created.": "Wird ausgelöst, wenn ein neuer Meilenstein erstellt wird.",
|
||||
"Triggers when a new release is added.": "Wird ausgelöst, wenn eine neue Version hinzugefügt wird."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Plataforma de desarrollador que permite a los desarrolladores crear, almacenar, administrar y compartir su código",
|
||||
"Create Issue": "Crear asunto",
|
||||
"Get issue information": "Obtener información del problema",
|
||||
"Create comment on a issue": "Crear comentario sobre un problema",
|
||||
"Lock issue": "Bloquear incidencia",
|
||||
"Unlock issue": "Desbloquear incidencia",
|
||||
"Raw GraphQL query": "Consulta GraphQL Raw",
|
||||
"Create Pull Request Review Comment": "Crear comentario de Revisión de Pull Request",
|
||||
"Create Commit Comment": "Crear comentario de commit",
|
||||
"Create Discussion Comment": "Crear comentario de discusión",
|
||||
"Add Labels to Issue": "Añadir etiquetas al problema",
|
||||
"Create Branch": "Crear rama",
|
||||
"Delete Branch": "Eliminar rama",
|
||||
"Update Issue": "Actualizar problema",
|
||||
"Find Branch": "Buscar rama",
|
||||
"Find Issue": "Encontrar problema",
|
||||
"Find User": "Buscar usuario",
|
||||
"Custom API Call": "Llamada API personalizada",
|
||||
"Create Issue in GitHub Repository": "Crear problema en el repositorio de GitHub",
|
||||
"Grabs information from a specific issue": "Agarra información de un problema específico",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Añade un comentario al problema especificado (también funciona con pull requests)",
|
||||
"Locks the specified issue": "Bloquea el problema especificado",
|
||||
"Unlocks the specified issue": "Desbloquea el problema especificado",
|
||||
"Perform a raw GraphQL query": "Realizar una consulta GraphQL sin procesar",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Crea un comentario de revisión en un pull request en un repositorio de GitHub",
|
||||
"Creates a comment on a commit in a GitHub repository": "Crea un comentario en un commit en un repositorio de GitHub",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Crea un comentario en una discusión en un repositorio de GitHub",
|
||||
"Adds labels to an existing issue.": "Añade etiquetas a un problema existente.",
|
||||
"Creates a new branch on a repository.": "Crea una nueva rama en un repositorio.",
|
||||
"Deletes a branch from a repository.": "Elimina una rama de un repositorio.",
|
||||
"Updates an existing issue.": "Actualiza un problema existente.",
|
||||
"Finds a branch by name and returns its details.": "Encuentra una rama por nombre y devuelve sus detalles.",
|
||||
"Finds an issue based title.": "Encuentra un título basado en incidencias.",
|
||||
"Finds a user by their login name.": "Encuentra un usuario por su nombre de usuario.",
|
||||
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
||||
"Repository": "Repositorio",
|
||||
"Title": "Título",
|
||||
"Description": "Descripción",
|
||||
"Labels": "Etiquetas",
|
||||
"Assignees": "Asignados",
|
||||
"Issue Number": "Número de petición",
|
||||
"Issue number": "Número de petición",
|
||||
"Comment": "Comentario",
|
||||
"Lock Reason": "Razón de bloqueo",
|
||||
"Query": "Consulta",
|
||||
"Parameters": "Parámetros",
|
||||
"Pull Request Number": "Número de Pull Request",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "Ruta del archivo",
|
||||
"Comment Body": "Comentar cuerpo",
|
||||
"Position": "Posición",
|
||||
"Discussion Number": "Número de discusión",
|
||||
"Issue": "Problema",
|
||||
"Source Branch": "Rama de origen",
|
||||
"New Branch Name": "Nuevo nombre de rama",
|
||||
"Branch": "Rama",
|
||||
"Body": "Cuerpo",
|
||||
"State": "Estado",
|
||||
"State Reason": "Razón del Estado",
|
||||
"Milestone": "Hito",
|
||||
"Branch Name": "Nombre del branch",
|
||||
"Username": "Usuario",
|
||||
"Method": "Método",
|
||||
"Headers": "Encabezados",
|
||||
"Query Parameters": "Parámetros de consulta",
|
||||
"Response is Binary ?": "¿Respuesta es binaria?",
|
||||
"No Error on Failure": "No hay ningún error en fallo",
|
||||
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
||||
"The title of the issue": "El título del asunto",
|
||||
"The description of the issue": "La descripción del problema",
|
||||
"Labels for the Issue": "Etiquetas para el problema",
|
||||
"Assignees for the Issue": "Asignados para el problema",
|
||||
"The number of the issue you want to get information from": "El número del problema del que desea obtener información",
|
||||
"The number of the issue to comment on": "El número de la incidencia a comentar en",
|
||||
"The comment to add to the issue": "El comentario a añadir al asunto",
|
||||
"The number of the issue to be locked": "El número de la incidencia a bloquear",
|
||||
"The reason for locking the issue": "La razón para bloquear el problema",
|
||||
"The number of the issue to be unlocked": "El número del problema a desbloquear",
|
||||
"The number of the pull request": "El número de pull request",
|
||||
"The SHA of the commit to comment on": "El SHA del compromiso a comentar en",
|
||||
"The relative path to the file to comment on": "La ruta relativa al archivo en el que comentar",
|
||||
"The content of the review comment": "El contenido del comentario de revisión",
|
||||
"The position in the diff where the comment should be placed": "La posición en la diferencia donde se debe colocar el comentario",
|
||||
"The content of the comment": "El contenido del comentario",
|
||||
"The relative path to the file to comment on (optional)": "La ruta relativa al archivo en el que comentar (opcional)",
|
||||
"The line index in the diff to comment on (optional)": "El índice de línea en la diferencia para comentar (opcional)",
|
||||
"The number of the discussion to comment on": "El número de discusión en la que comentar",
|
||||
"The content of the comment (supports markdown)": "El contenido del comentario (soporta markdown)",
|
||||
"The issue to select.": "La cuestión a seleccionar.",
|
||||
"The source branch that will be used to create the new branch": "La rama de origen que se utilizará para crear la nueva rama",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "El nombre para la nueva rama (por ej., 'feature/new-design').",
|
||||
"The new state of the issue.": "El nuevo estado de la cuestión.",
|
||||
"The reason for the state change. (Only used if State is changed).": "La razón del cambio de estado. (Sólo se utiliza si el estado es cambiado).",
|
||||
"The milestone to associate this issue with.": "El hito al que asociar este problema.",
|
||||
"Filter issues by their state.": "Filtrar peticiones por su estado.",
|
||||
"The GitHub username (login) to look up.": "El nombre de usuario de GitHub (login) para buscar.",
|
||||
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
||||
"Enable for files like PDFs, images, etc..": "Activar para archivos como PDFs, imágenes, etc.",
|
||||
"Open": "Abrir",
|
||||
"Closed": "Cerrado",
|
||||
"Completed": "Completado",
|
||||
"Not Planned": "No planeado",
|
||||
"Reopened": "Reabierto",
|
||||
"Duplicate": "Duplicate",
|
||||
"All": "Todos",
|
||||
"GET": "RECOGER",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "BORRAR",
|
||||
"HEAD": "LIMPIO",
|
||||
"New Pull Request": "Nueva Pull Request",
|
||||
"New Star": "Nueva estrella",
|
||||
"New Issue": "Nuevo problema",
|
||||
"Push": "Empujar",
|
||||
"New Discussion": "Nueva discusión",
|
||||
"New Comment Posted": "Nuevo comentario publicado",
|
||||
"New Branch": "Nueva rama",
|
||||
"New Collaborator": "Nuevo colaborador",
|
||||
"New Label": "Nueva etiqueta",
|
||||
"New Milestone": "Nuevo hito",
|
||||
"New Release": "Nueva versión",
|
||||
"Triggers when there is activity on a pull request.": "Dispara cuando hay actividad en una solicitud de extracción.",
|
||||
"Trigger when there is activity relating to repository stars.": "Activar cuando hay actividad relacionada con las estrellas del repositorio.",
|
||||
"Triggers when there is activity relating to an issue.": "Disparadores cuando hay actividad relacionada con un problema.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Desencadena cuando hay un push en una rama del repositorio. Esto incluye cuando un commit es pushed, cuando una etiqueta de commit es pushed, cuando una rama es eliminada, cuando se elimina una etiqueta, o cuando se crea un repositorio a partir de una plantilla.",
|
||||
"Triggers when there is activity relating to a discussion.": "Disparadores cuando hay actividad relacionada con un debate.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Dispara cuando hay un nuevo comentario publicado en una discusión.",
|
||||
"Triggers when a new branch is created.": "Dispara cuando se crea una nueva rama.",
|
||||
"Triggers when a new collaborator is added to a repository.": "Desencadena cuando un nuevo colaborador es añadido a un repositorio.",
|
||||
"Triggers when a new label is created in a repository.": "Desencadena cuando se crea una nueva etiqueta en un repositorio.",
|
||||
"Triggers when a new milestone is created.": "Dispara cuando se crea un nuevo hito.",
|
||||
"Triggers when a new release is added.": "Se activa cuando se añade una nueva versión."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Plateforme de développement qui permet aux développeurs de créer, stocker, gérer et partager leur code",
|
||||
"Create Issue": "Créer un problème",
|
||||
"Get issue information": "Obtenir des informations sur les tickets",
|
||||
"Create comment on a issue": "Créer un commentaire sur un problème",
|
||||
"Lock issue": "Problème de verrouillage",
|
||||
"Unlock issue": "Problème de déverrouillage",
|
||||
"Raw GraphQL query": "Requête GraphQL brute",
|
||||
"Create Pull Request Review Comment": "Créer un commentaire de révision de Pull Request",
|
||||
"Create Commit Comment": "Créer un commentaire de commit",
|
||||
"Create Discussion Comment": "Créer un commentaire de discussion",
|
||||
"Add Labels to Issue": "Ajouter des étiquettes au problème",
|
||||
"Create Branch": "Créer une branche",
|
||||
"Delete Branch": "Supprimer la branche",
|
||||
"Update Issue": "Mettre à jour le problème",
|
||||
"Find Branch": "Trouver une branche",
|
||||
"Find Issue": "Trouver un problème",
|
||||
"Find User": "Trouver un utilisateur",
|
||||
"Custom API Call": "Appel API personnalisé",
|
||||
"Create Issue in GitHub Repository": "Créer un problème dans le dépôt GitHub",
|
||||
"Grabs information from a specific issue": "Récupère des informations à partir d'un problème spécifique",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Ajoute un commentaire à la demande spécifiée (fonctionne également avec les pull requests)",
|
||||
"Locks the specified issue": "Verrouille le problème spécifié",
|
||||
"Unlocks the specified issue": "Débloque le problème spécifié",
|
||||
"Perform a raw GraphQL query": "Effectuer une requête GraphQL brute",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Crée un commentaire sur une pull request dans un dépôt GitHub",
|
||||
"Creates a comment on a commit in a GitHub repository": "Crée un commentaire sur un commit dans un dépôt GitHub",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Crée un commentaire sur une discussion dans un dépôt GitHub",
|
||||
"Adds labels to an existing issue.": "Ajoute des étiquettes à un problème existant.",
|
||||
"Creates a new branch on a repository.": "Crée une nouvelle branche sur un référentiel.",
|
||||
"Deletes a branch from a repository.": "Supprime une branche d'un référentiel.",
|
||||
"Updates an existing issue.": "Met à jour un ticket existant.",
|
||||
"Finds a branch by name and returns its details.": "Trouve une branche par nom et renvoie ses détails.",
|
||||
"Finds an issue based title.": "Trouve un titre basé sur un ticket.",
|
||||
"Finds a user by their login name.": "Trouve un utilisateur par son nom d'utilisateur.",
|
||||
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
|
||||
"Repository": "Dépôt",
|
||||
"Title": "Titre de la page",
|
||||
"Description": "Libellé",
|
||||
"Labels": "Étiquettes",
|
||||
"Assignees": "Assignés",
|
||||
"Issue Number": "Numéro du ticket",
|
||||
"Issue number": "Numéro du ticket",
|
||||
"Comment": "Commenter",
|
||||
"Lock Reason": "Raison du verrouillage",
|
||||
"Query": "Requête",
|
||||
"Parameters": "Paramètres",
|
||||
"Pull Request Number": "Numéro de la demande d'ajout",
|
||||
"Commit SHA": "SHA de commit",
|
||||
"File Path": "Chemin du fichier",
|
||||
"Comment Body": "Corps du commentaire",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Numéro de discussion",
|
||||
"Issue": "Problème",
|
||||
"Source Branch": "Branche source",
|
||||
"New Branch Name": "Nom de la nouvelle succursale",
|
||||
"Branch": "Branch",
|
||||
"Body": "Corps",
|
||||
"State": "État",
|
||||
"State Reason": "Raison de l'État",
|
||||
"Milestone": "Jalon",
|
||||
"Branch Name": "Nom de la branche",
|
||||
"Username": "Nom d'utilisateur",
|
||||
"Method": "Méthode",
|
||||
"Headers": "En-têtes",
|
||||
"Query Parameters": "Paramètres de requête",
|
||||
"Response is Binary ?": "La réponse est Binaire ?",
|
||||
"No Error on Failure": "Aucune erreur en cas d'échec",
|
||||
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
||||
"The title of the issue": "Le titre de la question",
|
||||
"The description of the issue": "La description du problème",
|
||||
"Labels for the Issue": "Étiquettes pour le problème",
|
||||
"Assignees for the Issue": "Destinataires pour le ticket",
|
||||
"The number of the issue you want to get information from": "Le numéro du problème sur lequel vous souhaitez obtenir des informations",
|
||||
"The number of the issue to comment on": "Le numéro du problème à commenter",
|
||||
"The comment to add to the issue": "Le commentaire à ajouter à la fiche",
|
||||
"The number of the issue to be locked": "Le numéro du ticket à verrouiller",
|
||||
"The reason for locking the issue": "La raison du verrouillage du problème",
|
||||
"The number of the issue to be unlocked": "Le numéro du ticket à déverrouiller",
|
||||
"The number of the pull request": "Le numéro de la pull request",
|
||||
"The SHA of the commit to comment on": "SHA de l'engagement à commenter",
|
||||
"The relative path to the file to comment on": "Le chemin relatif vers le fichier sur lequel commenter",
|
||||
"The content of the review comment": "Le contenu du commentaire de révision",
|
||||
"The position in the diff where the comment should be placed": "La position dans le diff où le commentaire doit être placé",
|
||||
"The content of the comment": "Le contenu du commentaire",
|
||||
"The relative path to the file to comment on (optional)": "Le chemin relatif vers le fichier à commenter (optionnel)",
|
||||
"The line index in the diff to comment on (optional)": "L'index de ligne dans le diff à commenter (optionnel)",
|
||||
"The number of the discussion to comment on": "Le numéro de la discussion à commenter",
|
||||
"The content of the comment (supports markdown)": "Le contenu du commentaire (prend en charge markdown)",
|
||||
"The issue to select.": "La question à sélectionner.",
|
||||
"The source branch that will be used to create the new branch": "La branche source qui sera utilisée pour créer la nouvelle branche",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "Le nom de la nouvelle branche (par exemple, 'feature/new-design').",
|
||||
"The new state of the issue.": "Le nouvel état de la question.",
|
||||
"The reason for the state change. (Only used if State is changed).": "La raison du changement d'état. (Utilisé uniquement si l'État est changé).",
|
||||
"The milestone to associate this issue with.": "Le jalon avec lequel associer ce ticket.",
|
||||
"Filter issues by their state.": "Filtrer les problèmes par leur état.",
|
||||
"The GitHub username (login) to look up.": "Le nom d'utilisateur GitHub (login) pour chercher.",
|
||||
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
||||
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
||||
"Open": "Ouvert",
|
||||
"Closed": "Fermé",
|
||||
"Completed": "Terminé",
|
||||
"Not Planned": "Non planifié",
|
||||
"Reopened": "Réouvert",
|
||||
"Duplicate": "Dupliquer",
|
||||
"All": "Tous",
|
||||
"GET": "OBTENIR",
|
||||
"POST": "POSTER",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "EFFACER",
|
||||
"DELETE": "SUPPRIMER",
|
||||
"HEAD": "TÊTE",
|
||||
"New Pull Request": "Nouvelle demande de tirage",
|
||||
"New Star": "Nouvelle étoile",
|
||||
"New Issue": "Nouveau problème",
|
||||
"Push": "Pousser",
|
||||
"New Discussion": "Nouvelle discussion",
|
||||
"New Comment Posted": "Nouveau commentaire publié",
|
||||
"New Branch": "Nouvelle branche",
|
||||
"New Collaborator": "Nouveau collaborateur",
|
||||
"New Label": "Nouveau libellé",
|
||||
"New Milestone": "Nouveau jalon",
|
||||
"New Release": "Nouvelle version",
|
||||
"Triggers when there is activity on a pull request.": "Déclenche lorsqu'il y a une activité sur une demande de pulling.",
|
||||
"Trigger when there is activity relating to repository stars.": "Déclencher lorsqu'il y a une activité liée aux étoiles du référentiel.",
|
||||
"Triggers when there is activity relating to an issue.": "Déclenche lorsqu'il y a une activité liée à un problème.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Déclenche quand il y a une poussée vers une branche de référentiel. Cela inclut quand un commit est poussé, quand une balise de commit est poussée, quand une branche est supprimée, quand un tag est supprimé, ou quand un dépôt est créé à partir d'un template.",
|
||||
"Triggers when there is activity relating to a discussion.": "Déclenche lorsqu'il y a une activité liée à une discussion.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Déclenche quand il y a un nouveau commentaire posté sur une discussion.",
|
||||
"Triggers when a new branch is created.": "Déclenche quand une nouvelle branche est créée.",
|
||||
"Triggers when a new collaborator is added to a repository.": "Déclenche lorsqu'un nouveau collaborateur est ajouté à un dépôt.",
|
||||
"Triggers when a new label is created in a repository.": "Déclenche lorsqu'un nouveau label est créé dans un référentiel.",
|
||||
"Triggers when a new milestone is created.": "Déclenche quand un nouveau jalon est créé.",
|
||||
"Triggers when a new release is added.": "Déclenche quand une nouvelle version est ajoutée."
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"GitHub": "GitHub",
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Developer platform that allows developers to create, store, manage and share their code",
|
||||
"Create Issue": "Create Issue",
|
||||
"Get issue information": "Get issue information",
|
||||
"Create comment on a issue": "Create comment on a issue",
|
||||
"Lock issue": "Lock issue",
|
||||
"Unlock issue": "Unlock issue",
|
||||
"Raw GraphQL query": "Raw GraphQL query",
|
||||
"Create Pull Request Review Comment": "Create Pull Request Review Comment",
|
||||
"Create Commit Comment": "Create Commit Comment",
|
||||
"Create Discussion Comment": "Create Discussion Comment",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create Issue in GitHub Repository": "Create Issue in GitHub Repository",
|
||||
"Grabs information from a specific issue": "Grabs information from a specific issue",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Adds a comment to the specified issue (also works with pull requests)",
|
||||
"Locks the specified issue": "Locks the specified issue",
|
||||
"Unlocks the specified issue": "Unlocks the specified issue",
|
||||
"Perform a raw GraphQL query": "Perform a raw GraphQL query",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Creates a review comment on a pull request in a GitHub repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Creates a comment on a commit in a GitHub repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Creates a comment on a discussion in a GitHub repository",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Repository": "Repository",
|
||||
"Title": "Title",
|
||||
"Description": "Description",
|
||||
"Labels": "Labels",
|
||||
"Assignees": "Assignees",
|
||||
"Issue Number": "Issue Number",
|
||||
"Issue number": "Issue number",
|
||||
"Comment": "Comment",
|
||||
"Lock Reason": "Lock Reason",
|
||||
"Query": "Query",
|
||||
"Parameters": "Parameters",
|
||||
"Pull Request Number": "Pull Request Number",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "File Path",
|
||||
"Comment Body": "Comment Body",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Discussion Number",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The title of the issue": "The title of the issue",
|
||||
"The description of the issue": "The description of the issue",
|
||||
"Labels for the Issue": "Labels for the Issue",
|
||||
"Assignees for the Issue": "Assignees for the Issue",
|
||||
"The number of the issue you want to get information from": "The number of the issue you want to get information from",
|
||||
"The number of the issue to comment on": "The number of the issue to comment on",
|
||||
"The comment to add to the issue": "The comment to add to the issue",
|
||||
"The number of the issue to be locked": "The number of the issue to be locked",
|
||||
"The reason for locking the issue": "The reason for locking the issue",
|
||||
"The number of the issue to be unlocked": "The number of the issue to be unlocked",
|
||||
"The number of the pull request": "The number of the pull request",
|
||||
"The SHA of the commit to comment on": "The SHA of the commit to comment on",
|
||||
"The relative path to the file to comment on": "The relative path to the file to comment on",
|
||||
"The content of the review comment": "The content of the review comment",
|
||||
"The position in the diff where the comment should be placed": "The position in the diff where the comment should be placed",
|
||||
"The content of the comment": "The content of the comment",
|
||||
"The relative path to the file to comment on (optional)": "The relative path to the file to comment on (optional)",
|
||||
"The line index in the diff to comment on (optional)": "The line index in the diff to comment on (optional)",
|
||||
"The number of the discussion to comment on": "The number of the discussion to comment on",
|
||||
"The content of the comment (supports markdown)": "The content of the comment (supports markdown)",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD",
|
||||
"New Pull Request": "New Pull Request",
|
||||
"New Star": "New Star",
|
||||
"New Issue": "New Issue",
|
||||
"Push": "Push",
|
||||
"New Discussion": "New Discussion",
|
||||
"New Comment Posted": "New Comment Posted",
|
||||
"Triggers when there is activity on a pull request.": "Triggers when there is activity on a pull request.",
|
||||
"Trigger when there is activity relating to repository stars.": "Trigger when there is activity relating to repository stars.",
|
||||
"Triggers when there is activity relating to an issue.": "Triggers when there is activity relating to an issue.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.",
|
||||
"Triggers when there is activity relating to a discussion.": "Triggers when there is activity relating to a discussion.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Triggers when there is a new comment posted on a discussion."
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"GitHub": "GitHub",
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Developer platform that allows developers to create, store, manage and share their code",
|
||||
"Create Issue": "Create Issue",
|
||||
"Get issue information": "Get issue information",
|
||||
"Create comment on a issue": "Create comment on a issue",
|
||||
"Lock issue": "Lock issue",
|
||||
"Unlock issue": "Unlock issue",
|
||||
"Raw GraphQL query": "Raw GraphQL query",
|
||||
"Create Pull Request Review Comment": "Create Pull Request Review Comment",
|
||||
"Create Commit Comment": "Create Commit Comment",
|
||||
"Create Discussion Comment": "Create Discussion Comment",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create Issue in GitHub Repository": "Create Issue in GitHub Repository",
|
||||
"Grabs information from a specific issue": "Grabs information from a specific issue",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Adds a comment to the specified issue (also works with pull requests)",
|
||||
"Locks the specified issue": "Locks the specified issue",
|
||||
"Unlocks the specified issue": "Unlocks the specified issue",
|
||||
"Perform a raw GraphQL query": "Perform a raw GraphQL query",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Creates a review comment on a pull request in a GitHub repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Creates a comment on a commit in a GitHub repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Creates a comment on a discussion in a GitHub repository",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Repository": "Repository",
|
||||
"Title": "Title",
|
||||
"Description": "Description",
|
||||
"Labels": "Labels",
|
||||
"Assignees": "Assignees",
|
||||
"Issue Number": "Issue Number",
|
||||
"Issue number": "Issue number",
|
||||
"Comment": "Comment",
|
||||
"Lock Reason": "Lock Reason",
|
||||
"Query": "Query",
|
||||
"Parameters": "Parameters",
|
||||
"Pull Request Number": "Pull Request Number",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "File Path",
|
||||
"Comment Body": "Comment Body",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Discussion Number",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The title of the issue": "The title of the issue",
|
||||
"The description of the issue": "The description of the issue",
|
||||
"Labels for the Issue": "Labels for the Issue",
|
||||
"Assignees for the Issue": "Assignees for the Issue",
|
||||
"The number of the issue you want to get information from": "The number of the issue you want to get information from",
|
||||
"The number of the issue to comment on": "The number of the issue to comment on",
|
||||
"The comment to add to the issue": "The comment to add to the issue",
|
||||
"The number of the issue to be locked": "The number of the issue to be locked",
|
||||
"The reason for locking the issue": "The reason for locking the issue",
|
||||
"The number of the issue to be unlocked": "The number of the issue to be unlocked",
|
||||
"The number of the pull request": "The number of the pull request",
|
||||
"The SHA of the commit to comment on": "The SHA of the commit to comment on",
|
||||
"The relative path to the file to comment on": "The relative path to the file to comment on",
|
||||
"The content of the review comment": "The content of the review comment",
|
||||
"The position in the diff where the comment should be placed": "The position in the diff where the comment should be placed",
|
||||
"The content of the comment": "The content of the comment",
|
||||
"The relative path to the file to comment on (optional)": "The relative path to the file to comment on (optional)",
|
||||
"The line index in the diff to comment on (optional)": "The line index in the diff to comment on (optional)",
|
||||
"The number of the discussion to comment on": "The number of the discussion to comment on",
|
||||
"The content of the comment (supports markdown)": "The content of the comment (supports markdown)",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD",
|
||||
"New Pull Request": "New Pull Request",
|
||||
"New Star": "New Star",
|
||||
"New Issue": "New Issue",
|
||||
"Push": "Push",
|
||||
"New Discussion": "New Discussion",
|
||||
"New Comment Posted": "New Comment Posted",
|
||||
"Triggers when there is activity on a pull request.": "Triggers when there is activity on a pull request.",
|
||||
"Trigger when there is activity relating to repository stars.": "Trigger when there is activity relating to repository stars.",
|
||||
"Triggers when there is activity relating to an issue.": "Triggers when there is activity relating to an issue.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.",
|
||||
"Triggers when there is activity relating to a discussion.": "Triggers when there is activity relating to a discussion.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Triggers when there is a new comment posted on a discussion."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "開発者が自分のコードを作成、保存、管理、共有できる開発者プラットフォーム",
|
||||
"Create Issue": "課題を作成",
|
||||
"Get issue information": "課題情報を取得する",
|
||||
"Create comment on a issue": "課題にコメントを作成",
|
||||
"Lock issue": "問題をロック",
|
||||
"Unlock issue": "ロック解除の問題",
|
||||
"Raw GraphQL query": "生のGraphQLクエリ",
|
||||
"Create Pull Request Review Comment": "プルリクエストレビューコメントを作成",
|
||||
"Create Commit Comment": "コミットコメントを作成",
|
||||
"Create Discussion Comment": "ディスカッションコメントを作成する",
|
||||
"Add Labels to Issue": "課題にラベルを追加",
|
||||
"Create Branch": "ブランチを作成",
|
||||
"Delete Branch": "ブランチを削除",
|
||||
"Update Issue": "問題を更新",
|
||||
"Find Branch": "ブランチを検索",
|
||||
"Find Issue": "問題を探す",
|
||||
"Find User": "ユーザーを検索",
|
||||
"Custom API Call": "カスタムAPI通話",
|
||||
"Create Issue in GitHub Repository": "GitHub リポジトリで問題を作成",
|
||||
"Grabs information from a specific issue": "特定の問題からの情報を取得します。",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "指定された課題にコメントを追加します (プルリクエストでも機能します)",
|
||||
"Locks the specified issue": "指定した課題をロックします",
|
||||
"Unlocks the specified issue": "指定した課題のロックを解除する",
|
||||
"Perform a raw GraphQL query": "生のGraphQLクエリを実行します",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "GitHub リポジトリのプルリクエストにレビューコメントを作成します。",
|
||||
"Creates a comment on a commit in a GitHub repository": "GitHub リポジトリのコミットにコメントを作成します。",
|
||||
"Creates a comment on a discussion in a GitHub repository": "GitHubリポジトリのディスカッションにコメントを作成します",
|
||||
"Adds labels to an existing issue.": "既存の課題にラベルを追加します。",
|
||||
"Creates a new branch on a repository.": "リポジトリに新しいブランチを作成します。",
|
||||
"Deletes a branch from a repository.": "リポジトリからブランチを削除する。",
|
||||
"Updates an existing issue.": "既存の問題を更新します。",
|
||||
"Finds a branch by name and returns its details.": "名前でブランチを検索し、その詳細を返します。",
|
||||
"Finds an issue based title.": "課題ベースのタイトルを検索します。",
|
||||
"Finds a user by their login name.": "ログイン名でユーザーを検索します。",
|
||||
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
||||
"Repository": "リポジトリ",
|
||||
"Title": "タイトル",
|
||||
"Description": "説明",
|
||||
"Labels": "ラベル",
|
||||
"Assignees": "担当者",
|
||||
"Issue Number": "発行番号",
|
||||
"Issue number": "発行番号",
|
||||
"Comment": "コメント",
|
||||
"Lock Reason": "ロックの理由",
|
||||
"Query": "クエリ",
|
||||
"Parameters": "パラメータ",
|
||||
"Pull Request Number": "プルリクエスト番号",
|
||||
"Commit SHA": "SHAをコミット",
|
||||
"File Path": "ファイルパス",
|
||||
"Comment Body": "コメント本文",
|
||||
"Position": "位置",
|
||||
"Discussion Number": "ディスカッション番号",
|
||||
"Issue": "課題",
|
||||
"Source Branch": "ソースブランチ",
|
||||
"New Branch Name": "新しいブランチ名",
|
||||
"Branch": "ブランチ",
|
||||
"Body": "本文",
|
||||
"State": "都道府県:",
|
||||
"State Reason": "要塞の理由",
|
||||
"Milestone": "マイルストーン",
|
||||
"Branch Name": "ブランチ名",
|
||||
"Username": "ユーザー名",
|
||||
"Method": "方法",
|
||||
"Headers": "ヘッダー",
|
||||
"Query Parameters": "クエリパラメータ",
|
||||
"Response is Binary ?": "応答はバイナリですか?",
|
||||
"No Error on Failure": "失敗時にエラーはありません",
|
||||
"Timeout (in seconds)": "タイムアウト(秒)",
|
||||
"The title of the issue": "課題のタイトル",
|
||||
"The description of the issue": "課題の説明",
|
||||
"Labels for the Issue": "課題のラベル",
|
||||
"Assignees for the Issue": "課題の担当者",
|
||||
"The number of the issue you want to get information from": "情報を取得したい課題の数",
|
||||
"The number of the issue to comment on": "コメントする課題の数",
|
||||
"The comment to add to the issue": "課題に追加するコメント",
|
||||
"The number of the issue to be locked": "ロックされる課題の数",
|
||||
"The reason for locking the issue": "問題をロックする理由",
|
||||
"The number of the issue to be unlocked": "ロック解除する課題の数",
|
||||
"The number of the pull request": "プルリクエストの数",
|
||||
"The SHA of the commit to comment on": "コメントするコミットのSHA。",
|
||||
"The relative path to the file to comment on": "コメントするファイルへの相対パス",
|
||||
"The content of the review comment": "レビューコメントの内容",
|
||||
"The position in the diff where the comment should be placed": "コメントを配置する差分内の位置",
|
||||
"The content of the comment": "コメントの内容",
|
||||
"The relative path to the file to comment on (optional)": "コメントへのファイルへの相対パス (オプション)",
|
||||
"The line index in the diff to comment on (optional)": "コメントへの差分内の行のインデックス (オプション)",
|
||||
"The number of the discussion to comment on": "コメントするディスカッション数",
|
||||
"The content of the comment (supports markdown)": "コメントの内容 (マークダウンをサポート)",
|
||||
"The issue to select.": "選択する問題",
|
||||
"The source branch that will be used to create the new branch": "新しいブランチを作成するために使用されるソースブランチ",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "新しいブランチの名前(例:'feature/new-design')。",
|
||||
"The new state of the issue.": "問題の新しい状態。",
|
||||
"The reason for the state change. (Only used if State is changed).": "国家が変更された理由。(国家が変更された場合にのみ使用されます)",
|
||||
"The milestone to associate this issue with.": "この課題に関連付けるマイルストーン。",
|
||||
"Filter issues by their state.": "チケットの状態でフィルタリングします。",
|
||||
"The GitHub username (login) to look up.": "検索するGitHubユーザー名 (ログイン)",
|
||||
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
||||
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
|
||||
"Open": "開く",
|
||||
"Closed": "クローズ済み",
|
||||
"Completed": "完了",
|
||||
"Not Planned": "未計画",
|
||||
"Reopened": "再オープンしました",
|
||||
"Duplicate": "Duplicate",
|
||||
"All": "すべて",
|
||||
"GET": "取得",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "削除",
|
||||
"HEAD": "頭",
|
||||
"New Pull Request": "新しいプルリクエスト",
|
||||
"New Star": "新しいスター",
|
||||
"New Issue": "新しい課題",
|
||||
"Push": "Push",
|
||||
"New Discussion": "新しいディスカッション",
|
||||
"New Comment Posted": "新しいコメントが投稿されました",
|
||||
"New Branch": "新しいブランチ",
|
||||
"New Collaborator": "新しいコラボレーター",
|
||||
"New Label": "新しいラベル",
|
||||
"New Milestone": "新しいマイルストーン",
|
||||
"New Release": "新しいリリース",
|
||||
"Triggers when there is activity on a pull request.": "プルリクエストでアクティビティがある場合にトリガーします。",
|
||||
"Trigger when there is activity relating to repository stars.": "リポジトリ星に関連するアクティビティがある場合にトリガーします。",
|
||||
"Triggers when there is activity relating to an issue.": "問題に関連する活動がある場合にトリガーします。",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "リポジトリブランチへのプッシュがある場合にトリガーします。 これは、ブランチが削除されたときにコミットがプッシュされたときにコミットタグがプッシュされたときに含まれます。 タグが削除された場合、またはテンプレートからリポジトリが作成された場合。",
|
||||
"Triggers when there is activity relating to a discussion.": "ディスカッションに関連する活動がある場合にトリガーします。",
|
||||
"Triggers when there is a new comment posted on a discussion.": "ディスカッションに新しいコメントが投稿されたときにトリガーします。",
|
||||
"Triggers when a new branch is created.": "新しいブランチが作成されたときにトリガーします。",
|
||||
"Triggers when a new collaborator is added to a repository.": "リポジトリに新しい共同編集者が追加されたときにトリガーされます。",
|
||||
"Triggers when a new label is created in a repository.": "リポジトリに新しいラベルが作成されたときにトリガーされます。",
|
||||
"Triggers when a new milestone is created.": "新しいマイルストーンが作成されたときにトリガーします。",
|
||||
"Triggers when a new release is added.": "新しいリリースが追加されたときにトリガーします。"
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Ontwikkelaars platform waarmee ontwikkelaars hun code kunnen maken, winkelen, beheren en delen",
|
||||
"Create Issue": "Probleem aanmaken",
|
||||
"Get issue information": "Probleeminformatie ophalen",
|
||||
"Create comment on a issue": "Maak commentaar op een issue",
|
||||
"Lock issue": "Probleem vergrendelen",
|
||||
"Unlock issue": "Probleem ontgrendelen",
|
||||
"Raw GraphQL query": "Onbewerkte GraphQL query",
|
||||
"Create Pull Request Review Comment": "Maak een pull request review commentaar",
|
||||
"Create Commit Comment": "Maak Commit Reactie",
|
||||
"Create Discussion Comment": "Discussieopmerking maken",
|
||||
"Add Labels to Issue": "Voeg labels toe aan Issue",
|
||||
"Create Branch": "Branch aanmaken",
|
||||
"Delete Branch": "Aftakking verwijderen",
|
||||
"Update Issue": "Probleem bijwerken",
|
||||
"Find Branch": "Filialen zoeken",
|
||||
"Find Issue": "Probleem zoeken",
|
||||
"Find User": "Gebruiker zoeken",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create Issue in GitHub Repository": "Probleem in GitHub repository aanmaken",
|
||||
"Grabs information from a specific issue": "Pak informatie van een specifiek probleem",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Voegt een opmerking toe aan het opgegeven probleem (werkt ook met pull requests)",
|
||||
"Locks the specified issue": "Vergrendelt het opgegeven issue",
|
||||
"Unlocks the specified issue": "Ontgrendelt het opgegeven probleem",
|
||||
"Perform a raw GraphQL query": "Een rauwe GraphQL query uitvoeren",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Maakt een review reactie op een pull-aanvraag in een GitHub repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Maakt een reactie op een commit in een GitHub repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Maakt een reactie op een discussie in een GitHub repository",
|
||||
"Adds labels to an existing issue.": "Voegt labels toe aan een bestaand probleem.",
|
||||
"Creates a new branch on a repository.": "Maakt een nieuwe branch aan op een repository.",
|
||||
"Deletes a branch from a repository.": "Verwijdert een branch uit een repository.",
|
||||
"Updates an existing issue.": "Werkt een bestaand probleem bij.",
|
||||
"Finds a branch by name and returns its details.": "Vindt een branch op naam en retourneer de details ervan.",
|
||||
"Finds an issue based title.": "Vindt een issue gebaseerde titel.",
|
||||
"Finds a user by their login name.": "Vindt een gebruiker via hun inlognaam.",
|
||||
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
||||
"Repository": "Bewaarplaats",
|
||||
"Title": "Aanspreektitel",
|
||||
"Description": "Beschrijving",
|
||||
"Labels": "Labels",
|
||||
"Assignees": "Verantwoordelijken",
|
||||
"Issue Number": "Issue Nummer",
|
||||
"Issue number": "Issue Number",
|
||||
"Comment": "Opmerking",
|
||||
"Lock Reason": "Reden van vergrendelen",
|
||||
"Query": "Zoekopdracht",
|
||||
"Parameters": "Parameters",
|
||||
"Pull Request Number": "Pull verzoek nummer",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "Bestandspad",
|
||||
"Comment Body": "Commentaar inhoud",
|
||||
"Position": "Positie",
|
||||
"Discussion Number": "Discussie nummer",
|
||||
"Issue": "Probleem",
|
||||
"Source Branch": "Bron branch",
|
||||
"New Branch Name": "Nieuwe branch naam",
|
||||
"Branch": "Filiaal",
|
||||
"Body": "Lichaam",
|
||||
"State": "Provincie",
|
||||
"State Reason": "Reden van staat",
|
||||
"Milestone": "Mijlpaal",
|
||||
"Branch Name": "Aftakkingsnaam",
|
||||
"Username": "Gebruikersnaam",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopteksten",
|
||||
"Query Parameters": "Query parameters",
|
||||
"Response is Binary ?": "Antwoord is binair?",
|
||||
"No Error on Failure": "Geen fout bij fout",
|
||||
"Timeout (in seconds)": "Time-out (in seconden)",
|
||||
"The title of the issue": "De titel van het issue",
|
||||
"The description of the issue": "De beschrijving van het issue",
|
||||
"Labels for the Issue": "Etiketten voor het probleem",
|
||||
"Assignees for the Issue": "Verantwoordelijken voor het probleem",
|
||||
"The number of the issue you want to get information from": "Het nummer van het issue waarvan u informatie wilt ontvangen van",
|
||||
"The number of the issue to comment on": "Het nummer van het issue waarop commentaar moet worden gegeven",
|
||||
"The comment to add to the issue": "De opmerking om toe te voegen aan het issue",
|
||||
"The number of the issue to be locked": "Het nummer van het issue dat vergrendeld moet worden",
|
||||
"The reason for locking the issue": "De reden voor het vergrendelen van het issue",
|
||||
"The number of the issue to be unlocked": "Het nummer van het te ontgrendelen issue",
|
||||
"The number of the pull request": "Het aantal pull-aanvragen",
|
||||
"The SHA of the commit to comment on": "De SHA van de commit om op te reageren",
|
||||
"The relative path to the file to comment on": "Het relatieve pad naar het bestand om op te reageren",
|
||||
"The content of the review comment": "De inhoud van de commentaar van de review",
|
||||
"The position in the diff where the comment should be placed": "De positie in de diff waar de reactie moet worden geplaatst",
|
||||
"The content of the comment": "De inhoud van de opmerking",
|
||||
"The relative path to the file to comment on (optional)": "Het relatieve pad naar het bestand om op te reageren (optioneel)",
|
||||
"The line index in the diff to comment on (optional)": "De lijnindex in de diff om commentaar op te geven (optioneel)",
|
||||
"The number of the discussion to comment on": "Het nummer van de discussie om commentaar op te geven",
|
||||
"The content of the comment (supports markdown)": "De inhoud van de opmerking (ondersteunt de markdown)",
|
||||
"The issue to select.": "Het te selecteren onderwerp.",
|
||||
"The source branch that will be used to create the new branch": "De bronbranch die zal worden gebruikt om de nieuwe branch te maken",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "De naam voor de nieuwe branch (bijv. 'feature/new-design').",
|
||||
"The new state of the issue.": "De nieuwe stand van zaken in deze kwestie.",
|
||||
"The reason for the state change. (Only used if State is changed).": "De reden voor het wijzigen van de staat. (Wordt alleen gebruikt als de staat wordt gewijzigd).",
|
||||
"The milestone to associate this issue with.": "De mijlpaal voor het koppelen van dit probleem.",
|
||||
"Filter issues by their state.": "Issues filteren op hun status.",
|
||||
"The GitHub username (login) to look up.": "De GitHub gebruikersnaam (login) om op te zoeken.",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
||||
"Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
|
||||
"Open": "Open",
|
||||
"Closed": "gesloten",
|
||||
"Completed": "Voltooid",
|
||||
"Not Planned": "Niet gepland",
|
||||
"Reopened": "Heropend",
|
||||
"Duplicate": "Dupliceer",
|
||||
"All": "Allemaal",
|
||||
"GET": "KRIJG",
|
||||
"POST": "POSTE",
|
||||
"PATCH": "BEKIJK",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "VERWIJDEREN",
|
||||
"HEAD": "HOOFD",
|
||||
"New Pull Request": "Nieuwe pull-aanvraag",
|
||||
"New Star": "Nieuwe Ster",
|
||||
"New Issue": "Nieuw probleem",
|
||||
"Push": "Push",
|
||||
"New Discussion": "Nieuwe discussie",
|
||||
"New Comment Posted": "Nieuwe reactie geplaatst",
|
||||
"New Branch": "Nieuwe branch",
|
||||
"New Collaborator": "Nieuwe medewerker",
|
||||
"New Label": "Nieuw label",
|
||||
"New Milestone": "Nieuwe mijlpaal",
|
||||
"New Release": "Nieuwe release",
|
||||
"Triggers when there is activity on a pull request.": "Triggert wanneer er activiteit is op een pull-aanvraag.",
|
||||
"Trigger when there is activity relating to repository stars.": "Trigger wanneer er activiteit is met betrekking tot repository sterren.",
|
||||
"Triggers when there is activity relating to an issue.": "Triggert wanneer er activiteit is gerelateerd aan een probleem.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Triggert wanneer er een push naar een repository-branch is. Dit is inclusief wanneer een commit wordt pushed, wanneer een commit tag wordt pushd, wanneer een branch wordt verwijderd, wanneer een tag wordt verwijderd, of wanneer een repository is gemaakt van een sjabloon.",
|
||||
"Triggers when there is activity relating to a discussion.": "Triggert wanneer er activiteiten zijn die verband houden met een discussie.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Triggert wanneer er een nieuwe reactie is geplaatst in een discussie.",
|
||||
"Triggers when a new branch is created.": "Triggert wanneer een nieuwe branch wordt aangemaakt.",
|
||||
"Triggers when a new collaborator is added to a repository.": "Triggert wanneer een nieuwe medewerker is toegevoegd aan een repository.",
|
||||
"Triggers when a new label is created in a repository.": "Triggert wanneer een nieuw label wordt aangemaakt in een repository.",
|
||||
"Triggers when a new milestone is created.": "Triggert wanneer een nieuwe mijlpaal is aangemaakt.",
|
||||
"Triggers when a new release is added.": "Triggert wanneer een nieuwe versie wordt toegevoegd."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Plataforma de desenvolvedores que permite aos desenvolvedores criar, armazenar, gerenciar e compartilhar seus códigos",
|
||||
"Create Issue": "Criar issue",
|
||||
"Get issue information": "Obter informações do problema",
|
||||
"Create comment on a issue": "Criar comentário em uma issue",
|
||||
"Lock issue": "Bloquear issue",
|
||||
"Unlock issue": "Desbloquear problema",
|
||||
"Raw GraphQL query": "Consulta de Raw GraphQL",
|
||||
"Create Pull Request Review Comment": "Criar comentário de revisão de pull request",
|
||||
"Create Commit Comment": "Criar comentário de commit",
|
||||
"Create Discussion Comment": "Criar comentário de discussão",
|
||||
"Add Labels to Issue": "Adicionar Rótulos à Solicitação",
|
||||
"Create Branch": "Criar filial",
|
||||
"Delete Branch": "Excluir branch",
|
||||
"Update Issue": "Atualizar issue",
|
||||
"Find Branch": "Encontrar Filial",
|
||||
"Find Issue": "Encontrar Solicitação",
|
||||
"Find User": "Localizar usuário",
|
||||
"Custom API Call": "Chamada de API personalizada",
|
||||
"Create Issue in GitHub Repository": "Criar Issue no Repositório GitHub",
|
||||
"Grabs information from a specific issue": "Agarra informações de uma issue específica",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Adiciona um comentário para o problema especificado (também funciona com pull requests)",
|
||||
"Locks the specified issue": "Bloqueia o problema especificado",
|
||||
"Unlocks the specified issue": "Desbloqueia a issue especificada",
|
||||
"Perform a raw GraphQL query": "Execute uma consulta raw do GraphQL",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Cria um comentário de revisão em uma solicitação de pull no repositório do GitHub",
|
||||
"Creates a comment on a commit in a GitHub repository": "Cria um comentário em um commit em um repositório do GitHub",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Cria um comentário em uma discussão em um repositório do GitHub",
|
||||
"Adds labels to an existing issue.": "Adiciona etiquetas a uma issue existente.",
|
||||
"Creates a new branch on a repository.": "Cria um novo branch em um repositório.",
|
||||
"Deletes a branch from a repository.": "Exclui um branch de um repositório.",
|
||||
"Updates an existing issue.": "Atualiza uma issue existente.",
|
||||
"Finds a branch by name and returns its details.": "Encontra uma branch por nome e retorna seus detalhes.",
|
||||
"Finds an issue based title.": "Localiza um título baseado em issue.",
|
||||
"Finds a user by their login name.": "Localiza um usuário com seu nome de login.",
|
||||
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
||||
"Repository": "Repositório",
|
||||
"Title": "Título",
|
||||
"Description": "Descrição",
|
||||
"Labels": "Marcadores",
|
||||
"Assignees": "Destinatários",
|
||||
"Issue Number": "Número de emissão",
|
||||
"Issue number": "Número de emissão",
|
||||
"Comment": "Comentar",
|
||||
"Lock Reason": "Motivo da Fechadura",
|
||||
"Query": "Requisição",
|
||||
"Parameters": "Parâmetros",
|
||||
"Pull Request Number": "Número do pull request",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "Caminho do Arquivo",
|
||||
"Comment Body": "Corpo do Comentário",
|
||||
"Position": "Posição",
|
||||
"Discussion Number": "Número da discussão",
|
||||
"Issue": "Problema",
|
||||
"Source Branch": "Branch de origem",
|
||||
"New Branch Name": "Nome da nova filial",
|
||||
"Branch": "Ramificação",
|
||||
"Body": "Conteúdo",
|
||||
"State": "Estado:",
|
||||
"State Reason": "Razão do Estado",
|
||||
"Milestone": "Marco",
|
||||
"Branch Name": "Nome Branch",
|
||||
"Username": "Usuário:",
|
||||
"Method": "Método",
|
||||
"Headers": "Cabeçalhos",
|
||||
"Query Parameters": "Parâmetros da consulta",
|
||||
"Response is Binary ?": "A resposta é binária ?",
|
||||
"No Error on Failure": "Nenhum erro no Failure",
|
||||
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
||||
"The title of the issue": "O título da issue",
|
||||
"The description of the issue": "A descrição do problema",
|
||||
"Labels for the Issue": "Etiquetas para a Solicitação",
|
||||
"Assignees for the Issue": "Responsáveis para a Solicitação",
|
||||
"The number of the issue you want to get information from": "O número da issue da qual você deseja obter informação",
|
||||
"The number of the issue to comment on": "O número da issue para comentar",
|
||||
"The comment to add to the issue": "O comentário a adicionar à issue",
|
||||
"The number of the issue to be locked": "O número da issue a ser bloqueada",
|
||||
"The reason for locking the issue": "A razão para bloquear a issue",
|
||||
"The number of the issue to be unlocked": "O número da issue a ser desbloqueada",
|
||||
"The number of the pull request": "O número do pull request",
|
||||
"The SHA of the commit to comment on": "O SHA do commit sobre o qual comentar",
|
||||
"The relative path to the file to comment on": "O caminho relativo do arquivo no qual comentar",
|
||||
"The content of the review comment": "O conteúdo do comentário de revisão",
|
||||
"The position in the diff where the comment should be placed": "A posição no diff onde o comentário deve ser colocado",
|
||||
"The content of the comment": "O conteúdo do comentário",
|
||||
"The relative path to the file to comment on (optional)": "O caminho relativo do arquivo no qual comentar (opcional)",
|
||||
"The line index in the diff to comment on (optional)": "O índice da linha no diff para comentar (opcional)",
|
||||
"The number of the discussion to comment on": "O número da discussão para comentar",
|
||||
"The content of the comment (supports markdown)": "O conteúdo do comentário (suporta markdown)",
|
||||
"The issue to select.": "O problema a selecionar.",
|
||||
"The source branch that will be used to create the new branch": "O branch de origem que será usado para criar o novo branch",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "O nome para a nova branch (por exemplo, 'feature/new-design').",
|
||||
"The new state of the issue.": "O novo estado da questão.",
|
||||
"The reason for the state change. (Only used if State is changed).": "A razão para a mudança de estado. (Usado somente se o estado for alterado).",
|
||||
"The milestone to associate this issue with.": "O marco para associar esse problema.",
|
||||
"Filter issues by their state.": "Filtrar issues por seu estado.",
|
||||
"The GitHub username (login) to look up.": "O nome de usuário do GitHub (login) para procurar.",
|
||||
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
||||
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
|
||||
"Open": "Abertas",
|
||||
"Closed": "Fechado",
|
||||
"Completed": "Concluído",
|
||||
"Not Planned": "Não planejado",
|
||||
"Reopened": "Reaberto",
|
||||
"Duplicate": "Duplicar",
|
||||
"All": "TODOS",
|
||||
"GET": "OBTER",
|
||||
"POST": "POSTAR",
|
||||
"PATCH": "COMPRAR",
|
||||
"PUT": "COLOCAR",
|
||||
"DELETE": "EXCLUIR",
|
||||
"HEAD": "CABEÇA",
|
||||
"New Pull Request": "Novo Pull Request",
|
||||
"New Star": "Nova Estrela",
|
||||
"New Issue": "Nova issue",
|
||||
"Push": "Enviar",
|
||||
"New Discussion": "Novo debate",
|
||||
"New Comment Posted": "Novo Comentário Postado",
|
||||
"New Branch": "Nova filial",
|
||||
"New Collaborator": "Novo colaborador",
|
||||
"New Label": "Novo Marcador",
|
||||
"New Milestone": "Novo marco",
|
||||
"New Release": "Nova versão",
|
||||
"Triggers when there is activity on a pull request.": "Aciona quando há atividade em uma pull request.",
|
||||
"Trigger when there is activity relating to repository stars.": "Acionar quando houver uma atividade relacionada às estrelas do repositório.",
|
||||
"Triggers when there is activity relating to an issue.": "Desencadeia quando há atividade relacionada a um problema.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Dispara quando há um push em um branch de repositório. Isso inclui quando um commit é feito por push, quando um marcador de commit é publicado, quando um branch é excluído, quando uma tag é excluída, ou quando um repositório é criado a partir de um modelo.",
|
||||
"Triggers when there is activity relating to a discussion.": "Dispara quando há atividade relacionada a uma discussão.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Dispara quando há um novo comentário postado em uma discussão.",
|
||||
"Triggers when a new branch is created.": "Dispara quando um novo branch é criado.",
|
||||
"Triggers when a new collaborator is added to a repository.": "Aciona quando um novo colaborador é adicionado a um repositório.",
|
||||
"Triggers when a new label is created in a repository.": "Dispara quando uma nova etiqueta é criada em um repositório.",
|
||||
"Triggers when a new milestone is created.": "Dispara quando um novo marco é criado.",
|
||||
"Triggers when a new release is added.": "Dispara quando uma nova versão for adicionada."
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"GitHub": "GitHub",
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Платформа разработчика, позволяющая разработчикам создавать, хранить, управлять и делиться своим кодом",
|
||||
"Create Issue": "Создать запрос",
|
||||
"Get issue information": "Получить информацию о выпуске",
|
||||
"Create comment on a issue": "Создать комментарий к задаче",
|
||||
"Lock issue": "Заблокировать проблему",
|
||||
"Unlock issue": "Разблокировать задачу",
|
||||
"Raw GraphQL query": "Запрос сырых GraphQL",
|
||||
"Create Pull Request Review Comment": "Создать комментарий о запросе на слияние",
|
||||
"Create Commit Comment": "Создать комментарий коммита",
|
||||
"Create Discussion Comment": "Создать комментарий для обсуждения",
|
||||
"Custom API Call": "Пользовательский вызов API",
|
||||
"Create Issue in GitHub Repository": "Создать запрос в GitHub репозитории",
|
||||
"Grabs information from a specific issue": "Получает информацию по конкретной проблеме",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Добавляет комментарий к указанной проблеме (также работает с Pull requests)",
|
||||
"Locks the specified issue": "Заблокирует указанную проблему",
|
||||
"Unlocks the specified issue": "Открывает указанную задачу",
|
||||
"Perform a raw GraphQL query": "Выполнить необработанный запрос GraphQL",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Создать комментарий к Pull Request в GitHub репозитории",
|
||||
"Creates a comment on a commit in a GitHub repository": "Создает комментарий к коммиту в GitHub репозитории",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Создает комментарий к обсуждению в GitHub репозитории",
|
||||
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
||||
"Repository": "Репозиторий",
|
||||
"Title": "Заголовок",
|
||||
"Description": "Описание",
|
||||
"Labels": "Метки",
|
||||
"Assignees": "Назначенные",
|
||||
"Issue Number": "Номер выпуска",
|
||||
"Issue number": "Номер выпуска",
|
||||
"Comment": "Комментарий",
|
||||
"Lock Reason": "Причина блокировки",
|
||||
"Query": "Запрос",
|
||||
"Parameters": "Параметры",
|
||||
"Pull Request Number": "Номер Pull Request",
|
||||
"Commit SHA": "Зафиксировать SHA",
|
||||
"File Path": "Путь к файлу",
|
||||
"Comment Body": "Тело комментария",
|
||||
"Position": "Позиция",
|
||||
"Discussion Number": "Номер обсуждения",
|
||||
"Method": "Метод",
|
||||
"Headers": "Заголовки",
|
||||
"Query Parameters": "Параметры запроса",
|
||||
"Body": "Тело",
|
||||
"No Error on Failure": "Нет ошибок при ошибке",
|
||||
"Timeout (in seconds)": "Таймаут (в секундах)",
|
||||
"The title of the issue": "Название проблемы",
|
||||
"The description of the issue": "Описание проблемы",
|
||||
"Labels for the Issue": "Ярлыки для проблемы",
|
||||
"Assignees for the Issue": "Назначенные на запрос",
|
||||
"The number of the issue you want to get information from": "Номер запроса, с которого вы хотите получить информацию",
|
||||
"The number of the issue to comment on": "Номер задачи для комментирования",
|
||||
"The comment to add to the issue": "Комментарий для добавления к проблеме",
|
||||
"The number of the issue to be locked": "Номер запроса, который будет заблокирован",
|
||||
"The reason for locking the issue": "Причина блокировки проблемы",
|
||||
"The number of the issue to be unlocked": "Количество разблокированных задач",
|
||||
"The number of the pull request": "Номер запроса на слияние",
|
||||
"The SHA of the commit to comment on": "ША обязательства прокомментировать",
|
||||
"The relative path to the file to comment on": "Относительный путь к файлу для комментирования",
|
||||
"The content of the review comment": "Содержание комментария к отзыву",
|
||||
"The position in the diff where the comment should be placed": "Позиция в diff где должен быть размещен комментарий",
|
||||
"The content of the comment": "Содержание комментария",
|
||||
"The relative path to the file to comment on (optional)": "Относительный путь к файлу для комментирования (опционально)",
|
||||
"The line index in the diff to comment on (optional)": "Индекс строк в diff для комментирования (необязательно)",
|
||||
"The number of the discussion to comment on": "Номер обсуждения для комментирования",
|
||||
"The content of the comment (supports markdown)": "Содержимое комментария (поддерживает markdown)",
|
||||
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
||||
"GET": "ПОЛУЧИТЬ",
|
||||
"POST": "ПОСТ",
|
||||
"PATCH": "ПАТЧ",
|
||||
"PUT": "ПОКУПИТЬ",
|
||||
"DELETE": "УДАЛИТЬ",
|
||||
"HEAD": "HEAD",
|
||||
"New Pull Request": "Новый Pull Request",
|
||||
"New Star": "Новая звезда",
|
||||
"New Issue": "Новая задача",
|
||||
"Push": "Нагрузка",
|
||||
"New Discussion": "Новое обсуждение",
|
||||
"New Comment Posted": "Новый комментарий опубликован",
|
||||
"Triggers when there is activity on a pull request.": "Триггеры при действии пулл-запроса.",
|
||||
"Trigger when there is activity relating to repository stars.": "Срабатывать при активности, связанной со звездами репозитория.",
|
||||
"Triggers when there is activity relating to an issue.": "Триггеры при наличии деятельности, связанной с проблемой.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Включает при нажатии в ветку репозитория. Это включает в себя когда фиксация отсылается при нажатии тега фиксации при удалении ветки, когда тег удаляется, или когда репозиторий создается из шаблона.",
|
||||
"Triggers when there is activity relating to a discussion.": "Триггеры, когда есть активность, связанная с обсуждением.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Включает при появлении нового комментария к обсуждению."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Developer platform that allows developers to create, store, manage and share their code",
|
||||
"Create Issue": "Create Issue",
|
||||
"Get issue information": "Get issue information",
|
||||
"Create comment on a issue": "Create comment on a issue",
|
||||
"Lock issue": "Lock issue",
|
||||
"Unlock issue": "Unlock issue",
|
||||
"Raw GraphQL query": "Raw GraphQL query",
|
||||
"Create Pull Request Review Comment": "Create Pull Request Review Comment",
|
||||
"Create Commit Comment": "Create Commit Comment",
|
||||
"Create Discussion Comment": "Create Discussion Comment",
|
||||
"Add Labels to Issue": "Add Labels to Issue",
|
||||
"Create Branch": "Create Branch",
|
||||
"Delete Branch": "Delete Branch",
|
||||
"Update Issue": "Update Issue",
|
||||
"Find Branch": "Find Branch",
|
||||
"Find Issue": "Find Issue",
|
||||
"Find User": "Find User",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create Issue in GitHub Repository": "Create Issue in GitHub Repository",
|
||||
"Grabs information from a specific issue": "Grabs information from a specific issue",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Adds a comment to the specified issue (also works with pull requests)",
|
||||
"Locks the specified issue": "Locks the specified issue",
|
||||
"Unlocks the specified issue": "Unlocks the specified issue",
|
||||
"Perform a raw GraphQL query": "Perform a raw GraphQL query",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Creates a review comment on a pull request in a GitHub repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Creates a comment on a commit in a GitHub repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Creates a comment on a discussion in a GitHub repository",
|
||||
"Adds labels to an existing issue.": "Adds labels to an existing issue.",
|
||||
"Creates a new branch on a repository.": "Creates a new branch on a repository.",
|
||||
"Deletes a branch from a repository.": "Deletes a branch from a repository.",
|
||||
"Updates an existing issue.": "Updates an existing issue.",
|
||||
"Finds a branch by name and returns its details.": "Finds a branch by name and returns its details.",
|
||||
"Finds an issue based title.": "Finds an issue based title.",
|
||||
"Finds a user by their login name.": "Finds a user by their login name.",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Repository": "Repository",
|
||||
"Title": "Title",
|
||||
"Description": "Description",
|
||||
"Labels": "Labels",
|
||||
"Assignees": "Assignees",
|
||||
"Issue Number": "Issue Number",
|
||||
"Issue number": "Issue number",
|
||||
"Comment": "Comment",
|
||||
"Lock Reason": "Lock Reason",
|
||||
"Query": "Query",
|
||||
"Parameters": "Parameters",
|
||||
"Pull Request Number": "Pull Request Number",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "File Path",
|
||||
"Comment Body": "Comment Body",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Discussion Number",
|
||||
"Issue": "Issue",
|
||||
"Source Branch": "Source Branch",
|
||||
"New Branch Name": "New Branch Name",
|
||||
"Branch": "Branch",
|
||||
"Body": "Body",
|
||||
"State": "State",
|
||||
"State Reason": "State Reason",
|
||||
"Milestone": "Milestone",
|
||||
"Branch Name": "Branch Name",
|
||||
"Username": "Username",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The title of the issue": "The title of the issue",
|
||||
"The description of the issue": "The description of the issue",
|
||||
"Labels for the Issue": "Labels for the Issue",
|
||||
"Assignees for the Issue": "Assignees for the Issue",
|
||||
"The number of the issue you want to get information from": "The number of the issue you want to get information from",
|
||||
"The number of the issue to comment on": "The number of the issue to comment on",
|
||||
"The comment to add to the issue": "The comment to add to the issue",
|
||||
"The number of the issue to be locked": "The number of the issue to be locked",
|
||||
"The reason for locking the issue": "The reason for locking the issue",
|
||||
"The number of the issue to be unlocked": "The number of the issue to be unlocked",
|
||||
"The number of the pull request": "The number of the pull request",
|
||||
"The SHA of the commit to comment on": "The SHA of the commit to comment on",
|
||||
"The relative path to the file to comment on": "The relative path to the file to comment on",
|
||||
"The content of the review comment": "The content of the review comment",
|
||||
"The position in the diff where the comment should be placed": "The position in the diff where the comment should be placed",
|
||||
"The content of the comment": "The content of the comment",
|
||||
"The relative path to the file to comment on (optional)": "The relative path to the file to comment on (optional)",
|
||||
"The line index in the diff to comment on (optional)": "The line index in the diff to comment on (optional)",
|
||||
"The number of the discussion to comment on": "The number of the discussion to comment on",
|
||||
"The content of the comment (supports markdown)": "The content of the comment (supports markdown)",
|
||||
"The issue to select.": "The issue to select.",
|
||||
"The source branch that will be used to create the new branch": "The source branch that will be used to create the new branch",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "The name for the new branch (e.g., 'feature/new-design').",
|
||||
"The new state of the issue.": "The new state of the issue.",
|
||||
"The reason for the state change. (Only used if State is changed).": "The reason for the state change. (Only used if State is changed).",
|
||||
"The milestone to associate this issue with.": "The milestone to associate this issue with.",
|
||||
"Filter issues by their state.": "Filter issues by their state.",
|
||||
"The GitHub username (login) to look up.": "The GitHub username (login) to look up.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"Open": "Open",
|
||||
"Closed": "Closed",
|
||||
"Completed": "Completed",
|
||||
"Not Planned": "Not Planned",
|
||||
"Reopened": "Reopened",
|
||||
"Duplicate": "Duplicate",
|
||||
"All": "All",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD",
|
||||
"New Pull Request": "New Pull Request",
|
||||
"New Star": "New Star",
|
||||
"New Issue": "New Issue",
|
||||
"Push": "Push",
|
||||
"New Discussion": "New Discussion",
|
||||
"New Comment Posted": "New Comment Posted",
|
||||
"New Branch": "New Branch",
|
||||
"New Collaborator": "New Collaborator",
|
||||
"New Label": "New Label",
|
||||
"New Milestone": "New Milestone",
|
||||
"New Release": "New Release",
|
||||
"Triggers when there is activity on a pull request.": "Triggers when there is activity on a pull request.",
|
||||
"Trigger when there is activity relating to repository stars.": "Trigger when there is activity relating to repository stars.",
|
||||
"Triggers when there is activity relating to an issue.": "Triggers when there is activity relating to an issue.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.",
|
||||
"Triggers when there is activity relating to a discussion.": "Triggers when there is activity relating to a discussion.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Triggers when there is a new comment posted on a discussion.",
|
||||
"Triggers when a new branch is created.": "Triggers when a new branch is created.",
|
||||
"Triggers when a new collaborator is added to a repository.": "Triggers when a new collaborator is added to a repository.",
|
||||
"Triggers when a new label is created in a repository.": "Triggers when a new label is created in a repository.",
|
||||
"Triggers when a new milestone is created.": "Triggers when a new milestone is created.",
|
||||
"Triggers when a new release is added.": "Triggers when a new release is added."
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"GitHub": "GitHub",
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Developer platform that allows developers to create, store, manage and share their code",
|
||||
"Create Issue": "Create Issue",
|
||||
"Get issue information": "Get issue information",
|
||||
"Create comment on a issue": "Create comment on a issue",
|
||||
"Lock issue": "Lock issue",
|
||||
"Unlock issue": "Unlock issue",
|
||||
"Raw GraphQL query": "Raw GraphQL query",
|
||||
"Create Pull Request Review Comment": "Create Pull Request Review Comment",
|
||||
"Create Commit Comment": "Create Commit Comment",
|
||||
"Create Discussion Comment": "Create Discussion Comment",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create Issue in GitHub Repository": "Create Issue in GitHub Repository",
|
||||
"Grabs information from a specific issue": "Grabs information from a specific issue",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Adds a comment to the specified issue (also works with pull requests)",
|
||||
"Locks the specified issue": "Locks the specified issue",
|
||||
"Unlocks the specified issue": "Unlocks the specified issue",
|
||||
"Perform a raw GraphQL query": "Perform a raw GraphQL query",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Creates a review comment on a pull request in a GitHub repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Creates a comment on a commit in a GitHub repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Creates a comment on a discussion in a GitHub repository",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Repository": "Repository",
|
||||
"Title": "Title",
|
||||
"Description": "Description",
|
||||
"Labels": "Labels",
|
||||
"Assignees": "Assignees",
|
||||
"Issue Number": "Issue Number",
|
||||
"Issue number": "Issue number",
|
||||
"Comment": "Comment",
|
||||
"Lock Reason": "Lock Reason",
|
||||
"Query": "Query",
|
||||
"Parameters": "Parameters",
|
||||
"Pull Request Number": "Pull Request Number",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "File Path",
|
||||
"Comment Body": "Comment Body",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Discussion Number",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The title of the issue": "The title of the issue",
|
||||
"The description of the issue": "The description of the issue",
|
||||
"Labels for the Issue": "Labels for the Issue",
|
||||
"Assignees for the Issue": "Assignees for the Issue",
|
||||
"The number of the issue you want to get information from": "The number of the issue you want to get information from",
|
||||
"The number of the issue to comment on": "The number of the issue to comment on",
|
||||
"The comment to add to the issue": "The comment to add to the issue",
|
||||
"The number of the issue to be locked": "The number of the issue to be locked",
|
||||
"The reason for locking the issue": "The reason for locking the issue",
|
||||
"The number of the issue to be unlocked": "The number of the issue to be unlocked",
|
||||
"The number of the pull request": "The number of the pull request",
|
||||
"The SHA of the commit to comment on": "The SHA of the commit to comment on",
|
||||
"The relative path to the file to comment on": "The relative path to the file to comment on",
|
||||
"The content of the review comment": "The content of the review comment",
|
||||
"The position in the diff where the comment should be placed": "The position in the diff where the comment should be placed",
|
||||
"The content of the comment": "The content of the comment",
|
||||
"The relative path to the file to comment on (optional)": "The relative path to the file to comment on (optional)",
|
||||
"The line index in the diff to comment on (optional)": "The line index in the diff to comment on (optional)",
|
||||
"The number of the discussion to comment on": "The number of the discussion to comment on",
|
||||
"The content of the comment (supports markdown)": "The content of the comment (supports markdown)",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD",
|
||||
"New Pull Request": "New Pull Request",
|
||||
"New Star": "New Star",
|
||||
"New Issue": "New Issue",
|
||||
"Push": "Push",
|
||||
"New Discussion": "New Discussion",
|
||||
"New Comment Posted": "New Comment Posted",
|
||||
"Triggers when there is activity on a pull request.": "Triggers when there is activity on a pull request.",
|
||||
"Trigger when there is activity relating to repository stars.": "Trigger when there is activity relating to repository stars.",
|
||||
"Triggers when there is activity relating to an issue.": "Triggers when there is activity relating to an issue.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.",
|
||||
"Triggers when there is activity relating to a discussion.": "Triggers when there is activity relating to a discussion.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Triggers when there is a new comment posted on a discussion."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"Developer platform that allows developers to create, store, manage and share their code": "Developer platform that allows developers to create, store, manage and share their code",
|
||||
"Create Issue": "Create Issue",
|
||||
"Get issue information": "Get issue information",
|
||||
"Create comment on a issue": "Create comment on a issue",
|
||||
"Lock issue": "Lock issue",
|
||||
"Unlock issue": "Unlock issue",
|
||||
"Raw GraphQL query": "Raw GraphQL query",
|
||||
"Create Pull Request Review Comment": "Create Pull Request Review Comment",
|
||||
"Create Commit Comment": "Create Commit Comment",
|
||||
"Create Discussion Comment": "Create Discussion Comment",
|
||||
"Add Labels to Issue": "Add Labels to Issue",
|
||||
"Create Branch": "Create Branch",
|
||||
"Delete Branch": "删除分支",
|
||||
"Update Issue": "Update Issue",
|
||||
"Find Branch": "Find Branch",
|
||||
"Find Issue": "Find Issue",
|
||||
"Find User": "Find User",
|
||||
"Custom API Call": "自定义 API 呼叫",
|
||||
"Create Issue in GitHub Repository": "Create Issue in GitHub Repository",
|
||||
"Grabs information from a specific issue": "Grabs information from a specific issue",
|
||||
"Adds a comment to the specified issue (also works with pull requests)": "Adds a comment to the specified issue (also works with pull requests)",
|
||||
"Locks the specified issue": "Locks the specified issue",
|
||||
"Unlocks the specified issue": "Unlocks the specified issue",
|
||||
"Perform a raw GraphQL query": "Perform a raw GraphQL query",
|
||||
"Creates a review comment on a pull request in a GitHub repository": "Creates a review comment on a pull request in a GitHub repository",
|
||||
"Creates a comment on a commit in a GitHub repository": "Creates a comment on a commit in a GitHub repository",
|
||||
"Creates a comment on a discussion in a GitHub repository": "Creates a comment on a discussion in a GitHub repository",
|
||||
"Adds labels to an existing issue.": "Adds labels to an existing issue.",
|
||||
"Creates a new branch on a repository.": "Creates a new branch on a repository.",
|
||||
"Deletes a branch from a repository.": "Deletes a branch from a repository.",
|
||||
"Updates an existing issue.": "Updates an existing issue.",
|
||||
"Finds a branch by name and returns its details.": "Finds a branch by name and returns its details.",
|
||||
"Finds an issue based title.": "Finds an issue based title.",
|
||||
"Finds a user by their login name.": "Finds a user by their login name.",
|
||||
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
||||
"Repository": "Repository",
|
||||
"Title": "标题",
|
||||
"Description": "描述",
|
||||
"Labels": "Labels",
|
||||
"Assignees": "Assignees",
|
||||
"Issue Number": "Issue Number",
|
||||
"Issue number": "Issue number",
|
||||
"Comment": "Comment",
|
||||
"Lock Reason": "Lock Reason",
|
||||
"Query": "Query",
|
||||
"Parameters": "Parameters",
|
||||
"Pull Request Number": "Pull Request Number",
|
||||
"Commit SHA": "Commit SHA",
|
||||
"File Path": "File Path",
|
||||
"Comment Body": "Comment Body",
|
||||
"Position": "Position",
|
||||
"Discussion Number": "Discussion Number",
|
||||
"Issue": "Issue",
|
||||
"Source Branch": "Source Branch",
|
||||
"New Branch Name": "New Branch Name",
|
||||
"Branch": "分支",
|
||||
"Body": "正文内容",
|
||||
"State": "State",
|
||||
"State Reason": "State Reason",
|
||||
"Milestone": "Milestone",
|
||||
"Branch Name": "分支名称",
|
||||
"Username": "用户名",
|
||||
"Method": "方法",
|
||||
"Headers": "信头",
|
||||
"Query Parameters": "查询参数",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "失败时没有错误",
|
||||
"Timeout (in seconds)": "超时(秒)",
|
||||
"The title of the issue": "The title of the issue",
|
||||
"The description of the issue": "The description of the issue",
|
||||
"Labels for the Issue": "Labels for the Issue",
|
||||
"Assignees for the Issue": "Assignees for the Issue",
|
||||
"The number of the issue you want to get information from": "The number of the issue you want to get information from",
|
||||
"The number of the issue to comment on": "The number of the issue to comment on",
|
||||
"The comment to add to the issue": "The comment to add to the issue",
|
||||
"The number of the issue to be locked": "The number of the issue to be locked",
|
||||
"The reason for locking the issue": "The reason for locking the issue",
|
||||
"The number of the issue to be unlocked": "The number of the issue to be unlocked",
|
||||
"The number of the pull request": "The number of the pull request",
|
||||
"The SHA of the commit to comment on": "The SHA of the commit to comment on",
|
||||
"The relative path to the file to comment on": "The relative path to the file to comment on",
|
||||
"The content of the review comment": "The content of the review comment",
|
||||
"The position in the diff where the comment should be placed": "The position in the diff where the comment should be placed",
|
||||
"The content of the comment": "The content of the comment",
|
||||
"The relative path to the file to comment on (optional)": "The relative path to the file to comment on (optional)",
|
||||
"The line index in the diff to comment on (optional)": "The line index in the diff to comment on (optional)",
|
||||
"The number of the discussion to comment on": "The number of the discussion to comment on",
|
||||
"The content of the comment (supports markdown)": "The content of the comment (supports markdown)",
|
||||
"The issue to select.": "The issue to select.",
|
||||
"The source branch that will be used to create the new branch": "The source branch that will be used to create the new branch",
|
||||
"The name for the new branch (e.g., 'feature/new-design').": "The name for the new branch (e.g., 'feature/new-design').",
|
||||
"The new state of the issue.": "The new state of the issue.",
|
||||
"The reason for the state change. (Only used if State is changed).": "The reason for the state change. (Only used if State is changed).",
|
||||
"The milestone to associate this issue with.": "The milestone to associate this issue with.",
|
||||
"Filter issues by their state.": "Filter issues by their state.",
|
||||
"The GitHub username (login) to look up.": "The GitHub username (login) to look up.",
|
||||
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"Open": "Open",
|
||||
"Closed": "Closed",
|
||||
"Completed": "Completed",
|
||||
"Not Planned": "Not Planned",
|
||||
"Reopened": "Reopened",
|
||||
"Duplicate": "Duplicate",
|
||||
"All": "所有的",
|
||||
"GET": "获取",
|
||||
"POST": "帖子",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "弹出",
|
||||
"DELETE": "删除",
|
||||
"HEAD": "黑色",
|
||||
"New Pull Request": "New Pull Request",
|
||||
"New Star": "New Star",
|
||||
"New Issue": "New Issue",
|
||||
"Push": "推送",
|
||||
"New Discussion": "New Discussion",
|
||||
"New Comment Posted": "New Comment Posted",
|
||||
"New Branch": "新分支",
|
||||
"New Collaborator": "New Collaborator",
|
||||
"New Label": "New Label",
|
||||
"New Milestone": "New Milestone",
|
||||
"New Release": "New Release",
|
||||
"Triggers when there is activity on a pull request.": "Triggers when there is activity on a pull request.",
|
||||
"Trigger when there is activity relating to repository stars.": "Trigger when there is activity relating to repository stars.",
|
||||
"Triggers when there is activity relating to an issue.": "Triggers when there is activity relating to an issue.",
|
||||
"Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.": "Triggers when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, when a branch is deleted, when a tag is deleted, or when a repository is created from a template.",
|
||||
"Triggers when there is activity relating to a discussion.": "Triggers when there is activity relating to a discussion.",
|
||||
"Triggers when there is a new comment posted on a discussion.": "Triggers when there is a new comment posted on a discussion.",
|
||||
"Triggers when a new branch is created.": "Triggers when a new branch is created.",
|
||||
"Triggers when a new collaborator is added to a repository.": "Triggers when a new collaborator is added to a repository.",
|
||||
"Triggers when a new label is created in a repository.": "Triggers when a new label is created in a repository.",
|
||||
"Triggers when a new milestone is created.": "Triggers when a new milestone is created.",
|
||||
"Triggers when a new release is added.": "Triggers when a new release is added."
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import {
|
||||
OAuth2PropertyValue,
|
||||
PieceAuth,
|
||||
createPiece,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { githubCreateIssueAction } from './lib/actions/create-issue';
|
||||
import { githubUnlockIssueAction } from './lib/actions/unlock-issue';
|
||||
import { githubTriggers } from './lib/trigger';
|
||||
import { githubGetIssueInformation } from './lib/actions/get-issue-information';
|
||||
import { githubCreateCommentOnAIssue } from './lib/actions/create-comment-on-a-issue';
|
||||
import { githubLockIssueAction } from './lib/actions/lock-issue';
|
||||
import { githubRawGraphqlQuery } from './lib/actions/raw-graphql-query';
|
||||
import { githubCreatePullRequestReviewCommentAction } from './lib/actions/create-pull-request-review-comment';
|
||||
import { githubCreateCommitCommentAction } from './lib/actions/create-commit-comment';
|
||||
import { githubCreateDiscussionCommentAction } from './lib/actions/create-discussion-comment';
|
||||
import { githubAddLabelsToIssueAction } from './lib/actions/add-labels-to-issue';
|
||||
import { githubCreateBranchAction } from './lib/actions/create-branch';
|
||||
import { githubDeleteBranchAction } from './lib/actions/delete-branch';
|
||||
import { githubUpdateIssueAction } from './lib/actions/update-issue';
|
||||
|
||||
import { githubFindBranchAction } from './lib/actions/find-branch';
|
||||
import { githubFindIssueAction } from './lib/actions/find-issue';
|
||||
import { githubFindUserAction } from './lib/actions/find-user';
|
||||
|
||||
export const githubAuth = PieceAuth.OAuth2({
|
||||
required: true,
|
||||
authUrl: 'https://github.com/login/oauth/authorize',
|
||||
tokenUrl: 'https://github.com/login/oauth/access_token',
|
||||
scope: ['admin:repo_hook', 'admin:org', 'repo'],
|
||||
});
|
||||
|
||||
export const github = createPiece({
|
||||
displayName: 'GitHub',
|
||||
description:
|
||||
'Developer platform that allows developers to create, store, manage and share their code',
|
||||
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/github.png',
|
||||
categories: [PieceCategory.DEVELOPER_TOOLS],
|
||||
auth: githubAuth,
|
||||
actions: [
|
||||
githubCreateIssueAction,
|
||||
githubGetIssueInformation,
|
||||
githubCreateCommentOnAIssue,
|
||||
githubLockIssueAction,
|
||||
githubUnlockIssueAction,
|
||||
githubRawGraphqlQuery,
|
||||
githubCreatePullRequestReviewCommentAction,
|
||||
githubCreateCommitCommentAction,
|
||||
githubCreateDiscussionCommentAction,
|
||||
githubAddLabelsToIssueAction,
|
||||
githubCreateBranchAction,
|
||||
githubDeleteBranchAction,
|
||||
githubUpdateIssueAction,
|
||||
githubFindBranchAction,
|
||||
githubFindIssueAction,
|
||||
githubFindUserAction,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: () => 'https://api.github.com',
|
||||
auth: githubAuth,
|
||||
authMapping: async (auth) => ({
|
||||
Authorization: `Bearer ${(auth as OAuth2PropertyValue).access_token}`,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
authors: [
|
||||
'kishanprmr',
|
||||
'MoShizzle',
|
||||
'AbdulTheActivePiecer',
|
||||
'khaledmashaly',
|
||||
'abuaboud',
|
||||
'tintinthedev',
|
||||
],
|
||||
triggers: githubTriggers,
|
||||
});
|
||||
@@ -0,0 +1,32 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubAddLabelsToIssueAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'add_labels_to_issue',
|
||||
displayName: 'Add Labels to Issue',
|
||||
description: 'Adds labels to an existing issue.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
issue_number: githubCommon.issueDropdown(true),
|
||||
labels: githubCommon.labelDropDown(true),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
const issue_number = propsValue.issue_number;
|
||||
const labels = propsValue.labels;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/labels`,
|
||||
body: {
|
||||
labels: labels,
|
||||
},
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,46 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubCreateBranchAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'create_branch',
|
||||
displayName: 'Create Branch',
|
||||
description: 'Creates a new branch on a repository.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
source_branch: githubCommon.branchDropdown(
|
||||
'Source Branch',
|
||||
'The source branch that will be used to create the new branch',
|
||||
true
|
||||
),
|
||||
new_branch_name: Property.ShortText({
|
||||
displayName: 'New Branch Name',
|
||||
description: "The name for the new branch (e.g., 'feature/new-design').",
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const sourceBranchInfo = await githubApiCall<{ commit: { sha: string } }>({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/branches/${propsValue.source_branch}`,
|
||||
});
|
||||
const sourceSha = sourceBranchInfo.body.commit.sha;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/git/refs`,
|
||||
body: {
|
||||
ref: `refs/heads/${propsValue.new_branch_name}`,
|
||||
sha: sourceSha,
|
||||
},
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,40 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubCreateCommentOnAIssue = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'createCommentOnAIssue',
|
||||
displayName: 'Create comment on a issue',
|
||||
description:
|
||||
'Adds a comment to the specified issue (also works with pull requests)',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
issue_number: Property.Number({
|
||||
displayName: 'Issue number',
|
||||
description: 'The number of the issue to comment on',
|
||||
required: true,
|
||||
}),
|
||||
comment: Property.LongText({
|
||||
displayName: 'Comment',
|
||||
description: 'The comment to add to the issue',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const issue_number = propsValue.issue_number;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/comments`,
|
||||
body: {
|
||||
body: propsValue.comment,
|
||||
},
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,59 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubCreateCommitCommentAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'github_create_commit_comment',
|
||||
displayName: 'Create Commit Comment',
|
||||
description: 'Creates a comment on a commit in a GitHub repository',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
sha: Property.ShortText({
|
||||
displayName: 'Commit SHA',
|
||||
description: 'The SHA of the commit to comment on',
|
||||
required: true,
|
||||
}),
|
||||
body: Property.LongText({
|
||||
displayName: 'Comment Body',
|
||||
description: 'The content of the comment',
|
||||
required: true,
|
||||
}),
|
||||
path: Property.ShortText({
|
||||
displayName: 'File Path',
|
||||
description: 'The relative path to the file to comment on (optional)',
|
||||
required: false,
|
||||
}),
|
||||
position: Property.Number({
|
||||
displayName: 'Position',
|
||||
description: 'The line index in the diff to comment on (optional)',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { sha, body, path, position } = propsValue;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const commentData: Record<string, any> = {
|
||||
body,
|
||||
};
|
||||
|
||||
if (path) {
|
||||
commentData.path = path;
|
||||
}
|
||||
|
||||
if (position !== undefined) {
|
||||
commentData.position = position;
|
||||
}
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/commits/${sha}/comments`,
|
||||
body: commentData,
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,57 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubCreateDiscussionCommentAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'github_create_discussion_comment',
|
||||
displayName: 'Create Discussion Comment',
|
||||
description: 'Creates a comment on a discussion in a GitHub repository',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
discussion_number: Property.Number({
|
||||
displayName: 'Discussion Number',
|
||||
description: 'The number of the discussion to comment on',
|
||||
required: true,
|
||||
}),
|
||||
body: Property.LongText({
|
||||
displayName: 'Comment Body',
|
||||
description: 'The content of the comment (supports markdown)',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { discussion_number, body } = propsValue;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
// GitHub Discussions API requires GraphQL for most operations
|
||||
const query = `
|
||||
mutation AddDiscussionComment {
|
||||
addDiscussionComment(input: {
|
||||
discussionId: "${discussion_number}",
|
||||
repositoryName: "${repo}",
|
||||
repositoryOwner: "${owner}",
|
||||
body: "${body.replace(/"/g, '\\"')}"
|
||||
}) {
|
||||
comment {
|
||||
id
|
||||
body
|
||||
createdAt
|
||||
url
|
||||
}
|
||||
}
|
||||
}`;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: '/graphql',
|
||||
body: {
|
||||
query,
|
||||
},
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,52 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubCreateIssueAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'github_create_issue',
|
||||
displayName: 'Create Issue',
|
||||
description: 'Create Issue in GitHub Repository',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
title: Property.ShortText({
|
||||
displayName: 'Title',
|
||||
description: 'The title of the issue',
|
||||
required: true,
|
||||
}),
|
||||
description: Property.LongText({
|
||||
displayName: 'Description',
|
||||
description: 'The description of the issue',
|
||||
required: false,
|
||||
}),
|
||||
labels: githubCommon.labelDropDown(),
|
||||
assignees: githubCommon.assigneeDropDown(),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { title, assignees, labels, description } = propsValue;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const issueFields: Record<string, any> = {
|
||||
title,
|
||||
body: description,
|
||||
};
|
||||
|
||||
if (labels) {
|
||||
issueFields['labels'] = labels;
|
||||
}
|
||||
|
||||
if (assignees) {
|
||||
issueFields['assignees'] = assignees;
|
||||
}
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues`,
|
||||
body: issueFields,
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,59 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubCreatePullRequestReviewCommentAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'github_create_pull_request_review_comment',
|
||||
displayName: 'Create Pull Request Review Comment',
|
||||
description:
|
||||
'Creates a review comment on a pull request in a GitHub repository',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
pull_number: Property.Number({
|
||||
displayName: 'Pull Request Number',
|
||||
description: 'The number of the pull request',
|
||||
required: true,
|
||||
}),
|
||||
commit_id: Property.ShortText({
|
||||
displayName: 'Commit SHA',
|
||||
description: 'The SHA of the commit to comment on',
|
||||
required: true,
|
||||
}),
|
||||
path: Property.ShortText({
|
||||
displayName: 'File Path',
|
||||
description: 'The relative path to the file to comment on',
|
||||
required: true,
|
||||
}),
|
||||
body: Property.LongText({
|
||||
displayName: 'Comment Body',
|
||||
description: 'The content of the review comment',
|
||||
required: true,
|
||||
}),
|
||||
position: Property.Number({
|
||||
displayName: 'Position',
|
||||
description:
|
||||
'The position in the diff where the comment should be placed',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { pull_number, commit_id, path, body, position } = propsValue;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/pulls/${pull_number}/comments`,
|
||||
body: {
|
||||
commit_id,
|
||||
path,
|
||||
body,
|
||||
position,
|
||||
},
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
import { createAction } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubDeleteBranchAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'delete_branch',
|
||||
displayName: 'Delete Branch',
|
||||
description: 'Deletes a branch from a repository.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
branch: githubCommon.branchDropdown('Branch', '', true),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
const branchName = propsValue.branch;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
|
||||
resourceUri: `/repos/${owner}/${repo}/git/refs/heads/${branchName}`,
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,45 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpError, HttpMethod } from '@activepieces/pieces-common';
|
||||
import { HttpStatusCode } from 'axios';
|
||||
|
||||
export const githubFindBranchAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'find_branch',
|
||||
displayName: 'Find Branch',
|
||||
description: 'Finds a branch by name and returns its details.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
branch: Property.ShortText({
|
||||
displayName: 'Branch Name',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
const branchName = propsValue.branch;
|
||||
|
||||
try {
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/branches/${branchName}`,
|
||||
});
|
||||
|
||||
return {
|
||||
found: true,
|
||||
result: response.body,
|
||||
};
|
||||
} catch (e) {
|
||||
const status = (e as HttpError).response.status;
|
||||
if (status === HttpStatusCode.NotFound) {
|
||||
return {
|
||||
found: false,
|
||||
result: {},
|
||||
};
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,59 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon, RequestParams } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubFindIssueAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'find_issue',
|
||||
displayName: 'Find Issue',
|
||||
description: 'Finds an issue based title.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
title: Property.ShortText({
|
||||
displayName: 'Title',
|
||||
required: true,
|
||||
}),
|
||||
state: Property.StaticDropdown({
|
||||
displayName: 'State',
|
||||
description: 'Filter issues by their state.',
|
||||
required: true,
|
||||
options: {
|
||||
options: [
|
||||
{ label: 'Open', value: 'open' },
|
||||
{ label: 'Closed', value: 'closed' },
|
||||
{ label: 'All', value: 'all' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
const { state, title } = propsValue;
|
||||
const query: RequestParams = {};
|
||||
if (propsValue.state) query.state = propsValue.state;
|
||||
|
||||
let q = `repo:${owner}/${repo} is:issue in:title`;
|
||||
if (title) {
|
||||
q += ` "${title}"`;
|
||||
}
|
||||
if (state && state !== 'all') {
|
||||
q += ` state:${state}`;
|
||||
}
|
||||
|
||||
const response = await githubApiCall<{
|
||||
total_count: number;
|
||||
items: Array<{ id: number }>;
|
||||
}>({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/search/issues`,
|
||||
query: { q, per_page: 1 },
|
||||
});
|
||||
|
||||
return {
|
||||
found: response.body.total_count > 0,
|
||||
result: response.body.items,
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,44 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall } from '../common';
|
||||
import { HttpError, HttpMethod } from '@activepieces/pieces-common';
|
||||
import { HttpStatusCode } from 'axios';
|
||||
|
||||
export const githubFindUserAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'find_user',
|
||||
displayName: 'Find User',
|
||||
description: 'Finds a user by their login name.',
|
||||
props: {
|
||||
username: Property.ShortText({
|
||||
displayName: 'Username',
|
||||
description: 'The GitHub username (login) to look up.',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { username } = propsValue;
|
||||
|
||||
try {
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/users/${username}`,
|
||||
});
|
||||
|
||||
return {
|
||||
found: true,
|
||||
result: response.body,
|
||||
};
|
||||
} catch (e) {
|
||||
const status = (e as HttpError).response.status;
|
||||
if (status === HttpStatusCode.NotFound) {
|
||||
return {
|
||||
found: false,
|
||||
result: {},
|
||||
};
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,31 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubGetIssueInformation = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'getIssueInformation',
|
||||
displayName: 'Get issue information',
|
||||
description: 'Grabs information from a specific issue',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
issue_number: Property.Number({
|
||||
displayName: 'Issue Number',
|
||||
description: 'The number of the issue you want to get information from',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const issue_number = propsValue.issue_number;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}`,
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,54 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubLockIssueAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'lockIssue',
|
||||
displayName: 'Lock issue',
|
||||
description: 'Locks the specified issue',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
issue_number: Property.Number({
|
||||
displayName: 'Issue Number',
|
||||
description: 'The number of the issue to be locked',
|
||||
required: true,
|
||||
}),
|
||||
lock_reason: Property.Dropdown<
|
||||
'off-topic' | 'too heated' | 'resolved' | 'spam' | undefined,
|
||||
false,
|
||||
typeof githubAuth
|
||||
>({
|
||||
auth: githubAuth,
|
||||
displayName: 'Lock Reason',
|
||||
description: 'The reason for locking the issue',
|
||||
required: false,
|
||||
refreshers: [],
|
||||
options: async () => {
|
||||
return {
|
||||
options: [
|
||||
{ value: 'off-topic', label: 'Off-topic' },
|
||||
{ value: 'too heated', label: 'Too heated' },
|
||||
{ value: 'resolved', label: 'Resolved' },
|
||||
{ value: 'spam', label: 'Spam' },
|
||||
],
|
||||
};
|
||||
},
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { issue_number, lock_reason } = propsValue;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.PUT,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/lock`,
|
||||
body: {
|
||||
lock_reason,
|
||||
},
|
||||
});
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,35 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
|
||||
import { githubAuth } from '../..';
|
||||
import {
|
||||
AuthenticationType,
|
||||
httpClient,
|
||||
HttpMethod,
|
||||
} from '@activepieces/pieces-common';
|
||||
|
||||
export const githubRawGraphqlQuery = createAction({
|
||||
name: 'rawGraphqlQuery',
|
||||
displayName: 'Raw GraphQL query',
|
||||
description: 'Perform a raw GraphQL query',
|
||||
auth: githubAuth,
|
||||
props: {
|
||||
query: Property.LongText({ displayName: 'Query', required: true }),
|
||||
variables: Property.Object({ displayName: 'Parameters', required: false }),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const response = await httpClient.sendRequest({
|
||||
url: 'https://api.github.com/graphql',
|
||||
method: HttpMethod.POST,
|
||||
body: JSON.stringify({
|
||||
query: propsValue.query,
|
||||
variables: propsValue.variables,
|
||||
}),
|
||||
authentication: {
|
||||
type: AuthenticationType.BEARER_TOKEN,
|
||||
token: auth.access_token,
|
||||
},
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,31 @@
|
||||
import { githubAuth } from '../../index';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubUnlockIssueAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'unlockIssue',
|
||||
displayName: 'Unlock issue',
|
||||
description: 'Unlocks the specified issue',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
issue_number: Property.Number({
|
||||
displayName: 'Issue Number',
|
||||
description: 'The number of the issue to be unlocked',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { issue_number } = propsValue;
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/lock`,
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,75 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubUpdateIssueAction = createAction({
|
||||
auth: githubAuth,
|
||||
name: 'update_issue',
|
||||
displayName: 'Update Issue',
|
||||
description: 'Updates an existing issue.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
issue_number: githubCommon.issueDropdown(),
|
||||
title: Property.ShortText({
|
||||
displayName: 'Title',
|
||||
required: false,
|
||||
}),
|
||||
body: Property.LongText({
|
||||
displayName: 'Body',
|
||||
required: false,
|
||||
}),
|
||||
state: Property.StaticDropdown({
|
||||
displayName: 'State',
|
||||
description: 'The new state of the issue.',
|
||||
required: false,
|
||||
options: {
|
||||
options: [
|
||||
{ label: 'Open', value: 'open' },
|
||||
{ label: 'Closed', value: 'closed' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
state_reason: Property.StaticDropdown({
|
||||
displayName: 'State Reason',
|
||||
description:
|
||||
'The reason for the state change. (Only used if State is changed).',
|
||||
required: false,
|
||||
options: {
|
||||
options: [
|
||||
{ label: 'Completed', value: 'completed' },
|
||||
{ label: 'Not Planned', value: 'not_planned' },
|
||||
{ label: 'Reopened', value: 'reopened' },
|
||||
{ label: 'Duplicate', value: 'duplicate' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
milestone: githubCommon.milestoneDropdown(false),
|
||||
labels: githubCommon.labelDropDown(false),
|
||||
assignees: githubCommon.assigneeDropDown(false),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const { owner, repo } = propsValue.repository!;
|
||||
|
||||
const body: Record<string, unknown> = {};
|
||||
if (propsValue.title !== undefined) body.title = propsValue.title;
|
||||
if (propsValue.body !== undefined) body.body = propsValue.body;
|
||||
if (propsValue.state !== undefined) body.state = propsValue.state;
|
||||
if (propsValue.state_reason !== undefined)
|
||||
body.state_reason = propsValue.state_reason;
|
||||
if (propsValue.assignees !== undefined)
|
||||
body.assignees = propsValue.assignees;
|
||||
if (propsValue.labels !== undefined) body.labels = propsValue.labels;
|
||||
if (propsValue.milestone !== undefined)
|
||||
body.milestone = propsValue.milestone;
|
||||
|
||||
const response = await githubApiCall({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.PATCH,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues/${propsValue.issue_number}`,
|
||||
body: body,
|
||||
});
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,370 @@
|
||||
import {
|
||||
AuthenticationType,
|
||||
httpClient,
|
||||
HttpMessageBody,
|
||||
HttpMethod,
|
||||
HttpRequest,
|
||||
HttpResponse,
|
||||
QueryParams,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { Property, OAuth2PropertyValue } from '@activepieces/pieces-framework';
|
||||
import { isNil } from '@activepieces/shared';
|
||||
import { githubAuth } from '../..';
|
||||
|
||||
export const githubCommon = {
|
||||
baseUrl: 'https://api.github.com',
|
||||
repositoryDropdown: Property.Dropdown<
|
||||
{ repo: string; owner: string },
|
||||
true,
|
||||
typeof githubAuth
|
||||
>({
|
||||
displayName: 'Repository',
|
||||
refreshers: [],
|
||||
auth: githubAuth,
|
||||
required: true,
|
||||
options: async ({ auth }) => {
|
||||
if (!auth) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'please authenticate first',
|
||||
};
|
||||
}
|
||||
const authProp: OAuth2PropertyValue = auth as OAuth2PropertyValue;
|
||||
const repositories = await getUserRepo(authProp);
|
||||
return {
|
||||
disabled: false,
|
||||
options: repositories.map((repo) => {
|
||||
return {
|
||||
label: repo.owner.login + '/' + repo.name,
|
||||
value: {
|
||||
owner: repo.owner.login,
|
||||
repo: repo.name,
|
||||
},
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
}),
|
||||
milestoneDropdown: (required = false) =>
|
||||
Property.Dropdown({
|
||||
auth: githubAuth,
|
||||
displayName: 'Milestone',
|
||||
description: 'The milestone to associate this issue with.',
|
||||
required,
|
||||
refreshers: ['repository'],
|
||||
options: async ({ auth, repository }) => {
|
||||
if (!auth || !repository) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please select a repository first',
|
||||
};
|
||||
}
|
||||
const { owner, repo } = repository as RepositoryProp;
|
||||
const milestones = await githubPaginatedApiCall<{
|
||||
number: number;
|
||||
title: string;
|
||||
}>({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/milestones`,
|
||||
});
|
||||
return {
|
||||
disabled: false,
|
||||
options: milestones.map((milestone) => {
|
||||
return {
|
||||
label: milestone.title,
|
||||
value: milestone.number,
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
}),
|
||||
branchDropdown: (displayName: string, desc: string, required = true) =>
|
||||
Property.Dropdown({
|
||||
auth: githubAuth,
|
||||
displayName,
|
||||
description: desc,
|
||||
required,
|
||||
refreshers: ['repository'],
|
||||
options: async ({ auth, repository }) => {
|
||||
if (!auth || !repository) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please select a repository first',
|
||||
};
|
||||
}
|
||||
const { owner, repo } = repository as RepositoryProp;
|
||||
const branches = await githubPaginatedApiCall<{ name: string }>({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/branches`,
|
||||
});
|
||||
return {
|
||||
disabled: false,
|
||||
options: branches.map((branch) => {
|
||||
return {
|
||||
label: branch.name,
|
||||
value: branch.name,
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
}),
|
||||
|
||||
issueDropdown: (required = true) =>
|
||||
Property.Dropdown({
|
||||
auth: githubAuth,
|
||||
displayName: 'Issue',
|
||||
description: 'The issue to select.',
|
||||
required,
|
||||
refreshers: ['repository'],
|
||||
options: async ({ auth, repository }) => {
|
||||
if (!auth || !repository) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please select a repository first',
|
||||
};
|
||||
}
|
||||
const { owner, repo } = repository as RepositoryProp;
|
||||
// Fetch open issues from the repository
|
||||
const issues = await githubPaginatedApiCall<{
|
||||
number: number;
|
||||
title: string;
|
||||
pull_request?: Record<string, any>;
|
||||
}>({
|
||||
accessToken: auth.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/issues`,
|
||||
query: {
|
||||
state: 'open', // We will list open issues
|
||||
},
|
||||
});
|
||||
return {
|
||||
disabled: false,
|
||||
options: issues
|
||||
.filter((issue) => !issue.pull_request)
|
||||
.map((issue) => {
|
||||
return {
|
||||
label: `#${issue.number} - ${issue.title}`,
|
||||
value: issue.number,
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
}),
|
||||
|
||||
assigneeSingleDropdown: (required = false) =>
|
||||
Property.Dropdown({
|
||||
auth: githubAuth,
|
||||
displayName: 'Assignee',
|
||||
description: 'Filter issues by a specific assignee.',
|
||||
required,
|
||||
refreshers: ['repository'],
|
||||
options: async ({ auth, repository }) => {
|
||||
if (!auth || !repository) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'please authenticate first and select repo',
|
||||
};
|
||||
}
|
||||
const { owner, repo } = repository as RepositoryProp;
|
||||
const assignees = await getAssignee(auth, owner, repo);
|
||||
return {
|
||||
disabled: false,
|
||||
options: assignees.map((assignee) => {
|
||||
return {
|
||||
label: assignee.login,
|
||||
value: assignee.login,
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
}),
|
||||
|
||||
assigneeDropDown: (required = false) =>
|
||||
Property.MultiSelectDropdown({
|
||||
auth: githubAuth,
|
||||
displayName: 'Assignees',
|
||||
description: 'Assignees for the Issue',
|
||||
refreshers: ['repository'],
|
||||
|
||||
required,
|
||||
options: async ({ auth, repository }) => {
|
||||
if (!auth || !repository) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'please authenticate first and select repo',
|
||||
};
|
||||
}
|
||||
const authProp: OAuth2PropertyValue = auth;
|
||||
const { owner, repo } = repository as RepositoryProp;
|
||||
const assignees = await getAssignee(authProp, owner, repo);
|
||||
return {
|
||||
disabled: false,
|
||||
options: assignees.map((assignee) => {
|
||||
return {
|
||||
label: assignee.login,
|
||||
value: assignee.login,
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
}),
|
||||
labelDropDown: (required = false) =>
|
||||
Property.MultiSelectDropdown({
|
||||
auth: githubAuth,
|
||||
displayName: 'Labels',
|
||||
description: 'Labels for the Issue',
|
||||
refreshers: ['repository'],
|
||||
required,
|
||||
options: async ({ auth, repository }) => {
|
||||
if (!auth || !repository) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'please authenticate first and select repo',
|
||||
};
|
||||
}
|
||||
const authProp: OAuth2PropertyValue = auth as OAuth2PropertyValue;
|
||||
const { owner, repo } = repository as RepositoryProp;
|
||||
const labels = await listIssueLabels(authProp, owner, repo);
|
||||
return {
|
||||
disabled: false,
|
||||
options: labels.map((label) => {
|
||||
return {
|
||||
label: label.name,
|
||||
value: label.name,
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
async function getUserRepo(authProp: OAuth2PropertyValue) {
|
||||
const response = await githubPaginatedApiCall<{
|
||||
id: number;
|
||||
name: string;
|
||||
owner: { login: string };
|
||||
}>({
|
||||
accessToken: authProp.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: '/user/repos',
|
||||
});
|
||||
return response;
|
||||
}
|
||||
|
||||
async function getAssignee(
|
||||
authProp: OAuth2PropertyValue,
|
||||
owner: string,
|
||||
repo: string
|
||||
) {
|
||||
const response = await githubPaginatedApiCall<{ id: number; login: string }>({
|
||||
accessToken: authProp.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/assignees`,
|
||||
});
|
||||
return response;
|
||||
}
|
||||
|
||||
async function listIssueLabels(
|
||||
authProp: OAuth2PropertyValue,
|
||||
owner: string,
|
||||
repo: string
|
||||
) {
|
||||
const response = await githubPaginatedApiCall<{ id: number; name: string }>({
|
||||
accessToken: authProp.access_token,
|
||||
method: HttpMethod.GET,
|
||||
resourceUri: `/repos/${owner}/${repo}/labels`,
|
||||
});
|
||||
return response;
|
||||
}
|
||||
|
||||
export interface RepositoryProp {
|
||||
repo: string;
|
||||
owner: string;
|
||||
}
|
||||
|
||||
export type RequestParams = Record<
|
||||
string,
|
||||
string | number | string[] | undefined
|
||||
>;
|
||||
|
||||
export type GithubApiCallParams = {
|
||||
accessToken: string;
|
||||
method: HttpMethod;
|
||||
resourceUri: string;
|
||||
query?: RequestParams;
|
||||
body?: any;
|
||||
};
|
||||
|
||||
export async function githubApiCall<T extends HttpMessageBody>({
|
||||
accessToken,
|
||||
method,
|
||||
resourceUri,
|
||||
query,
|
||||
body,
|
||||
}: GithubApiCallParams): Promise<HttpResponse<T>> {
|
||||
const baseUrl = 'https://api.github.com';
|
||||
const qs: QueryParams = {};
|
||||
|
||||
if (query) {
|
||||
for (const [key, value] of Object.entries(query)) {
|
||||
if (value !== null && value !== undefined) {
|
||||
qs[key] = String(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const request: HttpRequest = {
|
||||
method,
|
||||
url: baseUrl + resourceUri,
|
||||
authentication: {
|
||||
type: AuthenticationType.BEARER_TOKEN,
|
||||
token: accessToken,
|
||||
},
|
||||
queryParams: qs,
|
||||
body,
|
||||
};
|
||||
|
||||
const response = await httpClient.sendRequest<T>(request);
|
||||
return response;
|
||||
}
|
||||
|
||||
export async function githubPaginatedApiCall<T extends HttpMessageBody>({
|
||||
accessToken,
|
||||
method,
|
||||
resourceUri,
|
||||
query,
|
||||
body,
|
||||
}: GithubApiCallParams): Promise<T[]> {
|
||||
const qs = query ? query : {};
|
||||
|
||||
qs.page = 1;
|
||||
qs.per_page = 100;
|
||||
|
||||
const resultData: T[] = [];
|
||||
let hasMoreItems = true;
|
||||
|
||||
do {
|
||||
const response = await githubApiCall<T[]>({
|
||||
accessToken,
|
||||
method,
|
||||
resourceUri,
|
||||
query: qs,
|
||||
body,
|
||||
});
|
||||
qs.page = qs.page + 1;
|
||||
resultData.push(...response.body);
|
||||
const linkHeader = response.headers?.link;
|
||||
hasMoreItems = !isNil(linkHeader) && linkHeader.includes(`rel="next"`);
|
||||
} while (hasMoreItems);
|
||||
|
||||
return resultData;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,81 @@
|
||||
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
interface WebhookInformation {
|
||||
webhookId: number;
|
||||
repo: string;
|
||||
owner: string;
|
||||
}
|
||||
|
||||
export const newBranchTrigger = createTrigger({
|
||||
auth: githubAuth,
|
||||
name: 'new_branch',
|
||||
displayName: 'New Branch',
|
||||
description: 'Triggers when a new branch is created.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
},
|
||||
sampleData: {
|
||||
ref: 'feature/new-design',
|
||||
ref_type: 'branch',
|
||||
master_branch: 'main',
|
||||
description: 'A repository for testing',
|
||||
pusher_type: 'user',
|
||||
repository: {
|
||||
full_name: 'activepieces/activepieces',
|
||||
},
|
||||
sender: {
|
||||
login: 'Logan',
|
||||
},
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
const { repo, owner } = context.propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall<{ id: number }>({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
||||
body: {
|
||||
name: 'web',
|
||||
active: true,
|
||||
events: ['create'],
|
||||
config: {
|
||||
url: context.webhookUrl,
|
||||
content_type: 'json',
|
||||
insecure_ssl: '0',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await context.store.put<WebhookInformation>('github_new_branch_trigger', {
|
||||
webhookId: response.body.id,
|
||||
repo: repo,
|
||||
owner: owner,
|
||||
});
|
||||
},
|
||||
async onDisable(context) {
|
||||
const webhook = await context.store.get<WebhookInformation>(
|
||||
'github_new_branch_trigger'
|
||||
);
|
||||
|
||||
if (webhook !== null && webhook !== undefined) {
|
||||
await githubApiCall({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
async run(context) {
|
||||
const payloadBody = context.payload.body as { ref_type?: string };
|
||||
|
||||
if (payloadBody.ref_type === 'branch') {
|
||||
return [context.payload.body];
|
||||
}
|
||||
|
||||
return [];
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,90 @@
|
||||
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
interface WebhookInformation {
|
||||
webhookId: number;
|
||||
repo: string;
|
||||
owner: string;
|
||||
}
|
||||
|
||||
export const newCollaboratorTrigger = createTrigger({
|
||||
auth: githubAuth,
|
||||
name: 'new_collaborator',
|
||||
displayName: 'New Collaborator',
|
||||
description: 'Triggers when a new collaborator is added to a repository.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
},
|
||||
sampleData: {
|
||||
action: 'added',
|
||||
member: {
|
||||
login: 'octocat',
|
||||
id: 1,
|
||||
node_id: 'MDQ6VXNlcjE=',
|
||||
avatar_url: 'https://github.com/images/error/octocat_happy.gif',
|
||||
gravatar_id: '',
|
||||
url: 'https://api.github.com/users/octocat',
|
||||
html_url: 'https://github.com/octocat',
|
||||
type: 'User',
|
||||
site_admin: false,
|
||||
},
|
||||
repository: {
|
||||
full_name: 'octocat/Hello-World',
|
||||
},
|
||||
sender: {
|
||||
login: 'admin-user',
|
||||
},
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
const { repo, owner } = context.propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall<{ id: number }>({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
||||
body: {
|
||||
name: 'web',
|
||||
active: true,
|
||||
events: ['member'],
|
||||
config: {
|
||||
url: context.webhookUrl,
|
||||
content_type: 'json',
|
||||
insecure_ssl: '0',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await context.store.put<WebhookInformation>(
|
||||
'github_new_collaborator_trigger',
|
||||
{
|
||||
webhookId: response.body.id,
|
||||
repo: repo,
|
||||
owner: owner,
|
||||
}
|
||||
);
|
||||
},
|
||||
async onDisable(context) {
|
||||
const webhook = await context.store.get<WebhookInformation>(
|
||||
'github_new_collaborator_trigger'
|
||||
);
|
||||
if (webhook !== null && webhook !== undefined) {
|
||||
await githubApiCall({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
async run(context) {
|
||||
const payload = context.payload.body as { action?: string };
|
||||
|
||||
if (payload.action === 'added') {
|
||||
return [context.payload.body];
|
||||
}
|
||||
|
||||
return [];
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,85 @@
|
||||
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
interface WebhookInformation {
|
||||
webhookId: number;
|
||||
repo: string;
|
||||
owner: string;
|
||||
}
|
||||
|
||||
export const newLabelTrigger = createTrigger({
|
||||
auth: githubAuth,
|
||||
name: 'new_label',
|
||||
displayName: 'New Label',
|
||||
description: 'Triggers when a new label is created in a repository.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
},
|
||||
sampleData: {
|
||||
action: 'created',
|
||||
label: {
|
||||
id: 4858888116,
|
||||
node_id: 'LA_kwDOAnG2fM7ma3_Q',
|
||||
url: 'https://api.github.com/repos/octocat/Hello-World/labels/new-label',
|
||||
name: 'new-label',
|
||||
color: 'f29513',
|
||||
default: false,
|
||||
description: 'A new label for issues',
|
||||
},
|
||||
repository: {
|
||||
full_name: 'octocat/Hello-World',
|
||||
},
|
||||
sender: {
|
||||
login: 'octocat',
|
||||
},
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
const { repo, owner } = context.propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall<{ id: number }>({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
||||
body: {
|
||||
name: 'web',
|
||||
active: true,
|
||||
events: ['label'],
|
||||
config: {
|
||||
url: context.webhookUrl,
|
||||
content_type: 'json',
|
||||
insecure_ssl: '0',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await context.store.put<WebhookInformation>('github_new_label_trigger', {
|
||||
webhookId: response.body.id,
|
||||
repo: repo,
|
||||
owner: owner,
|
||||
});
|
||||
},
|
||||
async onDisable(context) {
|
||||
const webhook = await context.store.get<WebhookInformation>(
|
||||
'github_new_label_trigger'
|
||||
);
|
||||
if (webhook !== null && webhook !== undefined) {
|
||||
await githubApiCall({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
async run(context) {
|
||||
const payload = context.payload.body as { action?: string };
|
||||
|
||||
if (payload.action === 'created') {
|
||||
return [context.payload.body];
|
||||
}
|
||||
|
||||
return [];
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,91 @@
|
||||
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
interface WebhookInformation {
|
||||
webhookId: number;
|
||||
repo: string;
|
||||
owner: string;
|
||||
}
|
||||
|
||||
export const newMilestoneTrigger = createTrigger({
|
||||
auth: githubAuth,
|
||||
name: 'new_milestone',
|
||||
displayName: 'New Milestone',
|
||||
description: 'Triggers when a new milestone is created.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
},
|
||||
sampleData: {
|
||||
action: 'created',
|
||||
milestone: {
|
||||
url: 'https://api.github.com/repos/octocat/Hello-World/milestones/1',
|
||||
html_url: 'https://github.com/octocat/Hello-World/milestones/v1.0',
|
||||
id: 1002604,
|
||||
number: 1,
|
||||
title: 'v1.0',
|
||||
description: 'Tracking milestone for version 1.0',
|
||||
creator: { login: 'octocat' },
|
||||
open_issues: 0,
|
||||
closed_issues: 0,
|
||||
state: 'open',
|
||||
created_at: '2011-04-10T20:09:31Z',
|
||||
updated_at: '2011-04-10T20:09:31Z',
|
||||
due_on: '2012-10-09T23:39:01Z',
|
||||
closed_at: null,
|
||||
},
|
||||
repository: { full_name: 'octocat/Hello-World' },
|
||||
sender: { login: 'octocat' },
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
const { repo, owner } = context.propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall<{ id: number }>({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
||||
body: {
|
||||
name: 'web',
|
||||
active: true,
|
||||
events: ['milestone'],
|
||||
config: {
|
||||
url: context.webhookUrl,
|
||||
content_type: 'json',
|
||||
insecure_ssl: '0',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await context.store.put<WebhookInformation>(
|
||||
'github_new_milestone_trigger',
|
||||
{
|
||||
webhookId: response.body.id,
|
||||
repo: repo,
|
||||
owner: owner,
|
||||
}
|
||||
);
|
||||
},
|
||||
async onDisable(context) {
|
||||
const webhook = await context.store.get<WebhookInformation>(
|
||||
'github_new_milestone_trigger'
|
||||
);
|
||||
if (webhook !== null && webhook !== undefined) {
|
||||
await githubApiCall({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
async run(context) {
|
||||
const payload = context.payload.body as { action?: string };
|
||||
|
||||
if (payload.action === 'created') {
|
||||
return [context.payload.body];
|
||||
}
|
||||
|
||||
return [];
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,84 @@
|
||||
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
|
||||
import { githubAuth } from '../../index';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
interface WebhookInformation {
|
||||
webhookId: number;
|
||||
repo: string;
|
||||
owner: string;
|
||||
}
|
||||
|
||||
export const newReleaseTrigger = createTrigger({
|
||||
auth: githubAuth,
|
||||
name: 'new_release',
|
||||
displayName: 'New Release',
|
||||
description: 'Triggers when a new release is added.',
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
},
|
||||
sampleData: {
|
||||
action: 'published',
|
||||
release: {
|
||||
url: 'https://api.github.com/repos/octocat/Hello-World/releases/1',
|
||||
html_url: 'https://github.com/octocat/Hello-World/releases/v1.0.0',
|
||||
id: 1,
|
||||
tag_name: 'v1.0.0',
|
||||
target_commitish: 'master',
|
||||
name: 'v1.0.0',
|
||||
body: 'Description of the release',
|
||||
draft: false,
|
||||
prerelease: false,
|
||||
author: { login: 'octocat' },
|
||||
},
|
||||
repository: { full_name: 'octocat/Hello-World' },
|
||||
sender: { login: 'octocat' },
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
const { repo, owner } = context.propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall<{ id: number }>({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
||||
body: {
|
||||
name: 'web',
|
||||
active: true,
|
||||
events: ['release'],
|
||||
config: {
|
||||
url: context.webhookUrl,
|
||||
content_type: 'json',
|
||||
insecure_ssl: '0',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await context.store.put<WebhookInformation>('github_new_release_trigger', {
|
||||
webhookId: response.body.id,
|
||||
repo: repo,
|
||||
owner: owner,
|
||||
});
|
||||
},
|
||||
async onDisable(context) {
|
||||
const webhook = await context.store.get<WebhookInformation>(
|
||||
'github_new_release_trigger'
|
||||
);
|
||||
if (webhook !== null && webhook !== undefined) {
|
||||
await githubApiCall({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
async run(context) {
|
||||
const payload = context.payload.body as { action?: string };
|
||||
|
||||
if (payload.action === 'created') {
|
||||
return [context.payload.body];
|
||||
}
|
||||
|
||||
return [];
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,82 @@
|
||||
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
|
||||
import { githubApiCall, githubCommon } from '../common';
|
||||
import { githubAuth } from '../../';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const githubRegisterTrigger = ({
|
||||
name,
|
||||
displayName,
|
||||
description,
|
||||
sampleData,
|
||||
}: {
|
||||
name: string;
|
||||
displayName: string;
|
||||
description: string;
|
||||
sampleData: object;
|
||||
}) =>
|
||||
createTrigger({
|
||||
auth: githubAuth,
|
||||
name: `trigger_${name}`,
|
||||
displayName,
|
||||
description,
|
||||
props: {
|
||||
repository: githubCommon.repositoryDropdown,
|
||||
},
|
||||
sampleData,
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
const { repo, owner } = context.propsValue.repository!;
|
||||
|
||||
const response = await githubApiCall<{ id: number }>({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.POST,
|
||||
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
||||
body: {
|
||||
name: 'web',
|
||||
active: true,
|
||||
events: [name],
|
||||
config: {
|
||||
url: context.webhookUrl,
|
||||
content_type: 'json',
|
||||
insecure_ssl: '0',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await context.store.put<WebhookInformation>(`github_${name}_trigger`, {
|
||||
webhookId: response.body.id,
|
||||
owner: owner,
|
||||
repo: repo,
|
||||
});
|
||||
},
|
||||
async onDisable(context) {
|
||||
const response = await context.store.get<WebhookInformation>(
|
||||
`github_${name}_trigger`
|
||||
);
|
||||
if (response !== null && response !== undefined) {
|
||||
await githubApiCall({
|
||||
accessToken: context.auth.access_token,
|
||||
method: HttpMethod.DELETE,
|
||||
resourceUri: `/repos/${response.owner}/${response.repo}/hooks/${response.webhookId}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
async run(context) {
|
||||
console.debug('payload received', context.payload.body);
|
||||
|
||||
if (isVerificationCall(context.payload.body as Record<string, unknown>)) {
|
||||
return [];
|
||||
}
|
||||
return [context.payload.body];
|
||||
},
|
||||
});
|
||||
|
||||
function isVerificationCall(payload: Record<string, any>) {
|
||||
return payload['zen'] !== undefined;
|
||||
}
|
||||
|
||||
interface WebhookInformation {
|
||||
webhookId: number;
|
||||
repo: string;
|
||||
owner: string;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user