Skip to content

Commit

Permalink
Merge pull request #124 from everpeace/display-similar-issue-status
Browse files Browse the repository at this point in the history
display statuses of similar conversations
  • Loading branch information
tstromberg authored Jun 3, 2020
2 parents e8f5e4c + 653cd07 commit ac6a76f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/hubbub/similar.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type RelatedConversation struct {
Title string `json:"title"`
Author *github.User `json:"author"`
Type string `json:"type"`
State string `json:"state"`
Created time.Time `json:"created"`
}

Expand Down Expand Up @@ -197,6 +198,7 @@ func makeRelated(c *Conversation) *RelatedConversation {
Title: c.Title,
Author: c.Author,
Type: c.Type,
State: c.State,
Created: c.Created,
}
}
2 changes: 1 addition & 1 deletion site/collection.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<a href="{{ .URL }}" title="{{ .LastCommentBody }}"><strong>{{ .Title }}</strong></a>
{{ if .Similar }}<div class="similar"><ul>
{{ range .Similar }}
<li><a href="{{ .URL }}" title="Title is similar to #{{ .ID }}">Similar to {{ if eq .Type "pull_request" }}PR{{ end }}#{{ .ID }}: {{ .Title }}</a></li>
<li><a href="{{ .URL }}" title="Title is similar to #{{ .ID }}">Similar to {{ if eq .Type "pull_request" }}PR{{ end }}#{{ .ID }}({{ .State }}): {{ .Title }}</a></li>
{{ end }}
</div>
{{ end }}
Expand Down

0 comments on commit ac6a76f

Please sign in to comment.