Unable to push the code to github #113

Open
opened 2023-10-03 04:26:23 -04:00 by omcaaaar · 5 comments
omcaaaar commented 2023-10-03 04:26:23 -04:00 (Migrated from github.com)

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

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: <my github token> GIT_USERNAME: <my github username> GIT_EMAIL: <my gihub 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 2023-10-03 08:48:43 -04:00 (Migrated from github.com)

Can you provide a python terminal log?

Can you provide a python terminal log?
omcaaaar commented 2023-10-05 02:41:33 -04:00 (Migrated from github.com)

MicrosoftTeams-image (3)

![MicrosoftTeams-image (3)](https://github.com/kuafuai/DevOpsGPT/assets/46836328/b4f5b5bf-c4f0-4e39-ab7e-4304081db253)
booboosui commented 2023-11-06 21:16:59 -05:00 (Migrated from github.com)

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

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 2023-11-28 00:54:07 -05:00 (Migrated from github.com)

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.

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 2024-03-06 11:57:37 -05:00 (Migrated from github.com)

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

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
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kuafuai/DevOpsGPT#113
No description provided.