Skip to content

Commit

Permalink
feat: Use github.api_url as default for githubBaseUrl (#243 by @fty4
Browse files Browse the repository at this point in the history
)
  • Loading branch information
fty4 committed Nov 3, 2023
1 parent 47b15d5 commit 4d5734a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -91,7 +91,8 @@ feat(ui): Add `Button` component
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
# If you use GitHub Enterprise, you can set this to the URL of your server
# The GitHub base URL will be automatically set to the correct value from the GitHub context variable.
# If you want to override this, you can do so here (not recommended).
githubBaseUrl: https://github.myorg.com/api/v3
# If the PR contains one of these newline-delimited labels, the
# validation is skipped. If you want to rerun the validation when
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Expand Up @@ -33,8 +33,9 @@ inputs:
description: "Related to `validateSingleCommit` you can opt-in to validate that the PR title matches a single commit to avoid confusion."
required: false
githubBaseUrl:
description: "If you use Github Enterprise, you can set this to the URL of your server (e.g. https://github.myorg.com/api/v3)"
description: "The GitHub base URL will be automatically set to the correct value from the GitHub context variable. If you want to override this, you can do so here (not recommended)."
required: false
default: '${{ github.api_url }}'
ignoreLabels:
description: "If the PR contains one of these labels (newline delimited), the validation is skipped. If you want to rerun the validation when labels change, you might want to use the `labeled` and `unlabeled` event triggers in your workflow."
required: false
Expand Down

0 comments on commit 4d5734a

Please sign in to comment.