-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add title and description to GitHub Action Investigator script #730
Changes from all commits
ab13004
4105cee
e8ea9e6
22eba50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,8 @@ | |
} | ||
|
||
export async function githubParseEnv( | ||
env: Record<string, string> | ||
env: Record<string, string>, | ||
options?: { issue?: number } | ||
): Promise<GithubConnectionInfo> { | ||
const res = githubFromEnv(env) | ||
try { | ||
|
@@ -76,6 +77,7 @@ | |
res.owner = owner.login | ||
res.repository = res.owner + "/" + res.repo | ||
} | ||
if (!isNaN(options?.issue)) res.issue = options.issue | ||
Check failure on line 80 in packages/core/src/github.ts GitHub Actions / build
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The use of
|
||
if (!res.issue) { | ||
const { number: issue } = JSON.parse( | ||
( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
pullRequest
variable is not checked forundefined
ornull
before being used. This could lead to unexpected behavior ifpullRequest
isundefined
ornull
. Please add a check forpullRequest
before using it. 😊