summaryrefslogtreecommitdiff
path: root/cmd/stanuki/main.go
blob: 9b4fca3c5a2ccc5820770739acdf081b3b34a0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"context"
	"fmt"

	"github.com/xlgmokha/x/pkg/env"
	"gitlab.com/mokhax/stanuki/pkg/gitlab"
)

func main() {
	gl := gitlab.New(context.TODO(), env.Fetch("GITLAB_TOKEN", ""))

	gl.Group(9970).EachIssue(func(issue *gitlab.Issue) {
		fmt.Printf("%v: %v\n", issue.ID, issue.Title)
	})
}