diff options
author | Michael Muré <batolettre@gmail.com> | 2024-08-25 20:40:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 18:40:23 +0000 |
commit | 3a4b8805dfd794cc25f57e99c73ddec651805af1 (patch) | |
tree | b6af67c761c96b323400d061db22ceed73fb0bb0 /bridge/jira | |
parent | c3ff05f95bdfad6c2ea4cb899024fd47ac503b5f (diff) | |
download | git-bug-3a4b8805dfd794cc25f57e99c73ddec651805af1.tar.gz |
core: make label a common type, in a similar fashion as for status (#1252)
This will be useful for Board, and likely code review support later
Diffstat (limited to 'bridge/jira')
-rw-r--r-- | bridge/jira/client.go | 4 | ||||
-rw-r--r-- | bridge/jira/import.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bridge/jira/client.go b/bridge/jira/client.go index 53dfad6e..95856f05 100644 --- a/bridge/jira/client.go +++ b/bridge/jira/client.go @@ -16,7 +16,7 @@ import ( "github.com/pkg/errors" - "github.com/git-bug/git-bug/entities/bug" + "github.com/git-bug/git-bug/entities/common" ) var errDone = errors.New("Iteration Done") @@ -1230,7 +1230,7 @@ func (client *Client) UpdateComment(issueKeyOrID, commentID, body string) ( } // UpdateLabels changes labels for an issue -func (client *Client) UpdateLabels(issueKeyOrID string, added, removed []bug.Label) (time.Time, error) { +func (client *Client) UpdateLabels(issueKeyOrID string, added, removed []common.Label) (time.Time, error) { url := fmt.Sprintf( "%s/rest/api/2/issue/%s/", client.serverURL, issueKeyOrID) var responseTime time.Time diff --git a/bridge/jira/import.go b/bridge/jira/import.go index 0d7d1f1e..bd5a67d8 100644 --- a/bridge/jira/import.go +++ b/bridge/jira/import.go @@ -357,7 +357,7 @@ func getIndexDerivedID(jiraID string, idx int) string { return fmt.Sprintf("%s-%d", jiraID, idx) } -func labelSetsMatch(jiraSet []string, gitbugSet []bug.Label) bool { +func labelSetsMatch(jiraSet []string, gitbugSet []common.Label) bool { if len(jiraSet) != len(gitbugSet) { return false } |