[controls] use shared component for "Values preview" for data control and variable control #61908
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: Label Scout PRs | |
| # Applies the `reviewer:scout` label to PRs that touch Scout test code or Scout | |
| # packages, which triggers the Scout Test Reviewer (reviewer-scout). The matching | |
| # globs live in .github/labeler-scout.yml. | |
| # | |
| # The label is added with KIBANAMACHINE_TOKEN (a User account, not a Bot) so the | |
| # resulting `labeled` event passes the reviewer's `sender.type != 'Bot'` gate. | |
| # | |
| # Skip the stable Libra cohort on the initial opened event so this workflow does | |
| # not race reviewer-claude. Later events run normally if reviewer:libra is removed. | |
| on: | |
| # pull_request_target runs against the base branch's workflow with a read/write | |
| # token and secrets, so it works for fork PRs. This workflow must never check out | |
| # PR code, which would expose those secrets to untrusted contributions. | |
| pull_request_target: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| jobs: | |
| label_scout_prs: | |
| name: Add reviewer:scout label when Scout files change | |
| if: >- | |
| github.event.pull_request.draft == false && | |
| !contains(github.event.pull_request.labels.*.name, 'backport') && | |
| !contains(github.event.pull_request.labels.*.name, 'reviewer:scout') && | |
| !contains(github.event.pull_request.labels.*.name, 'reviewer:libra') && | |
| !contains(github.event.pull_request.labels.*.name, 'reviewer:skip-ai') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| steps: | |
| - name: Check the Libra review cohort | |
| id: libra_cohort | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| script: | | |
| const prNumber = Number(context.payload.pull_request.number); | |
| const selected = | |
| context.payload.action === 'opened' && | |
| Number.isInteger(prNumber) && | |
| prNumber % 10 === 0; | |
| core.setOutput('selected', String(selected)); | |
| - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 | |
| if: steps.libra_cohort.outputs.selected != 'true' | |
| with: | |
| repo-token: ${{ secrets.KIBANAMACHINE_TOKEN }} | |
| configuration-path: .github/labeler-scout.yml | |
| sync-labels: false |