mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-06 11:48:50 -05:00
[GH-ISSUE #53] Contributor Screen #2493
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shreyas1599 on GitHub (Apr 10, 2020).
Original GitHub issue: https://github.com/pd4d10/git-touch/issues/53
@pd4d10 I'm trying to create a contributor screen within a repository. (So far, I've only managed to get the count of contributors and displayed it on the
GhRepoScreen). I can do this only through REST and not GraphQL. What do you think is a better option?Make the API call in the
GhUsersScreenor theGhCommitsScreenand use anifcondition to decide whether to make a graphql(for others)/rest(for contributors) call. These two screens are almost identical to how the Contributor screen would look with the subtitle in these two being replaced by the number of commits.Create a separate screen
GhContributorsScreen.Also while using
ListPayloadoflist_stateful.dartscaffold, I'm having a bit of trouble usingcursor. Should I use pagination and pass the page number each time as the cursor until the json output is null? Is this right? Or is there a better way to do this?Thanks in advance for your help.
@pd4d10 commented on GitHub (Apr 11, 2020):
Do you mean something like this? https://github.com/git-touch/git-touch/graphs/contributors
If so, perhaps it is simpler to create a separate screen?
Yeah, it's right. The
cursorname comes from GraphQL pagination, in which case it is astring. It is designed to be a generic type so could also be used in RESTful API, in which case it is anumberExample here: https://github.com/git-touch/git-touch/blob/master/lib/screens/gh_org_repos.dart
@shreyas1599 commented on GitHub (Apr 11, 2020):
Alright, thanks a lot!