@insignia-education/api-sdk-js 0.25.1 → 0.25.2
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 +8 -0
package/package.json
CHANGED
package/src/api/v1/Admin.js
CHANGED
|
@@ -226,6 +226,14 @@ export default class Admin {
|
|
|
226
226
|
return this.#client.get('/admin/actions/status', { limit });
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* One repo's slice of actionsStatus() — `{ available, runs, pull_requests, ... }` — so the
|
|
231
|
+
* dashboard can request every repo in parallel rather than waiting on the combined call.
|
|
232
|
+
*/
|
|
233
|
+
actionsRepoStatus(repo, { limit } = {}) {
|
|
234
|
+
return this.#client.get(`/admin/actions/${repo}/status`, { limit });
|
|
235
|
+
}
|
|
236
|
+
|
|
229
237
|
/**
|
|
230
238
|
* One workflow run's jobs, each with its own steps — lets the dashboard show a run's
|
|
231
239
|
* breakdown inline instead of linking out to GitHub. Resolves `{ available: false }`
|