From ea33c6bd5096ef8a7569802962bc941bc342ac45 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Tue, 16 Oct 2018 15:53:23 +0200 Subject: [PATCH] feat: add IsOrphan and Weight on airtable --- cmd_airtable.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd_airtable.go b/cmd_airtable.go index 8e5f82635..bd0f07da3 100644 --- a/cmd_airtable.go +++ b/cmd_airtable.go @@ -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: "", }, } @@ -225,8 +227,10 @@ type airtableIssue struct { Milestone string Upvotes int Downvotes int + IsOrphan bool Labels []string Assignees []string + Weight int Errors string } @@ -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) &&