Skip to content

Commit b50573a

Browse files
feat: automate the enterprise front-matter flag (#611)
Adds scripts/update_enterprise_flags.py and a nightly GitHub Actions workflow that cross-reference each integration page's `name` against the partner sections of deepset-ai/haystack's Haystack Enterprise Components table (docs-website/docs/overview/platform-components.mdx, generated nightly there by scripts/generate_platform_components_table.py), and set `enterprise: true` on any page that matches. The matching is purely by partner name against a public, pre-generated page - no dependency installs, no private API access, no code-sample parsing. A small alias table covers partner names that don't match their integration page's `name` field case-insensitively. Includes the initial backfill: 78 of 82 platform partners matched to an integration page. The remaining 4 (Amazon S3, Azure DocumentDB, Transformers, Unstructured) have no unambiguous corresponding page and are logged as warnings rather than guessed. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 2b35f1e commit b50573a

80 files changed

Lines changed: 325 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Update Enterprise Platform flags
2+
3+
on:
4+
schedule:
5+
# A bit after deepset-ai/haystack's own update-platform-components workflow
6+
# (02:00 UTC), so this run picks up that day's refresh once it has landed.
7+
- cron: "30 3 * * *"
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: update-enterprise-flags
12+
cancel-in-progress: false
13+
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
jobs:
19+
update:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
26+
- name: Set up Python
27+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
28+
with:
29+
python-version: "3.11"
30+
31+
- name: Update enterprise flags
32+
run: python scripts/update_enterprise_flags.py --integrations-dir integrations
33+
34+
- name: Open or update pull request
35+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
36+
with:
37+
commit-message: "chore: update enterprise platform flags"
38+
branch: chore/update-enterprise-flags
39+
base: main
40+
title: "chore: update enterprise platform flags"
41+
add-paths: |
42+
integrations/*.md
43+
body: |
44+
## Enterprise Platform flags update
45+
46+
Cross-references integration pages against the partner sections of
47+
[Haystack Enterprise Components](https://docs.haystack.deepset.ai/docs/platform-components)
48+
(generated nightly in [deepset-ai/haystack](https://github.com/deepset-ai/haystack) by
49+
`scripts/generate_platform_components_table.py`), and syncs the `enterprise`
50+
front-matter flag on pages whose `name` matches a partner section.
51+
52+
_Auto-generated by the [update-enterprise-flags](https://github.com/deepset-ai/haystack-integrations/actions/workflows/update-enterprise-flags.yml) workflow._
53+
labels: |
54+
documentation

‎integrations/aimlapi.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/alloydb-documentstore.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/amazon-bedrock.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/amazon-textract.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/anthropic.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/arangodb-document-store.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/arcadedb.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/astradb.md‎

Lines changed: 1 addition & 0 deletions

‎integrations/azure-ai-search.md‎

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)