Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit d765fbb

Browse files
ajrice6713DX-Bandwidthckoegel
authored
SWI-3589 Add emergency provisioning docs (#1172)
* Add Code Snippets to Spec Files * Add Emergency Provisioning public page * SWI-3711 Replace `hub` with `gh` (#1171) * SWI-3711 Github Machine Broke * dont copy paste blindly * Use the right flags * Update .github/workflows/listener.yml Co-authored-by: Cameron Koegel <[email protected]> --------- Co-authored-by: Cameron Koegel <[email protected]> --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: Cameron Koegel <[email protected]>
1 parent d832682 commit d765fbb

File tree

6 files changed

+2940
-2
lines changed

6 files changed

+2940
-2
lines changed

.github/workflows/listener.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Open Pull Request
3333
if: steps.replace-specs-snippets.outputs.needs_pr
3434
run: |
35-
hub pull-request --base Bandwidth:main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -m '${{ github.event.client_payload.branchName }}' -m 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}'
35+
gh pr create -B main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -t '${{ github.event.client_payload.branchName }}' -b 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}'
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
3838

site/custom.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"dashSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dash.json",
1212
"dashNotificationsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dashNotifications.json",
1313
"identitySpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/one-identity-management.yml",
14-
"insightsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/insights.yml"
14+
"insightsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/insights.yml",
15+
"emergencyProvisioningSpec": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/emergency.yml"
1516
}

site/docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ const identitySpec = fs.readFileSync(
4040
const identityspecLink = "";
4141
const insightsSpec = fs.readFileSync("./specs/insights.yml", "utf-8");
4242

43+
const emergencyProvisioningSpec = fs.readFileSync("./specs/emergency.yml", "utf-8");
44+
4345
module.exports = {
4446
title: "Bandwidth API Docs",
4547
tagline: "Learn About Bandwidth's Product APIs",
@@ -200,6 +202,8 @@ module.exports = {
200202
identitySpecLink: `${customConfig.dashNotificationsSpecLink}`,
201203
insightsSpec: YAML.parse(insightsSpec),
202204
insightsSpecLink: `${customConfig.insightsSpecLink}`,
205+
emergencyProvisioningSpec: YAML.parse(emergencyProvisioningSpec),
206+
emergencyProvisioningSpecLink: `${customConfig.emergencyProvisioningSpecLink}`,
203207

204208
blogPosts: blogPosts,
205209

0 commit comments

Comments
 (0)