Skip to content

we could decrease bandwidth by making a custom graphql request here that doesn't... #22

Open

Description

@github-actions

we could decrease bandwidth by making a custom graphql request here that doesn't retrieve some of the unnecessary fields that this retrieves

https://github.com/adavila0703/dev-hub-bot/blob/c92f25d2f1919f9bdabdbfef15c4d36819374090/internal/github/contributions.go#L170

		Username: username,
	}

	// TODO: we could decrease bandwidth by making a custom graphql request here that doesn't retrieve some of the unnecessary fields that this retrieves 
	contributions, err := g.GetContributionsByUsername(ctx, options)
	if err != nil {
		return nil, errors.Wrap(err, "get contributions by username")

0694d8afd8b26dae8aebeb24589e9e2a01f08406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions