-
Notifications
You must be signed in to change notification settings - Fork 24
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
Change in the api call to fetch status using the commit ref instead o… #66
Conversation
…f master Fixed issue sitture#63
Changes in the api call to fetch status using the commit ref instead of master |
@@ -51,16 +51,21 @@ export default class AddProject extends React.Component { | |||
}; | |||
} | |||
axios | |||
.get( | |||
.get( | |||
`https://api.github.com/repos/${this.state.input}/commits/master/status`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still making api calls using the master :ref instead of latest commit ref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then will user have to enter commit id as well as part of input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is making call using master ref to fetch latest commit ref API URL from response and getting status from that only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a nested axios call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's still using the master instead of the latestcommit hash to fetch the status.
@sumitsawant Are you still looking into this? |
…f master
Fixes #63