kuafuai / DevOpsGPT

Multi agent system for AI-driven software development. Combine LLM with DevOps tools to convert natural language requirements into working software. Supports any development language and extends the existing code.
https://www.kuafuai.net
Other
6.48k stars 830 forks source link

Unable to push the code to github #113

Open omcaaaar opened 11 months ago

omcaaaar commented 11 months ago

Hi,

What changes do I have to make in order to push the DevOpsGPT generated code to my github?

I have made changes in env.yaml file as per following: DEVOPS_TOOLS: "github" GIT_ENABLED: true GIT_URL: "https://github.com" GIT_API: "https://api.github.com" GIT_TOKEN: GIT_USERNAME: GIT_EMAIL:

When I click on "submit code", it tries to push the code to kuafuai's repo and gives following error: "Failed to push code. In the ./workspace/19/kuafuai/template_freestyleApp directory. git push failed."

booboosui commented 11 months ago

Can you provide a python terminal log?

omcaaaar commented 11 months ago

MicrosoftTeams-image (3)

booboosui commented 10 months ago

It seems that your token is incorrect. You can create the token here: https://github.com/settings/tokens. Be careful to give the token read and write permission to the warehouse

In addition, the default repository is stored in the kuafuai organization, you do not have permission to push code to this repository, you can fork the code to your own repository(https://github.com/kuafuai/template_freestyleApp), and modify the repository path in the application breeding to make it effective

Shahabmustafa commented 9 months ago

Please create a new token Personal Access Tokens > Generate New Token > Token Scopes > Copy and Store the Token Securely > Use the Token

Remember, personal access tokens are sensitive and grant access to your GitHub account or repositories, so ensure they are handled securely and with care. Rotate or revoke tokens that are no longer needed to maintain account security.

Manishgithub2021 commented 6 months ago

I am unable to push code to my repo,and its always trying to push to kuafuai/template path . Where to make changes ,so that it can be pushed to ,whatever github/gitlab path given in env.yml