import { PullRequestDatabase } from '../databases'
import { GitHubRepository } from '../../models/github-repository'
import { API, IAPIPullRequest } from '../api'

/** The store for GitHub Pull Requests. */
export class PullRequestStore {
  private db: PullRequestDatabase

  public constructor(db: PullRequestDatabase) {
    this.db = db
  }

  public async fetchPullRequests(
    repository: GitHubRepository,
    account: Account
  ) {
    const api = API.fromAccount(account)

    const pullRequests = await api.fetchPullRequests(
      repository.owner.login,
      '',
      'open'
    )
  }
}

import { PullRequestDatabase } from '../databases'

/** The store for GitHub Pull Requests. */
export class PullRequestStore {
  private db: PullRequestDatabase

  public constructor(db: PullRequestDatabase) {
    this.db = db
  }
}

--- 
+++ 
@@ -1,4 +1,6 @@
 import { PullRequestDatabase } from '../databases'
+import { GitHubRepository } from '../../models/github-repository'
+import { API, IAPIPullRequest } from '../api'
 
 /** The store for GitHub Pull Requests. */
 export class PullRequestStore {
@@ -7,4 +9,17 @@
   public constructor(db: PullRequestDatabase) {
     this.db = db
   }
+
+  public async fetchPullRequests(
+    repository: GitHubRepository,
+    account: Account
+  ) {
+    const api = API.fromAccount(account)
+
+    const pullRequests = await api.fetchPullRequests(
+      repository.owner.login,
+      '',
+      'open'
+    )
+  }
 }
Add fetch method; only needed to work from personal computer
