File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ description: >
6
6
Publish diff coverage report as PR comment, and create a coverage badge
7
7
to display on the readme.
8
8
inputs :
9
+ GITHUB_BASE_URL :
10
+ description : >
11
+ The base URL for the GitHub API, typically used to specify custom endpoints
12
+ for GitHub Enterprise Server (e.g., `https://github.mycompany.com/api/v3`).
13
+ Defaults to `https://api.github.com` for GitHub.com.
14
+ default : " https://api.github.com"
15
+ required : false
9
16
GITHUB_TOKEN :
10
17
description : >
11
18
A GitHub token to write comments and write the badge & coverage data
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def main():
34
34
config = settings .Config .from_environ (environ = os .environ )
35
35
36
36
github_session = httpx .Client (
37
- base_url = "https://api.github.com" ,
37
+ base_url = config . GITHUB_BASE_URL ,
38
38
follow_redirects = True ,
39
39
headers = {"Authorization" : f"token { config .GITHUB_TOKEN } " },
40
40
)
You can’t perform that action at this time.
0 commit comments