feat: return repo fullname
in fork script
#29
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.
This PR is a follow-up to a missing step in the
fork
script initial implementation at #3; the fork script failed to return arepo
which can be used to in the next step of computation. This was because of a weird assumption I had during the initial implementation. 😆See my assumption below......but that wasn't true, I found out that a
response.data
actually comes, but it might just take some time and only in cases where the repo being forked is huge.... and at the moment forking the project repo happens in less than 5secs.Changes Made
fork
repo - this is a repo fullname value returned from theisRepositoryForked
helper function; I hereby return it as main returned value from theforkRepository
function execution in the condition where the repo is already forked on a executing user's accountresponse.data.full_name
- this is a newly created fork repo fullname; Its a value from the response to the"POST /repos/{owner}/{repo}/forks"
endpoint call; I hereby return it as main retuned value from theforkRepository
function execution in cases where there was no fork already already found on the executing user's accountsubmit-word
script #25 to use on here📖