Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GitHub repository contents #167

Merged
merged 3 commits into from
Apr 17, 2018

Conversation

jmar910
Copy link
Contributor

@jmar910 jmar910 commented Apr 16, 2018

We found a candidate model on the Heroku Dashboard for something that could live inside this addon

@elwayman02
Copy link
Owner

This looks great! @Dhaulagiri feel free to roll this out on a schedule that is convenient for your app, if this is good to go.

Copy link
Collaborator

@Dhaulagiri Dhaulagiri left a comment

Choose a reason for hiding this comment

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

Looks great! Left a few cleanup comments.


test('retrieving github repository contents', function(assert) {
assert.expect(4);
server.logging = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this can be removed

file: 'app.json'
}).then((content) => {
assert.githubRepositoryContentsOk(content);
assert.equal(store.peekAll('githubRepositoryContents').get('length'), 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add a 3rd parameter for this assert loads 1 repository contents?

@@ -0,0 +1,12 @@
import GitHubAdapter from './github';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer to explicit on these imports so that any file moves don't surprise us. Could you update this and all other new imports to have ember-data-github/<thing>/<name> in them

@jmar910
Copy link
Contributor Author

jmar910 commented Apr 16, 2018

thanks @elwayman02 & @Dhaulagiri !

@jmar910 jmar910 force-pushed the jm-add-github-repo-content branch from 7334db5 to fdd0f50 Compare April 16, 2018 21:07
@jmar910
Copy link
Contributor Author

jmar910 commented Apr 16, 2018

@Dhaulagiri done and done

Copy link
Collaborator

@Dhaulagiri Dhaulagiri left a comment

Choose a reason for hiding this comment

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

Thanks!!

@Dhaulagiri Dhaulagiri merged commit 29c67ca into elwayman02:master Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants