Skip to content

Conversation

@SukhvirKooner
Copy link
Contributor

@SukhvirKooner SukhvirKooner commented Mar 20, 2025

Summary

Update: github.request with Advanced Search

Summary

This update applies the new advanced search parameter to fix the deprecation warning and enable advanced search capabilities in the REST API.


Changes Made

const searchResult = await github.request('GET /search/issues', {
  q: searchQuery,
  advanced_search: true, //  Enables advanced search (AND/OR/nested queries)
  headers: {
    'Accept': 'application/vnd.github+json',
  },
});

headers: {
  'Accept': 'application/vnd.github+json'
}

  • Explicitly sets the Accept header to indicate you expect JSON responses.

@MisRob MisRob self-requested a review March 21, 2025 05:11
@MisRob MisRob self-assigned this Mar 21, 2025
Copy link
Member

@MisRob MisRob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @SukhvirKooner, let me re-test everything now.

@MisRob MisRob merged commit 6f31177 into learningequality:main Mar 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants