prefect_github.user
This is a module containing:
GitHub query_user* tasks
Functions
query_user
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_gist
login: The user’s login.name: The gist name to find.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_gists
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.privacy: Filters Gists according to privacy.order_by: Ordering options for gists returned from the connection.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_issues
login: The user’s login.labels: A list of label names to filter the pull requests by.states: A list of states to filter the issues by.github_credentials: Credentials to use for authentication with GitHub.order_by: Ordering options for issues returned from the connection.filter_by: Filtering options for issues returned from the connection.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_status
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_project
login: The user’s login.number: The project number to find.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_packages
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.names: Find packages by their names.repository_id: Find packages in a repository by ID.package_type: Filter registry package by type.order_by: Ordering of the returned packages.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_projects
login: The user’s login.states: A list of states to filter the projects by.github_credentials: Credentials to use for authentication with GitHub.order_by: Ordering options for projects returned from the connection.search: Query to search projects by, currently only searching by name.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsors
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.tier_id: If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see.order_by: Ordering options for sponsors returned from the connection.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_watching
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.privacy: If non-null, filters repositories according to privacy.order_by: Ordering options for repositories returned from the connection.affiliations: Affiliation options for repositories returned from the connection. If none specified, the results will include repositories for which the current viewer is an owner or collaborator, or member.owner_affiliations: Array of owner’s affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.is_locked: If non-null, filters repositories according to whether they have been locked.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_project_v2
login: The user’s login.number: The project number.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_followers
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_following
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_projects_v2
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.query: A project to search for under the the owner.order_by: How to order the returned projects.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_repository
login: The user’s login.name: Name of Repository to find.github_credentials: Credentials to use for authentication with GitHub.follow_renames: Follow repository renames. If disabled, a repository referenced by its old name will return an error.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsoring
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.order_by: Ordering options for the users and organizations returned from the connection.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_public_keys
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_project_next
login: The user’s login.number: The project (beta) number.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_pinned_items
login: The user’s login.types: Filter the types of pinned items that are returned.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_projects_next
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.query: A project (beta) to search for under the the owner.sort_by: How to order the returned projects (beta).after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_repositories
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.privacy: If non-null, filters repositories according to privacy.order_by: Ordering options for repositories returned from the connection.affiliations: Array of viewer’s affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns.owner_affiliations: Array of owner’s affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.is_locked: If non-null, filters repositories according to whether they have been locked.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.is_fork: If non-null, filters repositories according to whether they are forks of another repository.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_item_showcase
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_gist_comments
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_organization
login: The user’s login.organization_login: The login of the organization to find.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_pull_requests
login: The user’s login.states: A list of states to filter the pull requests by.labels: A list of label names to filter the pull requests by.github_credentials: Credentials to use for authentication with GitHub.head_ref_name: The head ref name to filter the pull requests by.base_ref_name: The base ref name to filter the pull requests by.order_by: Ordering options for pull requests returned from the connection.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_saved_replies
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.order_by: The field to order saved replies by.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_pinnable_items
login: The user’s login.types: Filter the types of pinnable items that are returned.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_issue_comments
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.order_by: Ordering options for issue comments returned from the connection.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_organizations
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_recent_projects
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_commit_comments
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsors_listing
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_top_repositories
login: The user’s login.order_by: Ordering options for repositories returned from the connection.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.since: How far back in time to fetch contributed repositories.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsors_activities
login: The user’s login.actions: Filter activities to only the specified actions.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.period: Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred.order_by: Ordering options for activity returned from the connection.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_interaction_ability
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_starred_repositories
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.owned_by_viewer: Filters starred repositories to only return repositories owned by the viewer.order_by: Order for connection.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_repository_discussions
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.order_by: Ordering options for discussions returned from the connection.repository_id: Filter discussions to only those in a specific repository.answered: Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsorships_as_sponsor
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.order_by: Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsorship_newsletters
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.order_by: Ordering options for sponsorship updates returned from the connection.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_contributions_collection
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.organization_id: The ID of the organization used to filter contributions.from_: Only contributions made at this time or later will be counted. If omitted, defaults to a year ago.to: Only contributions made before and up to (including) this time will be counted. If omitted, defaults to the current time or one year from the provided from argument.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsorships_as_maintainer
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.include_private: Whether or not to include private sponsorships in the result set.order_by: Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_repositories_contributed_to
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.privacy: If non-null, filters repositories according to privacy.order_by: Ordering options for repositories returned from the connection.is_locked: If non-null, filters repositories according to whether they have been locked.include_user_repositories: If true, include user repositories.contribution_types: If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY].after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_repository_discussion_comments
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.after: Returns the elements in the list that come after the specified cursor.before: Returns the elements in the list that come before the specified cursor.first: Returns the first n elements from the list.last: Returns the last n elements from the list.repository_id: Filter discussion comments to only those in a specific repository.only_answers: Filter discussion comments to only those that were marked as the answer.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsorship_for_viewer_as_sponsor
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.
query_user_sponsorship_for_viewer_as_sponsorable
login: The user’s login.github_credentials: Credentials to use for authentication with GitHub.return_fields: Subset the return fields (as snake_case); defaults to fields listed in configs/query/*.json.
- A dict of the returned fields.