mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
Don't commment on Github, only eyes reaction
This commit is contained in:
@ -15,6 +15,7 @@ async def run_action():
|
|||||||
OPENAI_KEY = os.environ.get('OPENAI_KEY')
|
OPENAI_KEY = os.environ.get('OPENAI_KEY')
|
||||||
OPENAI_ORG = os.environ.get('OPENAI_ORG')
|
OPENAI_ORG = os.environ.get('OPENAI_ORG')
|
||||||
GITHUB_TOKEN = os.environ.get('GITHUB_TOKEN')
|
GITHUB_TOKEN = os.environ.get('GITHUB_TOKEN')
|
||||||
|
get_settings().set("CONFIG.PUBLISH_OUTPUT_PROGRESS", False)
|
||||||
|
|
||||||
# Check if required environment variables are set
|
# Check if required environment variables are set
|
||||||
if not GITHUB_EVENT_NAME:
|
if not GITHUB_EVENT_NAME:
|
||||||
|
@ -107,6 +107,7 @@ async def root():
|
|||||||
def start():
|
def start():
|
||||||
# Override the deployment type to app
|
# Override the deployment type to app
|
||||||
get_settings().set("GITHUB.DEPLOYMENT_TYPE", "app")
|
get_settings().set("GITHUB.DEPLOYMENT_TYPE", "app")
|
||||||
|
get_settings().set("CONFIG.PUBLISH_OUTPUT_PROGRESS", False)
|
||||||
middleware = [Middleware(RawContextMiddleware)]
|
middleware = [Middleware(RawContextMiddleware)]
|
||||||
app = FastAPI(middleware=middleware)
|
app = FastAPI(middleware=middleware)
|
||||||
app.include_router(router)
|
app.include_router(router)
|
||||||
|
@ -36,6 +36,7 @@ async def polling_loop():
|
|||||||
git_provider = get_git_provider()()
|
git_provider = get_git_provider()()
|
||||||
user_id = git_provider.get_user_id()
|
user_id = git_provider.get_user_id()
|
||||||
agent = PRAgent()
|
agent = PRAgent()
|
||||||
|
get_settings().set("CONFIG.PUBLISH_OUTPUT_PROGRESS", False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
deployment_type = get_settings().github.deployment_type
|
deployment_type = get_settings().github.deployment_type
|
||||||
|
Reference in New Issue
Block a user