Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds flexibility to the GitHub Actions by introducing an api_url input for configuring the GitHub API endpoint, updates Octokit initialization to use it, and documents the new parameter.
- Introduces
api_urlinput and default value in action.yml - Updates Octokit calls in
src/messages.tsto passbaseUrlfromapi_url - Updates README to document the new
api_urlinput
Reviewed Changes
Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/messages.ts | Passes api_url input as baseUrl to Octokit client |
| action.yml | Declares api_url input with default |
| README.md | Documents api_url input in usage table |
Files not reviewed (1)
- package.json: Language not supported
Comments suppressed due to low confidence (2)
action.yml:15
- The
api_urlinput is declared as optional, but code treats it as required. Consider making this input required or providing a reliable default to avoid runtime errors.
api_url:
src/messages.ts:14
- [nitpick] Add or update tests to verify that providing a custom
api_urlcauses Octokit to send requests to the configured baseUrl.
baseUrl: core.getInput('api_url', { required: true })
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
scottluskcis
approved these changes
Jul 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull request introduces a new input parameter,
api_url, to allow customization of the GitHub API URL, updates the package version to2.5.0, and modifies the code to use the new input parameter for API requests. These changes enhance flexibility and ensure compatibility with alternative GitHub API endpoints.