feat: add discussion url

This commit is contained in:
xiaobing.wang
2023-11-22 14:46:39 +08:00
parent d3582a86ab
commit 7581d2acdb

View File

@@ -37,6 +37,7 @@ type Issue struct {
// Discussion represents a GitHub discussion.
type Discussion struct {
ID string `json:"id"`
Url string `json:"url"`
Title string `json:"title"`
BodyText string `json:"-"`
Labels []Label `json:"labels"`
@@ -334,6 +335,7 @@ func (s *GitHubService) fetchDiscussions(ctx context.Context, afterCursor *githu
for _, node := range query.Repository.Discussions.Nodes {
discussion := &Discussion{
ID: node.ID,
Url: node.Url,
Title: node.Title,
BodyText: node.BodyText,
}