Skip to content

Commit

Permalink
fix(infra-meeting-release): exclude 'not planned' closed issues from …
Browse files Browse the repository at this point in the history
…the 'Done' ones (jenkins-infra#3113)
  • Loading branch information
lemeurherve authored and lemeurherveCB committed Jan 9, 2023
1 parent 1dfc852 commit 822b128
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/infra-meeting-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,24 @@ jobs:
result-encoding: string
script: |
const getMilestoneAsMarkdown = async function(milestone, milestoneName, issuesState) {
const opts = github.rest.issues.listForRepo.endpoint.merge({
...context.issue,
milestone,
state: issuesState,
sort: 'updated',
per_page: 100,
})
if (issuesState == 'closed') {
const opts = github.rest.issues.listForRepo.endpoint.merge({
...context.issue,
milestone,
state: issuesState,
reason: 'complete',
sort: 'updated',
per_page: 100,
})
} else {
const opts = github.rest.issues.listForRepo.endpoint.merge({
...context.issue,
milestone,
state: issuesState,
sort: 'updated',
per_page: 100,
})
}
const issues = await github.paginate(opts)
let markdown = ''
Expand Down

0 comments on commit 822b128

Please sign in to comment.