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

Commit

Permalink
Clone the right branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jun 11, 2022
1 parent cb15aca commit 9efab19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ const LoadProjectStep: NpmStep = {
run: async (ctx, params) => {
const repo = eventRepo(ctx.data);
const commit = eventCommit(ctx.data);
const branch = eventBranch(ctx.data);
const project: project.Project = await ctx.project.clone(
repository.gitHub({
owner: repo.owner,
repo: repo.name,
sha: commit.sha,
branch,
credential: await ctx.credential.resolve(
secret.gitHubAppTokenFromRepository(ctx.data.commit),
),
Expand Down

0 comments on commit 9efab19

Please sign in to comment.