Skip to content

Commit

Permalink
Merge pull request #120 from moul/dev/moul/airtable-orphan-weight
Browse files Browse the repository at this point in the history
feat: add IsOrphan and Weight on airtable
  • Loading branch information
moul authored Oct 16, 2018
2 parents c0d82fd + ea33c6b commit 0dbf7b6
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 0dbf7b6

Please sign in to comment.