Skip to content

Solving issue #22, Add export to github #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PritamP20
Copy link

@PritamP20 PritamP20 commented Mar 12, 2025

#22

Screen.Recording.2025-03-12.at.9.1.mp4

https://youtu.be/L7OS7XhUbbc

  • I've used a GitHub OAuth app to obtain user authorization.
  • After authorization, I can create a new repository on their behalf and push code/files to it.
  • Currently, I'm pushing empty files or README files, but I can also push entire project folders or codebases if needed.
  • add git ssh, view VS Code, view in GitHub etc

Done with all the requirements, check it once,

@PritamP20
Copy link
Author

If any suggestion and feeback do let me know!!1

@PritamP20 PritamP20 closed this Mar 12, 2025
@PritamP20 PritamP20 reopened this Mar 12, 2025
@PritamP20 PritamP20 changed the title Solving issue #26, Add export to github Solving issue #22, Add export to github Mar 12, 2025
@Praashh
Copy link

Praashh commented Mar 12, 2025

Why do we need an extra oAuth layer on this PR, since we are using github OAuth using clerk, we can simple get the access token from there and use.

@PritamP20
Copy link
Author

No that OAuth is for install the Oauth gitapp (it is the name of the git app), which will give us the access to the user's GitHub and make changing (like creating git repo, pushing etc) to it,

for the below git app we need the authorization from the user
Screenshot 2025-03-12 at 10 20 13 PM

@Praashh
Copy link

Praashh commented Mar 13, 2025

That's correct, but if a user logs in without Github, we can ask them to sign in with Github; otherwise, we can take the token from the clerk.

@PritamP20
Copy link
Author

Yeah, that's true. We can do that. I will try adding that also.

@PritamP20
Copy link
Author

github auth is not there in the current clerk which is available in the project, we might have to update the clerk setting to add github auth then we can fetch the token and use it

@madhukar0721
Copy link

yes Prashh is saying the same that if user has logged in through github to our application then we can just ask Clerk to give AuthToken to us instead of again generating Token. But if User has logged using any other method such as goggle sign in then the only option we have to authorise through github and generate github token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants