@insignia-education/api-sdk-js 0.16.12 → 0.16.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/v1/Admin.js +11 -0
package/package.json
CHANGED
package/src/api/v1/Admin.js
CHANGED
|
@@ -150,6 +150,17 @@ export default class Admin {
|
|
|
150
150
|
return `${this.#client.baseUrl}/admin/coverage/${repo}/`;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Recent GitHub Actions workflow runs for 'api' and 'front' (the only repos
|
|
155
|
+
* GithubActionsService covers), newest first, `{ limit }` each (default 20, max 50).
|
|
156
|
+
* Resolves `{ available: false }` (not an error) if the server has no GitHub token
|
|
157
|
+
* configured, per repo — check `repos.api.available` / `repos.front.available`
|
|
158
|
+
* separately rather than assuming both are up together.
|
|
159
|
+
*/
|
|
160
|
+
actionsStatus({ limit } = {}) {
|
|
161
|
+
return this.#client.get('/admin/actions/status', { limit });
|
|
162
|
+
}
|
|
163
|
+
|
|
153
164
|
static #buildUrl(baseUrl, path, params) {
|
|
154
165
|
const qs = new URLSearchParams(
|
|
155
166
|
Object.entries(params).filter(([, v]) => v !== undefined && v !== null && v !== '')
|