From ea91a7312856cf83ed1e2de348a548d53537c239 Mon Sep 17 00:00:00 2001 From: Sourav <205398826+morningstarxcdcode@users.noreply.github.com> Date: Mon, 7 Jul 2025 19:39:47 +0530 Subject: [PATCH] Update label.yml --- .github/workflows/label.yml | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 1a5133b..dd8e54d 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -75,34 +75,11 @@ jobs: - name: "Path-based PR Labeler" uses: github/auto-label@v2 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + repo-token: ${{ secrets.GITHUB_TOKEN }} configuration-path: .github/pr-labeler.yml - suggest_labels: - name: "Suggest New/Future Labels" - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - - steps: - - name: "Suggest relevant AI-driven labels" - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const openAI = require('@openai/openai'); - const issue = context.payload.issue || context.payload.pull_request; - const body = issue.body || ''; - // Hypothetical AI integration for futuristic label suggestions - const aiLabels = await openAI.labels.suggest({ text: body, repo: context.repo }); - for (const label of aiLabels) { - await github.issues.addLabels({ - ...context.repo, - issue_number: issue.number, - labels: [label] - }); - } + # Removed suggest_labels job because the AI-driven label suggestion with OpenAI is hypothetical and not supported in GitHub Actions natively. + # If you want advanced label suggestions, consider using GitHub's own Copilot-powered features or a third-party integration. label_compliance: name: "Label Compliance & Analytics" @@ -117,6 +94,3 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} config-path: .github/label-actions.yml - -# labeler.yml, labels.json, pr-labeler.yml, and label-actions.yml -# should be defined in .github/ for full functionality.