From e3845283f8ca3ff58e0ecc25d68e1896a4d075b8 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Sun, 29 Oct 2023 14:58:36 +0200 Subject: [PATCH] release notes --- RELEASE_NOTES.md | 9 +++++---- pr_agent/algo/utils.py | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index ccc95843..b9f363c8 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -7,11 +7,12 @@ - codiumai/pr-agent:0.9-github_action ### Added::Algo -- New tool `/generate_labels` - see [link](https://github.com/Codium-ai/pr-agent/blob/main/docs/GENERATE_CUSTOM_LABELS.md) -- New ability to use customize labels on `review` and `describe` tools - see [link](https://github.com/Codium-ai/pr-agent/blob/main/docs/GENERATE_CUSTOM_LABELS.md#configuration-changes) -- GitHub Action: Can now use a `.pr_agent.toml` file to control configuration parameters (see [Usage Guide](./Usage.md#working-with-github-action)) +- New tool - [/generate_labels](https://github.com/Codium-ai/pr-agent/blob/main/docs/GENERATE_CUSTOM_LABELS.md) +- New ability to use [customize labels](https://github.com/Codium-ai/pr-agent/blob/main/docs/GENERATE_CUSTOM_LABELS.md#configuration-changes) on the `review` and `describe` tools. +- GitHub Action: Can now use a `.pr_agent.toml` file to control configuration parameters (see [Usage Guide](./Usage.md#working-with-github-action)). - GitHub App: Added ability to trigger tools on push events (see [link](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml#L91)) -- Support custom domain URLs for azure devops integration (see [link](https://github.com/Codium-ai/pr-agent/pull/381)) +- Support custom domain URLs for azure devops integration (see [link](https://github.com/Codium-ai/pr-agent/pull/381)). +- PR Description default mode is now in [bullet points](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml#L35). ### Added::Documentation Significant documentation updates (see [Installation Guide](https://github.com/Codium-ai/pr-agent/blob/main/INSTALL.md), [Usage Guide](https://github.com/Codium-ai/pr-agent/blob/main/Usage.md), and [Tools Guide](https://github.com/Codium-ai/pr-agent/blob/main/docs/TOOLS_GUIDE.md)) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 7de31fd4..423771a3 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -307,6 +307,9 @@ def try_fix_yaml(review_text: str) -> dict: def set_custom_labels(variables): + if not get_settings().config.enable_custom_labels: + return + labels = get_settings().custom_labels if not labels: # set default labels