Skip to content

Lint API usage - #6671

Merged
fregante merged 3 commits into
mainfrom
api-clean
May 20, 2023
Merged

fregante merged 3 commits into
mainfrom
api-clean

Conversation

@fregante

@fregante fregante commented May 20, 2023 •

Copy link
Copy Markdown
Member

This PR

  • Simplifies the API import
  • Adds an uncached method to avoid the "cache buster"
  • Drops an old unused header

@fregante fregante added the meta Related to Refined GitHub itself label May 20, 2023
@fregante fregante changed the title Lint API usage Meta: Use variables in GraphQL queries May 20, 2023
@fregante fregante changed the title Meta: Use variables in GraphQL queries Lint API usage May 20, 2023
headers: {
'User-Agent': 'Refined GitHub',
Authorization: `bearer ${personalToken}`,
Accept: 'application/vnd.github.merge-info-preview+json',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It was added in #5768 (review) but the field was then removed.

@fregante
fregante marked this pull request as ready for review May 20, 2023 17:12
@fregante
fregante enabled auto-merge (squash) May 20, 2023 17:12
@fregante
fregante merged commit 9964869 into main May 20, 2023
@fregante
fregante deleted the api-clean branch May 20, 2023 17:14
};

export const v4 = mem(async (
export const v4uncached = async (

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If anyone is reviewing this PR post-merge… naming suggestions still welcome 😅

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Happen to think its good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

2 participants