diff --git a/Usage.md b/Usage.md index db9874d2..1d45227c 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 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 See [here](pr_agent/algo/__init__.py) for the list of available models. 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)