Skip to content

Commit 1b4770d

Browse files
committed
Update push
1 parent 54ceed0 commit 1b4770d

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/github/repos.d.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github/repos.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,15 @@ export async function configure(
189189
await configureLab9(options, octokit)
190190
await configureLab10(options, octokit)
191191
await configureLab11(options, octokit)
192-
await exec.exec('git', ['push'], options)
193192

194193
core.info(`Configured Attendee Repository: ${repo}`)
195194
}
196195

197196
/**
198197
* Deletes all class repositories.
199198
*
199+
* TODO: This does not delete repos for invited users that did not accept.
200+
*
200201
* @param request Class Request
201202
*/
202203
export async function deleteRepositories(request: ClassRequest): Promise<void> {
@@ -296,6 +297,9 @@ export async function configureLab3(
296297
await exec.exec('git', ['commit', '-m', `Adding unit tests ${i}`], options)
297298
}
298299

300+
await exec.exec('git', ['push'], options)
301+
await exec.exec('git', ['checkout', 'main'], options)
302+
299303
core.info('Configured Lab 3: Git Bisect')
300304
}
301305

@@ -345,6 +349,12 @@ export async function configureLab4(
345349
// Commit the changes.
346350
await exec.exec('git', ['add', '.'], options)
347351
await exec.exec('git', ['commit', '-m', 'Animate score update'], options)
352+
await exec.exec(
353+
'git',
354+
['push', '--set-upstream', 'origin', 'feature/animate-score'],
355+
options
356+
)
357+
await exec.exec('git', ['checkout', 'main'], options)
348358

349359
core.info('Configured Lab 4: Interactive Rebase')
350360
}

0 commit comments

Comments
 (0)