Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/validators/.thresholds.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"output-port-examples": 10122
"output-port-examples": 9839
}
Binary file added src/appmixer/appmixer.github.zip
Binary file not shown.
Binary file added src/appmixer/github/appmixer.github.zip
Binary file not shown.
7 changes: 6 additions & 1 deletion src/appmixer/github/bundle.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appmixer.github",
"version": "2.1.2",
"version": "2.2.0",
"changelog": {
"1.0.3": [
"Removed 'None' empty string value from ListAssignees, ListLabels and ListMilestones."
Expand All @@ -19,6 +19,11 @@
],
"2.1.2": [
"Added output examples to component schemas."
],
"2.2.0": [
"Changed repositoryId input from dynamic select to free-text in all 30 components, allowing users to enter any repository in owner/repo format.",
"Added NewAssignedIssue trigger: fires when a new issue is assigned to the authenticated user (optionally scoped to a repository).",
"Added NewMention trigger: fires when the authenticated user is mentioned in an issue, PR, or comment."
]
}
}
2 changes: 1 addition & 1 deletion src/appmixer/github/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
url,
headers: {
'accept': 'application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28',
'X-GitHub-Api-Version': '2026-03-10',
'Authorization': `Bearer ${context.accessToken || context.auth?.accessToken}`
},
data: body,
Expand Down
74 changes: 61 additions & 13 deletions src/appmixer/github/list/CreateComment/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@
"schema": {
"type": "object",
"properties": {
"repositoryId": { "type": "string" },
"issue": { "type": "string" },
"body": { "type": "string" }
"repositoryId": {
"type": "string"
},
"issue": {
"type": "string"
},
"body": {
"type": "string"
}
},
"required": [
"repositoryId",
Expand All @@ -39,17 +45,17 @@
"inspector": {
"inputs": {
"repositoryId": {
"type": "select",
"type": "text",
"group": "transformation",
"label": "Repository",
"index": 1,
"tooltip": "Enter the repository in `owner/repo` format (e.g. `Appmixer-ai/apmmixer-connectors`). You can also pick from the dynamically loaded list of your repositories.",
"source": {
"url": "/component/appmixer/github/list/ListRepos?outPort=repositories",
"data": {
"transform": "./transformers#reposToSelectArray"
}
},
"tooltip": "Select a repository."
}
},
"issue": {
"type": "select",
Expand All @@ -73,7 +79,7 @@
"tooltip": "Body of Comment.",
"label": "Body",
"index": 3
}
}
},
"groups": {
"transformation": {
Expand All @@ -88,12 +94,54 @@
{
"name": "out",
"options": [
{ "label": "ID", "value": "id" },
{ "label": "URL", "value": "url"},
{ "label": "Body", "value": "body" },
{ "label": "Created At", "value": "created_at" },
{ "label": "User ID", "value": "user.id" },
{ "label": "User Login", "value": "user.login" }
{
"label": "ID",
"value": "id",
"schema": {
"type": "integer",
"example": 1234567890
}
},
{
"label": "URL",
"value": "url",
"schema": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1"
}
},
{
"label": "Body",
"value": "body",
"schema": {
"type": "string",
"example": "I'm having a problem with this."
}
},
{
"label": "Created At",
"value": "created_at",
"schema": {
"type": "string",
"example": "2024-01-15T10:30:00Z"
}
},
{
"label": "User ID",
"value": "user.id",
"schema": {
"type": "integer",
"example": 583231
}
},
{
"label": "User Login",
"value": "user.login",
"schema": {
"type": "string",
"example": "octocat"
}
}
]
}
]
Expand Down
209 changes: 179 additions & 30 deletions src/appmixer/github/list/CreateIssue/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,27 @@
"schema": {
"type": "object",
"properties": {
"title": { "type": "string" },
"body": { "type": "string" },
"assignees": { "type": ["array", "string"] },
"labels": { "type": ["array", "string"] },
"milestone": { "type": "string" }
"title": {
"type": "string"
},
"body": {
"type": "string"
},
"assignees": {
"type": [
"array",
"string"
]
},
"labels": {
"type": [
"array",
"string"
]
},
"milestone": {
"type": "string"
}
},
"required": [
"title"
Expand Down Expand Up @@ -101,7 +117,7 @@
}
},
"tooltip": "Select a milestone."
}
}
},
"groups": {
"transformation": {
Expand All @@ -116,34 +132,167 @@
{
"name": "newIssue",
"options": [
{ "label": "ID", "value": "id" },
{ "label": "Milestone", "value": "milestone" },
{ "label": "HTML URL", "value": "html_url" },
{ "label": "URL", "value": "url"},
{ "label": "Title", "value": "title" },
{ "label": "Body", "value": "body" },
{ "label": "State", "value": "state" },
{ "label": "Number", "value": "number" },
{ "label": "Created At", "value": "created_at" },
{ "label": "Closed At", "value": "closed_at" },
{ "label": "Repository URL", "value": "repository_url" },
{ "label": "Assignee ID", "value": "assignee.id" },
{ "label": "Assignee Login", "value": "assignee.login" },
{ "label": "Assignee Type", "value": "assignee.type" },
{ "label": "Assignee HTML URL", "value": "assignee.html_url" },
{ "label": "User ID", "value": "user.id" },
{ "label": "User Login", "value": "user.login" },
{ "label": "User Type", "value": "user.type" },
{ "label": "User HTML URL", "value": "user.html_url" }
{
"label": "ID",
"value": "id",
"schema": {
"type": "integer",
"example": 1234567890
}
},
{
"label": "Milestone",
"value": "milestone",
"schema": {
"type": "string",
"example": "v1.0"
}
},
{
"label": "HTML URL",
"value": "html_url",
"schema": {
"type": "string",
"example": "https://github.com/octocat/Hello-World/issues/1"
}
},
{
"label": "URL",
"value": "url",
"schema": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1"
}
},
{
"label": "Title",
"value": "title",
"schema": {
"type": "string",
"example": "Found a bug"
}
},
{
"label": "Body",
"value": "body",
"schema": {
"type": "string",
"example": "I'm having a problem with this."
}
},
{
"label": "State",
"value": "state",
"schema": {
"type": "string",
"example": "open"
}
},
{
"label": "Number",
"value": "number",
"schema": {
"type": "integer",
"example": 42
}
},
{
"label": "Created At",
"value": "created_at",
"schema": {
"type": "string",
"example": "2024-01-15T10:30:00Z"
}
},
{
"label": "Closed At",
"value": "closed_at",
"schema": {
"type": "string",
"example": "2024-01-16T08:00:00Z"
}
},
{
"label": "Repository URL",
"value": "repository_url",
"schema": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World"
}
},
{
"label": "Assignee ID",
"value": "assignee.id",
"schema": {
"type": "integer",
"example": 583231
}
},
{
"label": "Assignee Login",
"value": "assignee.login",
"schema": {
"type": "string",
"example": "octocat"
}
},
{
"label": "Assignee Type",
"value": "assignee.type",
"schema": {
"type": "string",
"example": "User"
}
},
{
"label": "Assignee HTML URL",
"value": "assignee.html_url",
"schema": {
"type": "string",
"example": "https://github.com/octocat"
}
},
{
"label": "User ID",
"value": "user.id",
"schema": {
"type": "integer",
"example": 583231
}
},
{
"label": "User Login",
"value": "user.login",
"schema": {
"type": "string",
"example": "octocat"
}
},
{
"label": "User Type",
"value": "user.type",
"schema": {
"type": "string",
"example": "User"
}
},
{
"label": "User HTML URL",
"value": "user.html_url",
"schema": {
"type": "string",
"example": "https://github.com/octocat"
}
}
]
}
],
],
"properties": {
"schema": {
"properties": {
"repositoryId": {
"type": "string",
"pattern": "[^\/]+[\/][^\/]+"
"pattern": "[^/]+[/][^/]+"
}
},
"required": [
Expand All @@ -153,17 +302,17 @@
"inspector": {
"inputs": {
"repositoryId": {
"type": "select",
"type": "text",
"group": "config",
"label": "Repository",
"index": 1,
"tooltip": "Enter the repository in `owner/repo` format (e.g. `Appmixer-ai/apmmixer-connectors`). You can also pick from the dynamically loaded list of your repositories.",
"source": {
"url": "/component/appmixer/github/list/ListRepos?outPort=repositories",
"data": {
"transform": "./transformers#reposToSelectArray"
}
},
"tooltip": "Select a repository."
}
}
},
"groups": {
Expand Down
Loading
Loading