add(taskwarrior): merge for remote changes without local changes
This commit is contained in:
@@ -52,7 +52,7 @@ func (project *Project) Fetch() error {
|
|||||||
issue_comments = append(issue_comments, gitea.Comment{
|
issue_comments = append(issue_comments, gitea.Comment{
|
||||||
Body: strings.ReplaceAll(issue.Body, "\r\n", "\n"),
|
Body: strings.ReplaceAll(issue.Body, "\r\n", "\n"),
|
||||||
Created_at: issue.Created_at,
|
Created_at: issue.Created_at,
|
||||||
Updated_at: issue.Updated_at,
|
Updated_at: issue.Created_at,
|
||||||
})
|
})
|
||||||
for _, comment := range comments {
|
for _, comment := range comments {
|
||||||
if comment.Issue_url == issue.Html_url {
|
if comment.Issue_url == issue.Html_url {
|
||||||
@@ -210,7 +210,7 @@ func (issue *Issue) MergeTask(task taskwarrior.Task) (taskwarrior.Task, error) {
|
|||||||
task.Status = prompt(task.Status, issue.git_issue.State, task.Status)
|
task.Status = prompt(task.Status, issue.git_issue.State, task.Status)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(task.Annotations) != len(issue.comments)+1 {
|
if len(task.Annotations) != len(issue.comments) {
|
||||||
var annotations []string
|
var annotations []string
|
||||||
annotations = append(annotations, issue.git_issue.Body)
|
annotations = append(annotations, issue.git_issue.Body)
|
||||||
for _, annotation := range task.Annotations {
|
for _, annotation := range task.Annotations {
|
||||||
|
|||||||
Reference in New Issue
Block a user