From 512c92fe51e7b648e43afa22f579f2539f423f15 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Tue, 12 Dec 2023 10:19:17 +0200 Subject: [PATCH 1/3] feat: Enable PR description publishing as comment in bitbucket_app.py --- pr_agent/servers/bitbucket_app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pr_agent/servers/bitbucket_app.py b/pr_agent/servers/bitbucket_app.py index b5e5e7d7..bdb972c7 100644 --- a/pr_agent/servers/bitbucket_app.py +++ b/pr_agent/servers/bitbucket_app.py @@ -154,6 +154,7 @@ async def handle_uninstalled_webhooks(request: Request, response: Response): def start(): get_settings().set("CONFIG.PUBLISH_OUTPUT_PROGRESS", False) get_settings().set("CONFIG.GIT_PROVIDER", "bitbucket") + get_settings().set("PR_DESCRIPTION.PUBLISH_DESCRIPTION_AS_COMMENT", True) middleware = [Middleware(RawContextMiddleware)] app = FastAPI(middleware=middleware) app.include_router(router) From ea7511e3c81844bb790d280e546e86bdf2845af6 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Tue, 12 Dec 2023 10:23:37 +0200 Subject: [PATCH 2/3] feat: Update Usage.md with limitations of bitbucket platform in auto_describe tool usage --- Usage.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Usage.md b/Usage.md index db9874d2..875cd901 100644 --- a/Usage.md +++ b/Usage.md @@ -253,6 +253,9 @@ auto_improve = true # set as config var in .pr_agent.toml `bitbucket_app.auto_review`, `bitbucket_app.auto_describe` and `bitbucket_app.auto_improve` are used to enable/disable automatic tools. If not set, the default option is that only the `review` tool will run automatically when a new PR is opened. +Note that due to limitations of the bitbucket platform, the `auto_describe` tool will be able to publish a PR description only as a comment. +In addition, some sections like `PR changes walkthrough`, will not appear, since they require the usage of collapsible sections, which are not supported by bitbucket. + ### Changing a model See [here](pr_agent/algo/__init__.py) for the list of available models. From 77a6fafdfc989e8d9446365c0e1f197350a61358 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Tue, 12 Dec 2023 10:26:09 +0200 Subject: [PATCH 3/3] feat: Update Usage.md with limitations of bitbucket platform in auto_describe tool usage --- Usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Usage.md b/Usage.md index 875cd901..1d45227c 100644 --- a/Usage.md +++ b/Usage.md @@ -254,7 +254,7 @@ auto_improve = true # set as config var in .pr_agent.toml If not set, the default option is that only the `review` tool will run automatically when a new PR is opened. Note that due to limitations of the bitbucket platform, the `auto_describe` tool will be able to publish a PR description only as a comment. -In addition, some sections like `PR changes walkthrough`, will not appear, since they require the usage of collapsible sections, which are not supported by bitbucket. +In addition, some subsections like `PR changes walkthrough` will not appear, since they require the usage of collapsible sections, which are not supported by bitbucket. ### Changing a model