Skip to content
Merged

qf #17

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
githubtasks
.test

githubtasks_cli/githubtasks_cli
githubtasks_cli/githubtasks_cli
*.txt
5 changes: 3 additions & 2 deletions githubtasks_cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"flag"
"log"
"os"
"strings"

"github.com/brotherlogic/goserver/utils"
"google.golang.org/grpc"
Expand Down Expand Up @@ -48,8 +49,8 @@ func main() {
pname := scanner.Text()
project := &pb.Project{Name: pname}
for scanner.Scan() {
milestone := scanner.Text()
project.Milestones = append(project.Milestones, &pb.Milestone{Name: milestone})
elems := strings.Split(scanner.Text(), "~")
project.Milestones = append(project.Milestones, &pb.Milestone{Name: elems[0], GithubProject: elems[1]})
}

_, err = client.AddProject(ctx, &pb.AddProjectRequest{Add: project})
Expand Down
109 changes: 56 additions & 53 deletions proto/githubtasks.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions proto/githubtasks.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ message config {
message Project {
string name = 1;
repeated Milestone milestones = 2;
string github_project = 3;
}

message Milestone {
Expand All @@ -25,14 +24,15 @@ message Milestone {
}
MilestoneState state = 3;
repeated Task tasks = 4;
string github_project = 5;
}

message Task {
string title = 1;
string body = 2;

enum TaskState {
CREATED = 0
CREATED = 0;
IDLE = 1;
ACTIVE = 2;
COMPLETE = 3;
Expand Down