Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 45328a0

Browse files
Merge branch 'fixes/octorun-js-working-directory' into fixes/octorun-user-agent
# Conflicts: # src/GitHub.Api/Tasks/OctorunTask.cs
2 parents c3b6370 + a2c4b5c commit 45328a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GitHub.Api/Tasks/OctorunTask.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class OctorunTask : ProcessTask<OctorunResult>
5858
private readonly string userToken;
5959

6060
private readonly NPath pathToNodeJs;
61+
private readonly NPath pathToOctorunJs;
6162
private readonly string arguments;
6263

6364
public OctorunTask(CancellationToken token, NPath pathToNodeJs, NPath pathToOctorunJs, string arguments,
@@ -73,13 +74,16 @@ public OctorunTask(CancellationToken token, NPath pathToNodeJs, NPath pathToOcto
7374
this.user = user;
7475
this.userToken = userToken;
7576
this.pathToNodeJs = pathToNodeJs;
77+
this.pathToOctorunJs = pathToOctorunJs;
7678
this.arguments = $"{pathToOctorunJs} {arguments}";
7779
}
7880

7981
public override void Configure(ProcessStartInfo psi)
8082
{
8183
base.Configure(psi);
8284

85+
psi.WorkingDirectory = pathToOctorunJs.Parent.Parent;
86+
8387
psi.EnvironmentVariables.Add("OCTOKIT_USER_AGENT", $"{ApplicationInfo.ApplicationSafeName}/{ApplicationInfo.Version}");
8488

8589
if (clientId != null)

0 commit comments

Comments
 (0)