Skip to content

Conversation

@josephfrazier
Copy link
Member

This allows this module to be used with Turbolinks sites like GitLab.
For a demo:

gitHubInjection(window, function(err) {
  if (err) {
    return console.error(err);
  }
  console.warn("XXX INJECTION");
});
  • Click the "Activity" link
  • Notice "XXX INJECTION" printed to the console

See OctoLinker/OctoLinker#113

This allows this module to be used with [Turbolinks] sites like GitLab.
For a demo:

* Visit https://gitlab.com/gitlab-org/gitlab-ce
* Paste the contents of this file into the console
* Paste the following into the console:

```javascript
gitHubInjection(window, function(err) {
  if (err) {
    return console.error(err);
  }
  console.warn("XXX INJECTION");
});
```

* Click the "Activity" link
* Notice "XXX INJECTION" printed to the console

[Turbolinks]: https://github.com/turbolinks/turbolinks

See OctoLinker/OctoLinker#113
@stefanbuck
Copy link
Member

Looks good to me, but can you add a test please? The tests are running two times. Once against a fixture file and a second time against the real website. Check out the (test helper](

if (process.env.TEST_ENV === 'remote') {
). Can you create a fake repository there so we can run the remote test against this repo.

Finally, can you add another fallback for bitbucket with source-container, please? That's might be useful at some point 😉

Thank you.

@stefanbuck
Copy link
Member

Btw the tests are failing because of coveralls.io which has an outdated configuration. I'm on it

@coveralls
Copy link

coveralls commented Sep 2, 2016

Coverage Status

Changes Unknown when pulling 9c8e2e0 on josephfrazier:gitlab into * on OctoLinker:master*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants