Skip to content

Commit 4d5734a

Browse files
authored
feat: Use github.api_url as default for githubBaseUrl (#243 by @fty4)
1 parent 47b15d5 commit 4d5734a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ feat(ui): Add `Button` component
9191
The subject "{subject}" found in the pull request title "{title}"
9292
didn't match the configured pattern. Please ensure that the subject
9393
doesn't start with an uppercase character.
94-
# If you use GitHub Enterprise, you can set this to the URL of your server
94+
# The GitHub base URL will be automatically set to the correct value from the GitHub context variable.
95+
# If you want to override this, you can do so here (not recommended).
9596
githubBaseUrl: https://github.myorg.com/api/v3
9697
# If the PR contains one of these newline-delimited labels, the
9798
# validation is skipped. If you want to rerun the validation when

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ inputs:
3333
description: "Related to `validateSingleCommit` you can opt-in to validate that the PR title matches a single commit to avoid confusion."
3434
required: false
3535
githubBaseUrl:
36-
description: "If you use Github Enterprise, you can set this to the URL of your server (e.g. https://github.myorg.com/api/v3)"
36+
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)."
3737
required: false
38+
default: '${{ github.api_url }}'
3839
ignoreLabels:
3940
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."
4041
required: false

0 commit comments

Comments
 (0)