Skip to content

Commit 63725a4

Browse files
authored
Merge pull request #99 from SmartBear/next
Fix post 0.4 release docs publish
2 parents c13ec74 + 931df6d commit 63725a4

File tree

4 files changed

+60
-1
lines changed

4 files changed

+60
-1
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Validate Portal Content
2+
3+
on:
4+
pull_request:
5+
branches: [ main, next ]
6+
paths:
7+
- 'docs/**'
8+
9+
permissions: read-all
10+
11+
env:
12+
LOG_LEVEL: ${{ github.event.inputs.log_level }}
13+
14+
jobs:
15+
spell-check:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Install Node.js
23+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
24+
with:
25+
node-version: '20'
26+
27+
- name: Run cspell
28+
run: npx -y cspell --config ./.cspell.json "./docs/**/*.md"
29+
30+
validate-manifests:
31+
runs-on: ubuntu-latest
32+
needs: spell-check
33+
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
38+
- name: Install Node.js
39+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
40+
with:
41+
node-version: '20'
42+
43+
- name: Validate manifests
44+
run: |
45+
. ./docs/scripts/utilities.sh
46+
for product in ./docs/products/*; do
47+
if [[ -d "$product" ]]; then
48+
product_name=${product#./docs/products/}
49+
manifest="./docs/products/$product_name/manifest.json"
50+
if [[ -f "$manifest" ]]; then
51+
# Further actions...
52+
log_message $INFO "Validating manifest in product: $product_name"
53+
log_message $DEBUG "Validating manifest: $manifest"
54+
npx -y ajv-cli validate -s ./docs/schemas/manifest.schema.json -d "$manifest" --spec=draft2020
55+
fi
56+
fi
57+
done

docs/custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ smartbear
66
SWAGGERHUB
77
undiscarded
88
undiscard
9+
pactflow

docs/products/SmartBear MCP Server/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The SmartBear MCP Server supports multiple SmartBear Hubs, each requiring its ow
4444

4545
- **API Hub - Contract Testing (PactFlow)**
4646

47-
Copy the relevant API tokens from [`app.pactflow.io`](https://app.pactflow.io/settings/api-tokens). You will also need to note the tenant URL for your organisation (e.g., `{tenant}.pactflow.io`). The MCP server also supports the open source Pact Broker, in which case you will need a username and password instead of a token.
47+
Copy the relevant API tokens from [`app.pactflow.io`](https://app.pactflow.io/settings/api-tokens). You will also need to note the tenant URL for your organization (e.g., `{tenant}.pactflow.io`). The MCP server also supports the open source Pact Broker, in which case you will need a username and password instead of a token.
4848

4949
- **Test Hub (Reflect)**
5050

docs/products/SmartBear MCP Server/insight-hub-integration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ Refers to an occurrence of an error: `insighthub://event/{id}`.
5656
- Project event filters are pre-cached for better performance
5757
- **Filtering**: Use `get_project_event_filters` to discover available filter fields before using `list_insight_hub_project_errors`
5858
- **Time Filters**: Support both relative format (e.g., `7d`, `24h`) and ISO 8601 UTC format (e.g., `2018-05-20T00:00:00Z`)
59+

0 commit comments

Comments
 (0)