-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
- Loading branch information
1 parent
a2219aa
commit 7a4806b
Showing
10 changed files
with
144 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package cmd | ||
|
||
import "github.com/shurcooL/githubv4" | ||
|
||
// User is a GitHub user, see https://docs.github.com/en/graphql/reference/objects#user. | ||
type User struct { | ||
ID githubv4.ID | ||
} | ||
|
||
// Project is a GitHub project, see https://docs.github.com/en/graphql/reference/objects#projectv2. | ||
type Project struct { | ||
ID githubv4.ID | ||
Title githubv4.String | ||
Fields struct { | ||
Nodes []ProjectField | ||
} `graphql:"fields(first: 100)"` | ||
URL githubv4.URI | ||
} | ||
|
||
// ProjectField is a GitHub project field, see https://docs.github.com/en/graphql/reference/objects#projectv2field. | ||
type ProjectField struct { | ||
Typename githubv4.String `graphql:"__typename"` | ||
ProjectV2FieldCommon `graphql:"... on ProjectV2FieldCommon"` | ||
Iteration struct { | ||
Configuration struct { | ||
Duration githubv4.Int | ||
StartDay githubv4.Int | ||
} | ||
} `graphql:"... on ProjectV2IterationField"` | ||
SingleSelect struct { | ||
Options []ProjectSingleSelectFieldOption | ||
} `graphql:"... on ProjectV2SingleSelectField"` | ||
} | ||
|
||
// ProjectV2FieldCommon is a GitHub project field common, see https://docs.github.com/en/graphql/reference/interfaces#projectv2fieldcommon. | ||
type ProjectV2FieldCommon struct { | ||
ID githubv4.ID | ||
DataType githubv4.ProjectV2FieldType | ||
Name githubv4.String | ||
} | ||
|
||
// ProjectSingleSelectFieldOption is a GitHub field option, see https://docs.github.com/en/graphql/reference/objects#projectv2singleselectfieldoption. | ||
type ProjectSingleSelectFieldOption struct { | ||
ID githubv4.String | ||
Name githubv4.String | ||
} | ||
|
||
// ProjectItem is a GitHub project item, see https://docs.github.com/en/graphql/reference/objects#projectv2item. | ||
type ProjectItem struct { | ||
ID githubv4.ID | ||
DatabaseID githubv4.Int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package cmd | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package cmd | ||
|
||
type loggerI interface { | ||
Infof(format string, args ...any) | ||
Infoln(args ...any) | ||
Warnf(format string, args ...any) | ||
Warnln(args ...any) | ||
Errorf(format string, args ...any) | ||
Errorln(args ...any) | ||
Debugf(format string, args ...any) | ||
Debugln(args ...any) | ||
PrintJSON(msg string, v any) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.