From d325848cb17c3b07b4d586d956b88bc7fe1aa745 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:12:36 -0400 Subject: [PATCH] Add AI labeler --- .github/ai-labeler.yml | 18 ++++++++++++++++++ .github/workflows/ai-labeler.yml | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/ai-labeler.yml create mode 100644 .github/workflows/ai-labeler.yml diff --git a/.github/ai-labeler.yml b/.github/ai-labeler.yml new file mode 100644 index 00000000..5a54bf77 --- /dev/null +++ b/.github/ai-labeler.yml @@ -0,0 +1,18 @@ +labels: + # Simple form: just the name + - bug + - breaking change + - documentation + - feature + - enhancement + - question + - example + - good first issue + - tests + - ignore in release notes: + description: "Ignore this PR in release notes" + instructions: | + Administrative changes that don't need to be mentioned in release notes, + such as CI configuration changes. Small changes, including typos, SHOULD + be kept in the release notes; only changes that aren't relevant to + behavior should be ignored. diff --git a/.github/workflows/ai-labeler.yml b/.github/workflows/ai-labeler.yml new file mode 100644 index 00000000..18ca9502 --- /dev/null +++ b/.github/workflows/ai-labeler.yml @@ -0,0 +1,20 @@ +name: AI Labeler + +on: + issues: + types: [opened, reopened] + pull_request: + types: [opened, reopened] + +jobs: + ai-labeler: + runs-on: ubuntu-latest + permissions: + contents: read + issues: write + pull-requests: write + steps: + - uses: actions/checkout@v4 + - uses: jlowin/ai-labeler@v0.2.1 + with: + openai-api-key: ${{ secrets.OPENAI_API_KEY }}