You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2025/09/23 21:47:45 UTC

(superset) branch gh-models-take-1 updated: feat(ci): GitHub Models - Part 1 of `n`

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch gh-models-take-1
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/gh-models-take-1 by this push:
     new 612289fa77 feat(ci): GitHub Models - Part 1 of `n`
612289fa77 is described below

commit 612289fa77c38c1f2aacb1600c723bff8b272b88
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Tue Sep 23 14:47:35 2025 -0700

    feat(ci): GitHub Models - Part 1 of `n`
---
 .../github_model_detect_duplicate_issues.yml       | 26 +++++++++++++++
 ...ithub_model_detect_issue_completeness_check.yml | 38 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/.github/workflows/github_model_detect_duplicate_issues.yml b/.github/workflows/github_model_detect_duplicate_issues.yml
new file mode 100644
index 0000000000..8e690cc370
--- /dev/null
+++ b/.github/workflows/github_model_detect_duplicate_issues.yml
@@ -0,0 +1,26 @@
+name: Detect Duplicate Issues
+
+on:
+  issues:
+    types: [opened, reopened]
+
+permissions:
+  models: read
+  issues: write
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.issue.number }}
+  cancel-in-progress: true
+
+jobs:
+  continuous-triage-dedup:
+    if: ${{ github.event.issue.user.type != 'Bot' }}
+    runs-on: ubuntu-latest
+    steps:
+      - uses: pelikhan/action-genai-issue-dedup@v0
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          # Optional tuning:
+          # labels: "auto"          # compare within matching labels, or "bug,api"
+          # count: "20"             # how many recent issues to check
+          # since: "90d"            # look back window, supports d/w/m
diff --git a/.github/workflows/github_model_detect_issue_completeness_check.yml b/.github/workflows/github_model_detect_issue_completeness_check.yml
new file mode 100644
index 0000000000..c514583b4c
--- /dev/null
+++ b/.github/workflows/github_model_detect_issue_completeness_check.yml
@@ -0,0 +1,38 @@
+name: Issue Completeness Check
+
+on:
+  issues:
+    types: [opened]
+
+permissions:
+  issues: write
+  models: read
+
+jobs:
+  check-completeness:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check issue completeness
+        uses: actions/ai-inference@v1
+        id: ai
+        with:
+          prompt: |
+            Analyze this GitHub issue for completeness. If missing reproduction steps, version info, or expected/actual behavior, respond with a friendly request for the missing info. If complete, say so.
+
+            Title: ${{ github.event.issue.title }}
+            Body: ${{ github.event.issue.body }}
+          system-prompt: You are a helpful assistant that helps analyze GitHub issues for completeness.
+          model: openai/gpt-4o-mini
+          temperature: 0.2
+
+      - name: Comment on issue
+        if: steps.ai.outputs.response != ''
+        uses: actions/github-script@v7
+        with:
+          script: |
+            github.rest.issues.createComment({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              issue_number: ${{ github.event.issue.number }},
+              body: `${{ steps.ai.outputs.response }}`
+            })