diff --git a/README.md b/README.md index 3a56f1f..5303fd0 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 - - uses: jlowin/ai-labeler@v0.3.0 + - uses: jlowin/ai-labeler@v0.4.0 with: include-repo-labels: true openai-api-key: ${{ secrets.OPENAI_API_KEY }} @@ -59,7 +59,7 @@ By default, the AI labeler will use all labels found in your repository, as well To disable this behavior, set `include-repo-labels` to `false`. In this case, the AI will only use labels defined in your config file. See the fine-tuning section below for more details. ```yaml -- uses: jlowin/ai-labeler@v0.3.0 +- uses: jlowin/ai-labeler@v0.4.0 with: include-repo-labels: false # Only use labels defined in config ``` @@ -74,7 +74,7 @@ You must specify an LLM provider and provide an API key. You can use either Open By default, the AI labeler uses OpenAI's `gpt-4o-mini` model. This is an excellent and affordable choice for most users. However, 4o-mini can get confused by complex per-label instructions. You can specify a different model if you'd like: ```yaml -- uses: jlowin/ai-labeler@v0.3.0 +- uses: jlowin/ai-labeler@v0.4.0 with: controlflow-llm-model: openai/gpt-4o-mini ``` @@ -90,7 +90,7 @@ Note that you must provide an appropriate API key for your selected LLM provider #### OpenAI ```yaml -- uses: jlowin/ai-labeler@v0.3.0 +- uses: jlowin/ai-labeler@v0.4.0 with: openai-api-key: ${{ secrets.OPENAI_API_KEY }} @@ -103,7 +103,7 @@ Set your OpenAI API key as a repository secret named `OPENAI_API_KEY`. Since the #### Anthropic ```yaml -- uses: jlowin/ai-labeler@v0.3.0 +- uses: jlowin/ai-labeler@v0.4.0 with: anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} @@ -118,7 +118,7 @@ Set your Anthropic API key as a repository secret named `ANTHROPIC_API_KEY`. To By default, the action looks for additional configuration in `.github/ai-labeler.yml`. You can specify a different location: ```yaml -- uses: jlowin/ai-labeler@v0.3.0 +- uses: jlowin/ai-labeler@v0.4.0 with: config-path: .github/my-custom-config.yml ``` diff --git a/pyproject.toml b/pyproject.toml index c3ba6f6..398fee8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,10 @@ [project] name = "ai-labeler" -version = "0.3.0" +version = "0.4.0" description = "GitHub Action that uses LLMs to label issues and PRs" readme = "README.md" requires-python = ">=3.12" -dependencies = [ - "controlflow>=0.11.1", - "flaky>=3.8.1", - "pygithub>=2.4.0", -] +dependencies = ["controlflow>=0.11.1", "flaky>=3.8.1", "pygithub>=2.4.0"] [project.optional-dependencies] dev = [ diff --git a/uv.lock b/uv.lock index 904b27f..a177fa4 100644 --- a/uv.lock +++ b/uv.lock @@ -8,7 +8,7 @@ resolution-markers = [ [[package]] name = "ai-labeler" -version = "0.3.0" +version = "0.4.0" source = { virtual = "." } dependencies = [ { name = "controlflow" },