-
Notifications
You must be signed in to change notification settings - Fork 129
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: introduce dedicated option for GitHub API endpoint #829
Conversation
| Variable | Description | | ||
| ------------------------------ | ------------------------------------------------------------------- | | ||
| `GITHUB_TOKEN` or `GH_TOKEN` | **Required.** The token used to authenticate with GitHub. | | ||
| `GITHUB_URL` or `GH_URL` | The GitHub server endpoint. | | ||
| `GITHUB_PREFIX` or `GH_PREFIX` | The GitHub API prefix, relative to `GITHUB_URL`. | | ||
| `GITHUB_API_URL` | The GitHub API endpoint. Note that this overwrites `GITHUB_PREFIX`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Independent of this change it might also be worth to deprecate some of these variables to align with what is currently supported: https://docs.github.com/en/actions/learn-github-actions/variables.
Server and API endpoints can be different. Some code parts, e.g. issue parsing, need the server endpoint and we should make this explicit.
004a763
to
0bb4285
Compare
thanks for reporting and investigating. i hadnt noticed this behavior, but see it in other releases now that i'm looking for it. i'm unsure when it began or what it might be related to. i havent investigated very far yet, but it seems odd to me to need to adjust for this. since octokit is used for the interactions with github, most of the differences between using github.com and a self-hosted github enterprise server instance should be covered by the existing config options. this feels more like a regression or octokit api mismatch somewhere to me, but would need to investigate further to understand better. i'm curious if @gr2m is aware of anything obvious that might be contributing to this situation |
I'll try to have a look this week |
I'm quite sure it's not an Octokit (configuration) issue. The regular API requests via Octokit are working fine. The problem occurs when the plugin code is filtering detected issue references:
TLDR: I guess this broke in #269, with it's 4th birthday tomorrow :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outstanding pull request, thank you @fgreinacher 💐 Changes and reasoning all look good to me, and code + tests are great 👍🏼
🎉 This PR is included in version 10.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Server and API endpoints can be different. Some code parts, e.g. issue parsing, need the server endpoint and we should make this explicit. The existing
githubApiPathPrefix
option is not sufficient when the API is served from a different host (likeapi.github.com
).Fixes #827
⚒️ with ❤️ by Siemens