| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b588811 commit c36bdc0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36267,7 +36267,7 @@ async function main() { | |||
| 36267 | 36267 | const retries = parseInt(core.getInput('retries')); | |
| 36268 | 36268 | const exemptStatusCodes = parseNumberArray(core.getInput('retry-exempt-status-codes')); | |
| 36269 | 36269 | const [retryOpts, requestOpts] = getRetryOptions(retries, exemptStatusCodes, utils.defaults); | |
| 36270 | - const baseUserAgent = userAgent || 'actions/github-script'; | ||
| 36270 | + const baseUserAgent = userAgent === '' ? '' : userAgent || 'actions/github-script'; | ||
| 36271 | 36271 | const finalUserAgent = getUserAgentWithOrchestrationId(baseUserAgent); | |
| 36272 | 36272 | const opts = { | |
| 36273 | 36273 | log: debug ? console : undefined, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,8 @@ async function main(): Promise<void> { | |||
| 39 | 39 | defaultGitHubOptions | |
| 40 | 40 | ) | |
| 41 | 41 | ||
| 42 | - const baseUserAgent = userAgent || 'actions/github-script' | ||
| 42 | + const baseUserAgent = | ||
| 43 | + userAgent === '' ? '' : userAgent || 'actions/github-script' | ||
| 43 | 44 | const finalUserAgent = getUserAgentWithOrchestrationId(baseUserAgent) | |
| 44 | 45 | ||
| 45 | 46 | const opts: Options = { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments