CODEBALL SUGGESTER

Codeball SUGGESTER turns code review comments on your Pull Request into code suggestions. Powered by OpenAI Codex.

Want to see something cool?

Pick your language
Pick your comment
Adding code #1337
Open
HappyCoder wants to merge more-stuff into main
db.go
1
+
package db
2
+
3
+
import (
4
+
	"time"
5
+
6
+
	"github.com/jmoiron/sqlx"
7
+
8
+
	_ "github.com/lib/pq"
9
+
)
10
+
11
+
type Path string
12
+
13
+
func NewPsql(dbSourceURL string) *sqlx.DB {
14
+
	db, err := sqlx.Open("postgres", dbSourceURL)
15
+
	if err != nil {
16
+
            panic(err)
17
+
	}
18
+
19
+
	db.SetMaxOpenConns(25)
20
+
	db.SetMaxIdleConns(25)
21
+
	db.SetConnMaxLifetime(5 * time.Minute)
22
+
FriendlyReviewer
FriendlyReviewer
Codeball
Codeball
23
+
	return db
24
+
}

P.S.: The suggestions on this page might be simulated, but they are from real examples. Just test it yourself ;)

👉👉👉
Add to your repo
👈👈👈

Questions and some answers

How does it work?

Codeball Suggester uses OpenAI Codex, a machine learning model to convert code review comments into suggestions that are ready to approve. It draws context from the your project and your codebase to write code following your format and style.

What languages does it support?

Codeball Suggester supports Go, JavaScript, TypeScript, Python, PHP, Ruby, Java, and Shell.

How does it run?

Codeball is triggered via GitHub Actions, and uses the Codeball API to generate suggestions.