@@ -75,34 +75,11 @@ jobs:
7575 - name : " Path-based PR Labeler"
7676 uses : github/auto-label@v2
7777 with :
78- repo-token : " ${{ secrets.GITHUB_TOKEN }}"
78+ repo-token : ${{ secrets.GITHUB_TOKEN }}
7979 configuration-path : .github/pr-labeler.yml
8080
81- suggest_labels :
82- name : " Suggest New/Future Labels"
83- runs-on : ubuntu-latest
84- permissions :
85- issues : write
86- pull-requests : write
87-
88- steps :
89- - name : " Suggest relevant AI-driven labels"
90- uses : actions/github-script@v7
91- with :
92- github-token : ${{ secrets.GITHUB_TOKEN }}
93- script : |
94- const openAI = require('@openai/openai');
95- const issue = context.payload.issue || context.payload.pull_request;
96- const body = issue.body || '';
97- // Hypothetical AI integration for futuristic label suggestions
98- const aiLabels = await openAI.labels.suggest({ text: body, repo: context.repo });
99- for (const label of aiLabels) {
100- await github.issues.addLabels({
101- ...context.repo,
102- issue_number: issue.number,
103- labels: [label]
104- });
105- }
81+ # Removed suggest_labels job because the AI-driven label suggestion with OpenAI is hypothetical and not supported in GitHub Actions natively.
82+ # If you want advanced label suggestions, consider using GitHub's own Copilot-powered features or a third-party integration.
10683
10784 label_compliance :
10885 name : " Label Compliance & Analytics"
11794 with :
11895 repo-token : ${{ secrets.GITHUB_TOKEN }}
11996 config-path : .github/label-actions.yml
120-
121- # labeler.yml, labels.json, pr-labeler.yml, and label-actions.yml
122- # should be defined in .github/ for full functionality.
0 commit comments