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

Commit

Permalink
Merge pull request #203 from davidahouse/house/202/add-login-to-envir…
Browse files Browse the repository at this point in the history
…onment

✨ Added pr login to environment
  • Loading branch information
davidahouse authored Jun 28, 2021
2 parents 5fd8776 + 7afbf4a commit 312cb72
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/stampede-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,8 @@ function collectEnvironment(taskExecutionConfig, workingDirectory) {
task.buildID;
environment[taskExecutionConfig.environmentVariablePrefix + "TASKID"] =
task.taskID;
environment[
taskExecutionConfig.environmentVariablePrefix + "WORKINGDIR"
] = workingDirectory;
environment[taskExecutionConfig.environmentVariablePrefix + "WORKINGDIR"] =
workingDirectory;
environment[taskExecutionConfig.environmentVariablePrefix + "ACCESSTOKEN"] =
task.scm.accessToken;

Expand All @@ -639,6 +638,11 @@ function collectEnvironment(taskExecutionConfig, workingDirectory) {
environment[
taskExecutionConfig.environmentVariablePrefix + "GITSHAHEAD"
] = task.scm.pullRequest.head.sha;
if (task.scm.pullRequest.login != null) {
environment[
taskExecutionConfig.environmentVariablePrefix + "PULLREQUESTLOGIN"
] = task.scm.pullRequest.login;
}
}

if (task.scm.branch != null) {
Expand Down

0 comments on commit 312cb72

Please sign in to comment.