-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
245 lines (245 loc) · 8.28 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
"name": "semaphoreci",
"displayName": "Semaphore CI (unofficial)",
"description": "Interact with Semaphore CI",
"publisher": "fptje",
"repository": {
"type": "git",
"url": "https://github.com/FPtje/vscode-semaphore-ci"
},
"version": "0.6.1",
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:semaphore-ci.setApiKey",
"onView:semaphore-ci-current-branch"
],
"main": "./out/extension.js",
"icon": "images/logo/icon.png",
"contributes": {
"commands": [
{
"command": "semaphore-ci.setApiKey",
"title": "Semaphore CI: Set API Key"
},
{
"command": "semaphore-ci.openLogs",
"title": "Open logs",
"icon": {
"light": "resources/light/open-logs.svg",
"dark": "resources/dark/open-logs.svg"
}
},
{
"command": "semaphore-ci.stopJob",
"title": "Stop job",
"icon": {
"light": "resources/light/stop.svg",
"dark": "resources/dark/stop.svg"
}
},
{
"command": "semaphore-ci.pickBranch",
"title": "Switch branch",
"icon": {
"light": "resources/light/branch.svg",
"dark": "resources/dark/branch.svg"
}
},
{
"command": "semaphore-ci.rerunWorkflow",
"title": "Rerun",
"icon": {
"light": "resources/light/restart.svg",
"dark": "resources/dark/restart.svg"
}
},
{
"command": "semaphore-ci.refreshBranchTree",
"title": "Refresh",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "semaphore-ci.refreshTagsTree",
"title": "Refresh",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
}
],
"configuration": {
"title": "Semaphore CI",
"properties": {
"semaphore-ci.organisations": {
"markdownDescription": "The list of organisations your Semaphore CI account has access to. To find this, open [me.semaphoreci.com](https://me.semaphoreci.com). The organisations will be shown in the URLs. For example, if you have an organisation `foo.semaphoreci.com`, the organisation name will be `foo`.",
"type": "array",
"items": {
"type": "string"
},
"order": 0
},
"semaphore-ci.autorefreshDelay": {
"markdownDescription": "Controls the time between the automatic refreshes in milliseconds. Set to 0 to disable.",
"type": "number",
"minimum": 0,
"default": 5000,
"order": 1
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "semaphore-ci",
"title": "Semaphore CI",
"icon": "resources/semaphoreci.svg"
}
]
},
"views": {
"semaphore-ci": [
{
"id": "semaphore-ci-current-branch",
"name": "Current branch"
},
{
"id": "semaphore-ci-tags",
"name": "Tags"
}
]
},
"viewsWelcome": [
{
"view": "semaphore-ci-current-branch",
"contents": "Get started with Semaphore CI by configuring your API key and connected organisations.\nYour API key can be found at [https://me.semaphoreci.com/account](https://me.semaphoreci.com/account).\n[Set API Key](command:semaphore-ci.setApiKey)\nSee the settings for instructions on finding the organisations:\n[Open settings](command:workbench.action.openSettings?%5B%22semaphoreci%22%5D)\nOnce the API Key and organisations are set, you can press the Refresh key at the top to refresh the view.",
"when": "semaphore-ci.initialized && !semaphore-ci.apiKeySet && config.semaphore-ci.organisations == []"
},
{
"view": "semaphore-ci-current-branch",
"contents": "Get started with Semaphore CI by configuring your API key.\nYour API key can be found at [https://me.semaphoreci.com/account](https://me.semaphoreci.com/account).\n[Set API Key](command:semaphore-ci.setApiKey)\nOnce the API Key and organisations are set, you can press the Refresh key at the top to refresh the view.",
"when": "semaphore-ci.initialized && !semaphore-ci.apiKeySet && config.semaphore-ci.organisations != []"
},
{
"view": "semaphore-ci-current-branch",
"contents": "Get started with Semaphore CI by configuring your connected organisations.\nSee the settings for instructions on finding the organisations:\n[Open settings](command:workbench.action.openSettings?%5B%22semaphoreci%22%5D)\nOnce the API Key and organisations are set, you can press the Refresh key at the top to refresh the view.",
"when": "semaphore-ci.initialized && semaphore-ci.apiKeySet && config.semaphore-ci.organisations == []"
},
{
"view": "semaphore-ci-current-branch",
"contents": "The API key is set, but requests to semaphore return a HTTP/401 error, implying that the API key is either incorrect or does not have access to one or more of the configured organisations. Please do the following:\nReconfigure the API key:\n[Reconfigure API Key](command:semaphore-ci.setApiKey)\nVerify that all organisations in your settings are organisations that you have access to with the given API key:\n[Examine organisation settings](command:workbench.action.openSettings?%5B%22semaphoreci%22%5D)",
"when": "semaphore-ci.initialized && semaphore-ci.apiKeyIncorrect && semaphore-ci.apiKeySet"
},
{
"view": "semaphore-ci-current-branch",
"contents": "You have not yet opened a folder. Please open a folder in the Explorer view.",
"when": "semaphore-ci.initialized && semaphore-ci.apiKeySet && config.semaphore-ci.organisations != [] && workspaceFolderCount == 0"
}
],
"menus": {
"view/title": [
{
"command": "semaphore-ci.refreshBranchTree",
"when": "view == semaphore-ci-current-branch",
"group": "navigation"
},
{
"command": "semaphore-ci.refreshTagsTree",
"when": "view == semaphore-ci-tags",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "semaphore-ci.pickBranch",
"when": "view == semaphore-ci-current-branch && viewItem == semaphoreWorkspaceDirectory",
"group": "inline"
},
{
"command": "semaphore-ci.stopJob",
"when": "view == semaphore-ci-current-branch && viewItem == semaphoreJobRunning",
"group": "inline"
},
{
"command": "semaphore-ci.openLogs",
"when": "view == semaphore-ci-current-branch && viewItem == semaphoreJob",
"group": "inline"
},
{
"command": "semaphore-ci.openLogs",
"when": "view == semaphore-ci-current-branch && viewItem == semaphoreJobRunning",
"group": "inline"
},
{
"command": "semaphore-ci.rerunWorkflow",
"when": "view == semaphore-ci-current-branch && viewItem == semaphorePipeline",
"group": "inline"
},
{
"command": "semaphore-ci.stopJob",
"when": "view == semaphore-ci-tags && viewItem == semaphoreJobRunning",
"group": "inline"
},
{
"command": "semaphore-ci.openLogs",
"when": "view == semaphore-ci-tags && viewItem == semaphoreJob",
"group": "inline"
},
{
"command": "semaphore-ci.openLogs",
"when": "view == semaphore-ci-tags && viewItem == semaphoreJobRunning",
"group": "inline"
},
{
"command": "semaphore-ci.rerunWorkflow",
"when": "view == semaphore-ci-tags && viewItem == semaphorePipeline",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "14.x",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"@vscode/test-electron": "^2.1.3",
"@vscode/vsce": "^2.15.0",
"esbuild": "^0.14.43",
"eslint": "^8.14.0",
"glob": "^8.0.1",
"mocha": "^9.2.2",
"typescript": "^4.6.4"
},
"dependencies": {
"@types/uuid": "^8.3.4",
"axios": "^1.7.7",
"env-paths-ts": "^1.0.1",
"format-duration": "^2.0.0",
"fs-extra": "^10.1.0",
"simple-git": ">=3.16.0",
"uuid": "^8.3.2"
}
}