Skip to content

Commit

Permalink
try sams formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Apr 28, 2023
1 parent 80c6609 commit 9fbd4ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package main
import (
"fmt"
"os"
"text/tabwriter"
)

func main() {
w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
subscribedRepos, envToken, err := getEnvVariables()
if err != nil {
fmt.Println(err)
Expand All @@ -29,7 +31,10 @@ func main() {
}

for _, pr := range pullRequests {
fmt.Printf("%s: createdAt %s\n", pr.URL, pr.CreatedAt)
//fmt.Printf("%s: createdAt %s\n", pr.URL, pr.CreatedAt)
fmt.Fprintf(w, "%s:\tcreatedAt %s\n", pr.URL, pr.CreatedAt)
}
}

w.Flush()
}

0 comments on commit 9fbd4ba

Please sign in to comment.