Coder Social home page Coder Social logo

Comments (5)

mrT23 avatar mrT23 commented on May 30, 2024 1

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

image

image
image

from pr-agent.

mrT23 avatar mrT23 commented on May 30, 2024

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:

image

from pr-agent.

psbss avatar psbss commented on May 30, 2024

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.

mrT23 avatar mrT23 commented on May 30, 2024

image

from pr-agent.

psbss avatar psbss commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.