Skip to content

Commit

Permalink
Adds getAssociatedPullRequest logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Nov 25, 2020
1 parent 82ce0d0 commit 0cf0a1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/git/models/branch.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';
import { BranchSorting, configuration, DateStyle } from '../../configuration';
import { StarredBranches, WorkspaceState } from '../../constants';
import { Container } from '../../container';
import { GitRemote, GitRevision } from '../git';
import { GitStatus } from './status';
import { Dates, memoize } from '../../system';
import { GitBranchReference, GitReference, PullRequest, PullRequestState } from './models';
import { BranchSorting, configuration, DateStyle } from '../../configuration';
import { GitStatus } from './status';
import { Dates, debug, memoize } from '../../system';

const whitespaceRegex = /\s/;
const detachedHEADRegex = /^(?=.*\bHEAD\b)(?=.*\bdetached\b).*$/;
Expand Down Expand Up @@ -139,6 +139,7 @@ export class GitBranch implements GitBranchReference {
return this.dateFormatter?.fromNow() ?? '';
}

@debug()
async getAssociatedPullRequest(options?: {
avatarSize?: number;
include?: PullRequestState[];
Expand Down

0 comments on commit 0cf0a1d

Please sign in to comment.