Skip to content
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

new workspace tracking #29

Merged
merged 1 commit into from Jun 20, 2019
Merged

new workspace tracking #29

merged 1 commit into from Jun 20, 2019

Conversation

TingluoHuang
Copy link
Member

No description provided.

Repositories[repoFullName] = new RepositoryTrackingConfig()
{
LastRunOn = DateTimeOffset.Now,
RepositoryPath = Path.Combine(PipelineDirectory, repoName)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIt: This can just be RepositoryPath = WorkspaceDirectory

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

#else
return await ExecuteDockerCommandAsync(context, "login", $"--username \"{username}\" --password-stdin {server}", new List<string>() { password }, context.CancellationToken);
#endif
return await ExecuteDockerCommandAsync(context, "login", $"--username \"{username}\" --password \"{password.Replace("\"", "\\\"")}\" {server}", context.CancellationToken);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite sure what's happening here - why are we able to unify this? Or maybe the better question is what problem were we originally trying to solve by splitting it out into different platforms/using stdin? I think I'm just missing context

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need this anymore. :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was waiting on other PR to be merged first.

if (selfRepo.Endpoint != null)
{
var repoEndpoint = message.Resources.Endpoints.FirstOrDefault(x => x.Id == selfRepo.Endpoint.Id);
if (repoEndpoint?.Authorization?.Parameters != null && repoEndpoint.Authorization.Parameters.ContainsKey("accessToken"))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we just do a TryGetValue to get githubAccessToken here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for compat, will goes away after Jason's server change goes in.

@TingluoHuang TingluoHuang merged commit 8ff7f76 into master Jun 20, 2019
@TingluoHuang TingluoHuang deleted the users/tihuang/newtracking branch June 20, 2019 04:39
volker-raschek pushed a commit to dedalus-cis4u/github-runner-role that referenced this pull request Jul 25, 2022
volker-raschek pushed a commit to dedalus-cis4u/github-runner-role that referenced this pull request Jul 25, 2022
volker-raschek pushed a commit to dedalus-cis4u/github-runner-role that referenced this pull request Jul 25, 2022
jsoref pushed a commit to jsoref/actions-runner that referenced this pull request Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants