thunderbird-patch-review
Easy-to-use patch review interface for Thunderbird
Contribute: ~marcc/thunderbird-review-plugin@lists.sr.ht
git clone git://mccd.space/thunderbird-patch-review
| Log | Files | Refs | README | LICENSE |
schema.json (2379B)
1 [
2 {
3 "namespace": "patchHost",
4 "description": "Privileged helper behind Apply series, Browse... and Open editor: runs git am, shows a native directory chooser, and launches the editor.",
5 "functions": [
6 {
7 "name": "ping",
8 "type": "function",
9 "async": true,
10 "description": "Report whether git is reachable; resolves to {ok, git, version}.",
11 "parameters": []
12 },
13 {
14 "name": "describe",
15 "type": "function",
16 "async": true,
17 "description": "Resolve a path to its repository name and current branch; resolves to {ok, repo, name, branch} or {ok:false, error}.",
18 "parameters": [
19 { "name": "repo", "type": "string" }
20 ]
21 },
22 {
23 "name": "apply",
24 "type": "function",
25 "async": true,
26 "description": "Run git am on the raw patch messages in the given repository; resolves to {ok, output}.",
27 "parameters": [
28 { "name": "repo", "type": "string" },
29 {
30 "name": "strategy",
31 "type": "string",
32 "description": "\"am3\" for git am --3way (the default), \"am\" for plain git am."
33 },
34 {
35 "name": "patches",
36 "type": "array",
37 "items": { "type": "string" },
38 "description": "Raw RFC822 patch messages, in series order."
39 }
40 ]
41 },
42 {
43 "name": "pickDir",
44 "type": "function",
45 "async": true,
46 "description": "Open a native directory chooser; resolves to {ok, output} or {ok, cancelled}.",
47 "parameters": [
48 {
49 "name": "start",
50 "type": "string",
51 "description": "Directory the chooser starts in; may be empty."
52 }
53 ]
54 },
55 {
56 "name": "openEditor",
57 "type": "function",
58 "async": true,
59 "description": "Launch the editor command from the repository with the given files as arguments.",
60 "parameters": [
61 { "name": "repo", "type": "string" },
62 {
63 "name": "editor",
64 "type": "string",
65 "description": "Shell command line; empty means $EDITOR, then a platform opener on the repository."
66 },
67 { "name": "files", "type": "array", "items": { "type": "string" } }
68 ]
69 }
70 ]
71 }
72 ]