Skip to content

Commit

Permalink
Attempt to add author to pr type
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Jan 26, 2024
1 parent 69e0b9c commit 433585b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/tools/release/notes/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type pr struct {
number uint64
title string
labels []string
author string
}

// prLister returns a list of PRs.
Expand All @@ -54,6 +55,7 @@ type notesEntry struct {
title string
section string
prNumber string
author string
}

// prProcessor generates notes entries for a list of PRs.
Expand Down
1 change: 1 addition & 0 deletions hack/tools/release/notes/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ type githubPR struct {
Number uint64 `json:"number"`
Title string `json:"title"`
Labels []githubLabel `json:"labels"`
Author string `json:"author"`
}

type githubLabel struct {
Expand Down
1 change: 1 addition & 0 deletions hack/tools/release/notes/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (l *githubFromToPRLister) listPRs() ([]pr, error) {
number: p.Number,
title: p.Title,
labels: labels,
author: p.Author,
})
}

Expand Down

0 comments on commit 433585b

Please sign in to comment.