Skip to content

fix(api): Run getRepositoryFile() through API, not raw.githubcontents#392

Merged
housseindjirdeh merged 1 commit intogitpoint:masterfrom
machour:fix-code-file-display
Sep 30, 2017
Merged

fix(api): Run getRepositoryFile() through API, not raw.githubcontents#392
housseindjirdeh merged 1 commit intogitpoint:masterfrom
machour:fix-code-file-display

Conversation

@machour
Copy link
Copy Markdown
Member

@machour machour commented Sep 30, 2017

Since the API change from #361, file source code fetching have not been working.

The problem was calling .download_url which points to a raw file on raw.githubcontents.com instead of .url which holds a proper API url.

Copy link
Copy Markdown
Member

@housseindjirdeh housseindjirdeh left a comment

Choose a reason for hiding this comment

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

Beautiful thank you <3

@housseindjirdeh housseindjirdeh merged commit ad7ec47 into gitpoint:master Sep 30, 2017
@machour machour deleted the fix-code-file-display branch September 30, 2017 23:14
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.

4 participants