Merge pull request #521 from Codium-ai/tr/bitbucket_app

feat: Enable PR description publishing as comment in bitbucket_app.py
This commit is contained in:
mrT23
2023-12-12 00:27:48 -08:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -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)