Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use correct URL to create installation access token for octokit.graphql() and GHES #221

Merged
merged 4 commits into from
Oct 20, 2020

Conversation

gr2m
Copy link
Contributor

@gr2m gr2m commented Oct 20, 2020

@@ -307,4 +307,50 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
token: "secret",
});
});

it.only("createAppAuth with GraphQL + GHES (probot/probot#1386)", async () => {
Copy link
Member

Choose a reason for hiding this comment

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

don't commit it.only ⚠️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry I should have made clear that this is still work in progress.

CI will fail if we miss an .only because the test coverage will fall below 100%

Copy link
Member

Choose a reason for hiding this comment

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

Never thought it this way. Test coverage prevents you from missing .only or commenting tests. Cool!

@gr2m gr2m marked this pull request as draft October 20, 2020 17:35
gr2m added 2 commits October 20, 2020 10:39
….graphql()` and GHES

The customized baseUrl passed to `@octokit/graphql` is there for legacy reasons. It is no longer necessary since octokit/graphql.js#186
@gr2m gr2m added the Type: Bug Something isn't working as documented label Oct 20, 2020
@gr2m gr2m marked this pull request as ready for review October 20, 2020 17:43
@gr2m gr2m merged commit 14e8a51 into master Oct 20, 2020
@gr2m gr2m deleted the probot/probot#1386 branch October 20, 2020 17:50
@github-actions
Copy link
Contributor

🎉 This PR is included in version 3.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub Enterprise Server: context.github.graphql() fails with 406
2 participants