Skip to content

Add labels, createdAt, state and comments to issue object

Latest
Compare
Choose a tag to compare
@vinitshahdeo vinitshahdeo released this 11 Oct 09:30
· 22 commits to main since this release
  • With this release, the response will also contain labels, createdAt, state and comments. Below is the new response structure:
[
  {
    title: "Add More Inspirational Quotes",
    link: "https://github.com/vinitshahdeo/inspirational-quotes/issues/4",
    labels: ['good first issue', 'help wanted', 'hacktoberfest'],
    state: 'open',
    comments: 2,
    createdAt: 'Monday, October 11th 2021'
  },
  {
    title: "Create a React App to filter Hacktoberfest issues on the basis of languages and labels",
    link: "https://github.com/vinitshahdeo/hacktoberfest-issue-hunt/issues/1",
    labels: ['good first issue', 'help wanted', 'hacktoberfest'],
    state: 'open',
    comments: 5,
    createdAt: 'Sunday, October 10th 2021'
  }
]
  • Introduced a new option ignoreClosed. This is true by default. Make it false in case you want to fetch closed issues as well.