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

Commit

Permalink
fix: revert CI_BRANCH support (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahnu authored Nov 8, 2022
1 parent 85c5e1c commit 20d94f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/commit-watch/src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ export class CommitWatchCommand extends Command {
async execute(): Promise<number | void> {
const commitSha =
this.commitSha || process.env.CI_COMMIT_SHA || undefined
const baseRef =
this.baseRef ||
process.env.CI_BRANCH ||
process.env.CI_BASE_BRANCH ||
undefined
const baseRef = this.baseRef || process.env.CI_BASE_BRANCH || undefined

if (!commitSha || !baseRef) {
throw new Error('Both a commit sha and base ref are required.')
Expand Down

0 comments on commit 20d94f0

Please sign in to comment.