Comments (5)
auto_approve
specifically is not supported in github action since the github action bot doesn't have permission to approve PRs
The configuration file in general is supported in GitHub action. See my example below
I cannot debug your local hosting. That a downside of using such deployment.
Consider using PR-Agent Pro, where, along with other advantages, we are able to see logs and provide support
Codium-ai/codium-code-examples#40 (comment)
https://github.com/Codium-ai/codium-code-examples/blob/main/.pr_agent.toml
from pr-agent.
You have not shared your logs
PR-Agent with Github action fully supports a configuration file:
https://pr-agent-docs.codium.ai/usage-guide/automations_and_usage/#github-action
Make sure you comply with the instructions, for example:
from pr-agent.
Hi here is logs when I run /review auto_approve
.
I double-checked my .pr_agent.toml
file but there is no problem, I think.
/usr/bin/docker run --name c660312885ff42fba1b19b5347d4b031_d01e2b --label 672523 --workdir /github/workspace --rm -e "OPENAI_KEY" -e "GITHUB_TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/pr-agent/pr-agent":"/github/workspace" 672523:c660312885ff42fba1b19b5347d4b031
{"text": "Applying repo settings\n", "record": {"elapsed": {"repr": "0:00:01.2[6](https://github.com/psbss/pr-agent/actions/runs/8656504864/job/23737122816#step:3:7)6795", "seconds": 1.266795}, "exception": null, "extra": {}, "file": {"name": "github_action_runner.py", "path": "/app/pr_agent/servers/github_action_runner.py"}, "function": "run_action", "level": {"icon": "ℹ️", "name": "INFO", "no": 20}, "line": 72, "message": "Applying repo settings", "module": "github_action_runner", "name": "__main__", "process": {"id": 7, "name": "MainProcess"}, "thread": {"id": 140181854497664, "name": "MainThread"}, "time": {"repr": "2024-04-12 03:23:13.453356+00:00", "timestamp": 1712892193.453356}}}
{"text": "Auto approve flow PR: https://api.github.com/repos/psbss/pr-agent/pulls/4413 ...\n", "record": {"elapsed": {"repr": "0:00:04.242592", "seconds": 4.242592}, "exception": null, "extra": {"command": "review"}, "file": {"name": "pr_reviewer.py", "path": "/app/pr_agent/tools/pr_reviewer.py"}, "function": "run", "level": {"icon": "ℹ️", "name": "INFO", "no": 20}, "line": 105, "message": "Auto approve flow PR: https://api.github.com/repos/psbss/pr-agent/pulls/4413 ...", "module": "pr_reviewer", "name": "pr_agent.tools.pr_reviewer", "process": {"id": [7](https://github.com/psbss/pr-agent/actions/runs/8656504864/job/23737122816#step:3:8), "name": "MainProcess"}, "thread": {"id": 140181854497664, "name": "MainThread"}, "time": {"repr": "2024-04-12 03:23:16.429153+00:00", "timestamp": 1712892196.429153}}}
{"text": "Auto-approval option is disabled\n", "record": {"elapsed": {"repr": "0:00:04.243368", "seconds": 4.243368}, "exception": null, "extra": {"command": "review"}, "file": {"name": "pr_reviewer.py", "path": "/app/pr_agent/tools/pr_reviewer.py"}, "function": "auto_approve_logic", "level": {"icon": "ℹ️", "name": "INFO", "no": 20}, "line": 421, "message": "Auto-approval option is disabled", "module": "pr_reviewer", "name": "pr_agent.tools.pr_reviewer", "process": {"id": 7, "name": "MainProcess"}, "thread": {"id": 1401[8](https://github.com/psbss/pr-agent/actions/runs/8656504864/job/23737122816#step:3:9)1854497664, "name": "MainThread"}, "time": {"repr": "2024-04-12 03:23:16.429929+00:00", "timestamp": 1712892196.429929}}}
from pr-agent.
from pr-agent.
Thank you so much for your quick response!
Okay I will discuss with our manager to be able to use the pro plan.
from pr-agent.
Related Issues (20)
- AWS Lambda unhandled exception HOT 6
- Trigger condition improvement in github actions
- Add persistent_comment option for `/describe` HOT 6
- URL
- Failed to review PR: name 'is_valid_file' is not defined HOT 1
- No need to check OPENAI_KEY when using non OpenAI models HOT 1
- Changelog commit includes option to start with "[skip ci]" > "[skip ci] Update CHANGELOG.md" HOT 4
- Can't log in to IntelliJ IDEA
- Can we use pr-agent with custom llm provider? HOT 7
- 'summarize_mode' is undefined HOT 5
- gpt-3.5-turbo context window is 16k HOT 3
- gitlab_provider asign personal_access_token to oauth_token may not work? HOT 5
- Clarifications on Azure Open AI configuration HOT 4
- /review broke - docker:latest HOT 3
- Replace 👀 with ❤️ when response is completed HOT 2
- Have `/config` print the working config as well as all the options HOT 1
- Do we take any benchmarks between different LLMs? HOT 1
- Add label base on pull request description. HOT 6
- PR-Agent Chrome Extension: AWS CodeCommit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pr-agent.