feat(GAT-9202): Typesense search and superadmin panel #26
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Widget Impact Check | |
| # Flags PRs that touch the third-party widget embed surface so contract | |
| # changes are spotted early enough to coordinate with embedding users. | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| widget-impact: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Detect changes to the widget embed surface | |
| id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| widget: | |
| - "src/widgets/**" | |
| - "src/app/widgets/**" | |
| - "src/app/api/widget/**" | |
| - "src/app/[locale]/account/team/[teamId]/(withLeftNav)/integrations/widgets/**" | |
| - "src/interfaces/Widget.ts" | |
| - "widgetBuilder.ts" | |
| - "next.config.js" | |
| - name: Label PR | |
| if: steps.filter.outputs.widget == 'true' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| labels: ["widget-impact"], | |
| }); | |
| - name: Comment on PR | |
| if: steps.filter.outputs.widget == 'true' | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| header: widget-impact | |
| message: | | |
| ## ⚠️ This PR touches the third-party widget embed surface | |
| Widgets generated by the widget creator are embedded in **external | |
| websites we do not control**. A breaking change here fails silently | |
| on those sites. | |
| - The widget contract tests (`*.contract.test.*`, `widget-embed.cy.ts`) | |
| must pass. | |
| - If a contract change is **intentional**, flag the change in release | |
| notes, and notify teams with active widgets **before** release. |