You've already forked mpbot-github
mirror of
https://github.com/macports/mpbot-github.git
synced 2026-03-31 14:46:03 -07:00
Add prDB
This commit is contained in:
@@ -24,6 +24,7 @@ type PortMaintainer struct {
|
||||
|
||||
var tracDB *sql.DB
|
||||
var wwwDB *sql.DB
|
||||
var prDB *sql.DB
|
||||
|
||||
// Create connections to DBs
|
||||
func init() {
|
||||
@@ -36,6 +37,10 @@ func init() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
prDB, err = sql.Open("postgres", os.Getenv("PR_DB"))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func GetGitHubHandle(email string) (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user