Skip to content

Conversation

nhunzaker
Copy link
Contributor

This commit adds an extendable getRepo method to the Presenter
prototype that allows custom repo assignment behavior. For example, if
we wanted to avoid the default forking behavior:

class NoFork extends Presenter {
  getRepo (repo) {
    return repo
  }
}

This commit adds an extendable getRepo method to the Presenter
prototype that allows custom repo assignment behavior. For example, if
we wanted to avoid the default forking behavior:

```javascript
class NoFork extends Presenter {
  getRepo (repo) {
    return repo
  }
}
```
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 99.175% when pulling 392ce19 on get-presenter-repo into 4216c1d on master.

```javascript
class NoFork extends Presenter {
getRepo (repo) {
return repo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about an inline comment clarifying that this is a new Microcosm?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same repo given to the Presenter (unless no repo is given). Is that what you mean?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh ok, ignore this one. I was thinking something different.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

@cwmanning
Copy link
Member

👍

@nhunzaker nhunzaker merged commit 392ce19 into master Jan 5, 2017
@nhunzaker nhunzaker deleted the get-presenter-repo branch January 6, 2017 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants