-
Notifications
You must be signed in to change notification settings - Fork 82
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
Use project ID for API calls if available #809
Conversation
6bd91f8
to
743ab0a
Compare
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.
Copilot reviewed 6 out of 14 changed files in this pull request and generated no comments.
Files not reviewed (8)
- test/get-repo-id.test.js: Evaluated as low risk
- test/publish.test.js: Evaluated as low risk
- lib/success.js: Evaluated as low risk
- lib/fail.js: Evaluated as low risk
- lib/definitions/errors.js: Evaluated as low risk
- lib/publish.js: Evaluated as low risk
- test/integration.test.js: Evaluated as low risk
- test/fail.test.js: Evaluated as low risk
c7efd3b
to
2102ec3
Compare
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.
Copilot reviewed 5 out of 13 changed files in this pull request and generated no comments.
Files not reviewed (8)
- test/get-repo-id.test.js: Evaluated as low risk
- lib/get-repo-id.js: Evaluated as low risk
- test/publish.test.js: Evaluated as low risk
- lib/success.js: Evaluated as low risk
- lib/fail.js: Evaluated as low risk
- lib/definitions/errors.js: Evaluated as low risk
- test/integration.test.js: Evaluated as low risk
- lib/publish.js: Evaluated as low risk
Comments suppressed due to low confidence (1)
test/get-project-context.test.js:6
- The URL 'https://gitlbab.com' seems to be a typo. It should be 'https://gitlab.com'.
getProjectContext({ env: {} }, "https://gitlbab.com", "https://api.gitlab.com", "https://gitlab.com/owner/repo.git")
@JonasSchubert Would you have a look at this? 🙇 |
Sure @fgreinacher |
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.
Thanks @fgreinacher I like the implementation a lot and also thanks for providing the commits as your train of thoughts. Helped a lot!
Beside one question regarding exposing a variable, and the pre-existing typo it looks good to me.
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.
LGTM 👍
🎉 This PR is included in version 13.2.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This MR safely implements the suggestion from #580 (comment).
If
CI_PROJECT_ID
is available it will be used for accessing API resources. If it is not the previous logic to useCI_PROJECT_PATH
will apply.I'd suggest to review this commit-by-commit to be able to follow my train of thought.
Closes #543