Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add IsOrphan and Weight on airtable #120

Merged
merged 1 commit into from
Oct 16, 2018
Merged
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
6 changes: 6 additions & 0 deletions cmd_airtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,13 @@ func (i Issue) ToAirtableRecord() airtableRecord {
Body: i.Body,
State: i.State,
Locked: i.Locked,
IsOrphan: i.IsOrphan,
Author: i.AuthorID,
Comments: i.Comments,
Milestone: i.Milestone,
Upvotes: i.Upvotes,
Downvotes: i.Downvotes,
Weight: i.Weight(),
Errors: "",
},
}
Expand All @@ -225,8 +227,10 @@ type airtableIssue struct {
Milestone string
Upvotes int
Downvotes int
IsOrphan bool
Labels []string
Assignees []string
Weight int
Errors string
}

Expand Down Expand Up @@ -261,6 +265,8 @@ func (ai airtableIssue) Equals(other airtableIssue) bool {
ai.Author == other.Author &&
ai.Comments == other.Comments &&
ai.Milestone == other.Milestone &&
ai.Weight == other.Weight &&
ai.IsOrphan == other.IsOrphan &&
ai.Upvotes == other.Upvotes &&
ai.Downvotes == other.Downvotes &&
sameSlice(ai.Labels, other.Labels) &&
Expand Down