Bitbucket Integration #271
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
reference
#36 #50 #176 #229
Notes :-
bibucket returns uuids so i had to add the migrations to change tables that contains provider and provider_id columns
without bitbucket token sent as a request header , it won't retrieve the current user private repos that he owns so i had to change the request helper method
i added the refresh_token column , cause bitbucket token expires after 1 hour as mentioned in the documentation , also i provided a screenshot of how the object will look like
refreshToken
in handleProviderCallback the user from socialite must be updated , to update his refresh_token and token
some of the methods uses version 1.0 of the api , because these end points aren't supported in version 2.0
in the readCollaborators if the repo owner is logged in and currently importing the repo into GitScrum the method will get all associated collaborators , otherwise , it won't get associated collaborators, and the reason for this as mentioned in the documentation priviliges , Only the repository owner, a team account administrator, or an account with administrative rights on the repository can make this call