Skip to content
Merged
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 backend/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var branchTaskRefRe = regexp.MustCompile(`(?i)\b([A-Z][A-Z0-9]{1,19})-(\d{1,6})\

func (p *githubPlugin) receiveWebhook(req *plugin.Request, res *plugin.Response) {
// projectId comes from the URL the integration registered with GitHub
// (.../projects/:projectId/webhook) — this route has no requirePermissions
// (.../projects/:projectId/webhook) — this route has no requireActions
// middleware (GitHub itself calls it, with no Paca auth), so
// req.Caller.ProjectID is never populated here; the path segment is the
// only source of truth for which project this delivery is for.
Expand Down
84 changes: 42 additions & 42 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"id": "com.paca.github",
"displayName": "GitHub Integration",
"description": "Integrates GitHub repositories, pull requests, and branches with Paca projects and tasks.",
"version": "0.4.0",
"minCoreVersion": "v0.13.3",
"version": "0.4.1",
"minCoreVersion": "v0.19.0",
"capabilities": ["repository"],
"permissions": ["db.read", "db.write"],
"customPermissions": [
{
"key": "github.manage",
"key": "github:manage",
"label": "Manage GitHub integration",
"description": "View and manage this project's GitHub integration: connect or disconnect the access token, and link or unlink repositories. Does not affect PR/branch info on individual tasks, which any project member with task access can already see.",
"scope": "project"
Expand All @@ -29,9 +29,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -42,9 +42,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -55,9 +55,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -68,9 +68,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -81,9 +81,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -94,9 +94,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -107,9 +107,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -120,9 +120,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["github.manage"]
"actions": ["github:manage"]
}
]
},
Expand All @@ -133,9 +133,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.read"]
"actions": ["tasks:read"]
}
]
},
Expand All @@ -146,9 +146,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.write"]
"actions": ["tasks:write"]
}
]
},
Expand All @@ -159,9 +159,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.write"]
"actions": ["tasks:write"]
}
]
},
Expand All @@ -172,9 +172,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.write"]
"actions": ["tasks:write"]
}
]
},
Expand All @@ -185,9 +185,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.read"]
"actions": ["tasks:read"]
}
]
},
Expand All @@ -198,9 +198,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.read"]
"actions": ["tasks:read"]
}
]
},
Expand All @@ -211,9 +211,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.write"]
"actions": ["tasks:write"]
}
]
},
Expand All @@ -224,9 +224,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.write"]
"actions": ["tasks:write"]
}
]
},
Expand All @@ -237,9 +237,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.read"]
"actions": ["tasks:read"]
}
]
},
Expand All @@ -250,9 +250,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.write"]
"actions": ["tasks:write"]
}
]
},
Expand All @@ -263,9 +263,9 @@
{ "name": "optionalAuthn" },
{ "name": "requireFreshPassword" },
{
"name": "requirePermissions",
"name": "requireActions",
"scope": "project",
"permissions": ["tasks.write"]
"actions": ["tasks:write"]
}
]
},
Expand All @@ -284,7 +284,7 @@
"component": "GitHubSettingsTab",
"label": "GitHub",
"order": 100,
"requiredPermission": "github.manage"
"requiredPermission": "github:manage"
},
{
"point": "task.detail.section",
Expand Down
Loading