mirror of
https://github.com/grafana/grafana.git
synced 2026-05-30 19:30:08 +09:00
743 lines
25 KiB
YAML
743 lines
25 KiB
YAML
# This file is generated by generate-policy-bot-config.
|
|
# Do not edit directly. Run "make .policy.yml" to update.
|
|
|
|
# The contents of ".policy.yml.tmpl" were merged with the generated parts of this config.
|
|
# To add additional policies to the config, update this file and then run "make .policy.yml".
|
|
|
|
policy:
|
|
approval:
|
|
- or:
|
|
- and:
|
|
- Workflow .github/workflows/actionlint.yml succeeded or skipped
|
|
- Workflow .github/workflows/backend-code-checks.yml succeeded or skipped
|
|
- Workflow .github/workflows/backend-unit-tests.yml succeeded or skipped
|
|
- Workflow .github/workflows/build-go-matrix.yml succeeded or skipped
|
|
- Workflow .github/workflows/check-frontend-test-coverage.yml succeeded or skipped
|
|
- Workflow .github/workflows/codeowners-validator.yml succeeded or skipped
|
|
- Workflow .github/workflows/deploy-pr-preview.yml succeeded or skipped
|
|
- Workflow .github/workflows/deploy-storybook-preview.yml succeeded or skipped
|
|
- Workflow .github/workflows/detect-breaking-changes-levitate.yml succeeded or skipped
|
|
- Workflow .github/workflows/documentation-ci.yml succeeded or skipped
|
|
- Workflow .github/workflows/feature-toggles-ci.yml succeeded or skipped
|
|
- Workflow .github/workflows/frontend-lint.yml succeeded or skipped
|
|
- Workflow .github/workflows/go-lint.yml succeeded or skipped
|
|
- Workflow .github/workflows/govulncheck.yml succeeded or skipped
|
|
- Workflow .github/workflows/i18n-verify.yml succeeded or skipped
|
|
- Workflow .github/workflows/lint-build-docs.yml succeeded or skipped
|
|
- Workflow .github/workflows/policybot.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-build-grafana.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-checks.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-commands.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-dependabot-update-go-workspace.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-e2e-tests.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-endpoint-feature-toggle.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-frontend-unit-tests.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-go-workspace-check.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-k8s-codegen-check.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-mt-service-compatibility.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-patch-check.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-test-docker.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-test-integration-pgvector.yml succeeded or skipped
|
|
- Workflow .github/workflows/pr-test-integration.yml succeeded or skipped
|
|
- Workflow .github/workflows/reject-gh-secrets.yml succeeded or skipped
|
|
- Workflow .github/workflows/run-schema-v2-e2e.yml succeeded or skipped
|
|
- Workflow .github/workflows/shellcheck.yml succeeded or skipped
|
|
- Workflow .github/workflows/storybook-a11y.yml succeeded or skipped
|
|
- Workflow .github/workflows/swagger-gen.yml succeeded or skipped
|
|
- Workflow .github/workflows/trufflehog.yml succeeded or skipped
|
|
- default to approval
|
|
- override policies
|
|
- policy bot config is valid when modified
|
|
approval_rules:
|
|
- name: Workflow .github/workflows/actionlint.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^\.github\/workflows\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/actions\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/actionlint\.yaml$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/actionlint\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/actionlint.yml
|
|
- name: Workflow .github/workflows/backend-code-checks.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
ignore:
|
|
- ^(?:[^/]*)\.md$
|
|
- ^docs\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^latest\.json$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/backend-code-checks\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/backend-code-checks.yml
|
|
- name: Workflow .github/workflows/backend-unit-tests.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/backend-unit-tests\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/backend-unit-tests.yml
|
|
- name: Workflow .github/workflows/build-go-matrix.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.mod$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.sum$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work\.sum$
|
|
- ^(?:[^/]*)\.go$
|
|
- ^pkg\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^apps\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^Makefile$
|
|
- ^packaging\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^scripts\/build-rpm\.sh$
|
|
- ^scripts\/build-deb\.sh$
|
|
- ^scripts\/build-targz\.sh$
|
|
- ^scripts\/verify-pkg-stig\.sh$
|
|
- ^\.github\/actions\/setup-go\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/actions\/setup-fpm\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/actions\/setup-enterprise\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/workflows\/build-go-matrix\.yml$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/build-go-matrix\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/build-go-matrix.yml
|
|
- name: Workflow .github/workflows/check-frontend-test-coverage.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^(?:(?:[^/]*(?:/|$))*)(?:[^/]*)\.js$
|
|
- ^(?:(?:[^/]*(?:/|$))*)(?:[^/]*)\.jsx$
|
|
- ^(?:(?:[^/]*(?:/|$))*)(?:[^/]*)\.ts$
|
|
- ^(?:(?:[^/]*(?:/|$))*)(?:[^/]*)\.tsx$
|
|
- ^package\.json$
|
|
- ^\.github\/CODEOWNERS$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/check-frontend-test-coverage\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
- failure
|
|
workflows:
|
|
- .github/workflows/check-frontend-test-coverage.yml
|
|
- name: Workflow .github/workflows/codeowners-validator.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/codeowners-validator\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/codeowners-validator.yml
|
|
- name: Workflow .github/workflows/create-security-patch-from-security-mirror.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/create-security-patch-from-security-mirror\.yml$
|
|
targets_branch:
|
|
pattern: (^main$|^v(?:[^/]*)\.(?:[^/]*)\.(?:[^/]*)$|^release-(?:[^/]*)\.(?:[^/]*)\.(?:[^/]*)$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/create-security-patch-from-security-mirror.yml
|
|
- name: Workflow .github/workflows/deploy-pr-preview.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^docs\/sources\/(?:(?:[^/]*(?:/|$))*)$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/deploy-pr-preview\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/deploy-pr-preview.yml
|
|
- name: Workflow .github/workflows/deploy-storybook-preview.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^packages\/grafana-ui\/(?:(?:[^/]*(?:/|$))*)$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/deploy-storybook-preview\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/deploy-storybook-preview.yml
|
|
- name: Workflow .github/workflows/detect-breaking-changes-levitate.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^packages\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.nvmrc$
|
|
- ^\.github\/workflows\/detect-breaking-changes-levitate\.yml$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/detect-breaking-changes-levitate\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/detect-breaking-changes-levitate.yml
|
|
- name: Workflow .github/workflows/documentation-ci.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^docs\/sources\/(?:(?:[^/]*(?:/|$))*)$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/documentation-ci\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/documentation-ci.yml
|
|
- name: Workflow .github/workflows/feature-toggles-ci.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/feature-toggles-ci\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/feature-toggles-ci.yml
|
|
- name: Workflow .github/workflows/frontend-lint.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/frontend-lint\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/frontend-lint.yml
|
|
- name: Workflow .github/workflows/go-lint.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/go-lint\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/go-lint.yml
|
|
- name: Workflow .github/workflows/govulncheck.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^(?:(?:[^/]*(?:/|$))*)(?:[^/]*)\.go$
|
|
- ^\.github\/workflows\/govulncheck\.yml$
|
|
- ^\.citools\/src\/govulncheck\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^go\.(?:[^/]*)$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/govulncheck\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
- failure
|
|
workflows:
|
|
- .github/workflows/govulncheck.yml
|
|
- name: Workflow .github/workflows/i18n-verify.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/i18n-verify\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/i18n-verify.yml
|
|
- name: Workflow .github/workflows/lint-build-docs.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^(?:[^/]*)\.md$
|
|
- ^docs\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^packages\/(?:(?:[^/]*(?:/|$))*)(?:[^/]*)\.md$
|
|
- ^latest\.json$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/lint-build-docs\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/lint-build-docs.yml
|
|
- name: Workflow .github/workflows/policybot.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^\.policy\.yml$
|
|
- ^\.policy\.yml\.tmpl$
|
|
- ^justfile$
|
|
- ^\.github\/workflows\/(?:[^/]*)$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/policybot\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/policybot.yml
|
|
- name: Workflow .github/workflows/pr-build-grafana.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-build-grafana\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-build-grafana.yml
|
|
- name: Workflow .github/workflows/pr-checks.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-checks\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-checks.yml
|
|
- name: Workflow .github/workflows/pr-commands.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-commands\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-commands.yml
|
|
- name: Workflow .github/workflows/pr-dependabot-update-go-workspace.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-dependabot-update-go-workspace\.yml$
|
|
- ^go\.mod$
|
|
- ^go\.sum$
|
|
- ^go\.work$
|
|
- ^go\.work\.sum$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.mod$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.sum$
|
|
- ^(?:[^/]*)\.go$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-dependabot-update-go-workspace\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-dependabot-update-go-workspace.yml
|
|
- name: Workflow .github/workflows/pr-e2e-tests.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-e2e-tests\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-e2e-tests.yml
|
|
- name: Workflow .github/workflows/pr-endpoint-feature-toggle.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-endpoint-feature-toggle\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-endpoint-feature-toggle.yml
|
|
- name: Workflow .github/workflows/pr-frontend-unit-tests.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-frontend-unit-tests\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-frontend-unit-tests.yml
|
|
- name: Workflow .github/workflows/pr-go-workspace-check.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-go-workspace-check\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-go-workspace-check.yml
|
|
- name: Workflow .github/workflows/pr-k8s-codegen-check.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^pkg\/apis\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^pkg\/aggregator\/apis\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^pkg\/apimachinery\/apis\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^hack\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^apps\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^(?:[^/]*)\.sum$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-k8s-codegen-check\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-k8s-codegen-check.yml
|
|
- name: Workflow .github/workflows/pr-mt-service-compatibility.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-mt-service-compatibility\.yml$
|
|
targets_branch:
|
|
pattern: (^main$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-mt-service-compatibility.yml
|
|
- name: Workflow .github/workflows/pr-patch-check.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-patch-check\.yml$
|
|
targets_branch:
|
|
pattern: (^main$|^release-(?:[^/]*)$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-patch-check.yml
|
|
- name: Workflow .github/workflows/pr-test-docker.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^Makefile$
|
|
- ^Dockerfile$
|
|
- ^public\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^packages\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^apps\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.mod$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.sum$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work\.sum$
|
|
- ^(?:(?:[^/]*(?:/|$))*)package\.json$
|
|
- ^(?:(?:[^/]*(?:/|$))*)nx\.json$
|
|
- ^(?:(?:[^/]*(?:/|$))*)project\.json$
|
|
- ^(?:(?:[^/]*(?:/|$))*)yarn\.lock$
|
|
- ^conf\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.yarnrc\.yml$
|
|
- ^\.yarn\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^tsconfig\.json$
|
|
- ^(?:[^/]*)\.js$
|
|
- ^(?:[^/]*)\.ts$
|
|
- ^(?:[^/]*)\.config\.ts$
|
|
- ^scripts\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^emails\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.citools\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^kinds\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^embed\.go$
|
|
- ^packaging\/docker\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/workflows\/pr-test-docker\.yml$
|
|
- ^\.github\/workflows\/build-docker-variants\.yml$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-test-docker\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-test-docker.yml
|
|
- name: Workflow .github/workflows/pr-test-integration-pgvector.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^Makefile$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.mod$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.sum$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work\.sum$
|
|
- ^pkg\/storage\/unified\/search\/vector\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^pkg\/storage\/unified\/search\/embed\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^devenv\/docker\/blocks\/pgvector\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^devenv\/\.env$
|
|
- ^\.github\/actions\/setup-go\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/workflows\/pr-test-integration-pgvector\.yml$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-test-integration-pgvector\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-test-integration-pgvector.yml
|
|
- name: Workflow .github/workflows/pr-test-integration.yml succeeded or skipped
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^Makefile$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.mod$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.sum$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work$
|
|
- ^(?:(?:[^/]*(?:/|$))*)go\.work\.sum$
|
|
- ^(?:[^/]*)\.go$
|
|
- ^pkg\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^apps\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^scripts\/ci\/backend-tests\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^devenv\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/actions\/setup-go\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/actions\/setup-enterprise\/(?:(?:[^/]*(?:/|$))*)$
|
|
- ^\.github\/workflows\/pr-test-integration\.yml$
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/pr-test-integration\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/pr-test-integration.yml
|
|
- name: Workflow .github/workflows/reject-gh-secrets.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/reject-gh-secrets\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/reject-gh-secrets.yml
|
|
- name: Workflow .github/workflows/run-schema-v2-e2e.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/run-schema-v2-e2e\.yml$
|
|
targets_branch:
|
|
pattern: (^(?:(?:[^/]*(?:/|$))*)$)
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/run-schema-v2-e2e.yml
|
|
- name: Workflow .github/workflows/shellcheck.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/shellcheck\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/shellcheck.yml
|
|
- name: Workflow .github/workflows/storybook-a11y.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/storybook-a11y\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/storybook-a11y.yml
|
|
- name: Workflow .github/workflows/swagger-gen.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/swagger-gen\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/swagger-gen.yml
|
|
- name: Workflow .github/workflows/trufflehog.yml succeeded or skipped
|
|
if:
|
|
file_not_deleted:
|
|
paths:
|
|
- ^\.github\/workflows\/trufflehog\.yml$
|
|
requires:
|
|
conditions:
|
|
has_workflow_result:
|
|
conclusions:
|
|
- skipped
|
|
- success
|
|
workflows:
|
|
- .github/workflows/trufflehog.yml
|
|
- name: default to approval
|
|
- name: policy bot config is valid when modified
|
|
if:
|
|
changed_files:
|
|
paths:
|
|
- ^\.policy\.yml
|
|
requires:
|
|
conditions:
|
|
has_successful_status:
|
|
- Check .policy.yml is valid
|
|
- name: override policies
|
|
description: |
|
|
Policy-bot can be overridden in emergency situations.
|
|
**Only use this when absolutely neccesary, as it allows PRs with unfinished/unvalidated CI jobs to be merged.**
|
|
Note that a reason is required, IE: `policy-bot disable: We need to deploy this fix to resolve [this ongoing incident with policy-bot](...).`
|
|
options:
|
|
methods:
|
|
comment_patterns:
|
|
- (?s)policy[- ]bot:? (?:approve|disable)d?(?::?(?<reason>.*))
|
|
github_review: false
|
|
requires:
|
|
count: 1
|
|
permissions:
|
|
- write
|