Skip to content
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

Use sqlite to track the repos and whether or not you have contributed to them #3

Open
sharunkumar opened this issue Jan 15, 2024 · 1 comment

Comments

@sharunkumar
Copy link

Like, after raising a pr, you can have a column to track it. URLs and everything.

@arunsathiya
Copy link
Owner

Makes sense to me! At this time, I am just remembering organizations that I have patched manually, and have some logic to bail when there's already a PR for that repository.

// Check for existing PRs
prListCmd := "gh pr list --author \"@me\""
prList := exec.Command("bash", "-c", prListCmd)
prList.Dir = repoDir
prListOutput, err := prList.Output()
if err != nil {
fmt.Println("Error in prList check:", err)
return
}

Database to store and check PRs can be an added guard. 👍🏼

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

No branches or pull requests

2 participants