feat: add useSSHSourceFormat option to configure source URL format in Wiki documentation #146
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 configuration option to use SSH format for source links in generated Wiki documentation, along with several related updates across the codebase. Here are the most important changes:
Configuration Updates:
use-ssh-source-format
option to the configuration, allowing users to choose between SSH and HTTPS formats for source links in Wiki documentation (.github/workflows/ci.yml
,action.yml
,src/types/index.ts
,src/config.ts
). [1] [2] [3] [4]Documentation and Workflow Changes:
README.md
to include the newuse-ssh-source-format
parameter and its description. [1] [2].github/workflows/test.yml
to useSonarQube Scan
instead ofSonarCloud Scan
.Code and Test Updates:
__mocks__/config.ts
and__tests__/config.test.ts
to support and test the newuse-ssh-source-format
configuration option. [1] [2] [3]__tests__/wiki.test.ts
to ensure correct formatting of source URLs based on theuseSSHSourceFormat
setting.Implementation Details:
formatModuleSource
function insrc/wiki.ts
to format source URLs based on the new configuration setting. [1] [2]These changes collectively enhance the flexibility and configurability of the module by allowing users to specify their preferred source URL format in the generated Wiki documentation.
Fixes #136