Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add docs link for rules (#2188)

ecmadao5aad7a593884
diff --git a/.github/workflows/sql-review.yml b/.github/workflows/sql-review.yml
index 2bcb9735a3..1f9701aecc 100644
--- a/.github/workflows/sql-review.yml
+++ b/.github/workflows/sql-review.yml
@@ -7,7 +7,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Check SQL
- uses: bytebase/[email protected]
+ uses: bytebase/[email protected]
with:
- override-file-path: ./sql-review-override.yml # Optional, we can only provide the template id
+ override-file-path: ./sql-review-override.yml
database-type: POSTGRES
diff --git a/frontend/src/components/SQLReview/SQLReviewPreview.vue b/frontend/src/components/SQLReview/SQLReviewPreview.vue
index 954976c9f7..1f3a336b2a 100644
--- a/frontend/src/components/SQLReview/SQLReviewPreview.vue
+++ b/frontend/src/components/SQLReview/SQLReviewPreview.vue
@@ -45,6 +45,13 @@
class="h-4 w-auto"
:src="getEngineIcon(engine)"
/>
+ <a
+ :href="`https://www.bytebase.com/docs/sql-review/review-rules/supported-rules#${rule.type}`"
+ target="__blank"
+ class="flex flex-row space-x-2 items-center text-base text-gray-500 hover:text-gray-900"
+ >
+ <heroicons-outline:external-link class="w-4 h-4" />
+ </a>
</div>
</div>
<p class="py-2 text-gray-400">
diff --git a/frontend/src/components/SQLReview/components/SQLRuleConfig.vue b/frontend/src/components/SQLReview/components/SQLRuleConfig.vue
index 455dac8062..218fb29e86 100644
--- a/frontend/src/components/SQLReview/components/SQLRuleConfig.vue
+++ b/frontend/src/components/SQLReview/components/SQLRuleConfig.vue
@@ -21,6 +21,13 @@
class="h-4 w-auto"
:src="getEngineIcon(engine)"
/>
+ <a
+ :href="`https://www.bytebase.com/docs/sql-review/review-rules/supported-rules#${selectedRule.type}`"
+ target="__blank"
+ class="flex flex-row space-x-2 items-center text-base text-gray-500 hover:text-gray-900"
+ >
+ <heroicons-outline:external-link class="w-4 h-4" />
+ </a>
</div>
<div class="text-sm text-gray-400 ml-7">
{{ getRuleLocalization(selectedRule.type).description }}