mirror of
https://github.com/actions/github-script
synced 2026-09-07 20:03:40 +00:00
Fix user-agent to handle empty string correctly
Co-authored-by: TingluoHuang <1750815+TingluoHuang@users.noreply.github.com>
This commit is contained in:
co-authored by
TingluoHuang
parent
b588811d63
commit
c36bdc0a3a
+2
-1
@@ -39,7 +39,8 @@ async function main(): Promise<void> {
|
||||
defaultGitHubOptions
|
||||
)
|
||||
|
||||
const baseUserAgent = userAgent || 'actions/github-script'
|
||||
const baseUserAgent =
|
||||
userAgent === '' ? '' : userAgent || 'actions/github-script'
|
||||
const finalUserAgent = getUserAgentWithOrchestrationId(baseUserAgent)
|
||||
|
||||
const opts: Options = {
|
||||
|
||||
Reference in New Issue
Block a user