Skip to content

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Nov 23, 2021

Remove overfetching from the following commands, i.e. fetch only the GraphQL fields that are necessary for the operation (usually only id and number):

  • issue comment
  • issue close
  • issue reopen
  • issue delete
  • issue transfer
  • issue edit (non-interactive)

Have the following commands work with PR arguments as well as issues, since PRs are a kind of issues:

  • issue comment
  • issue close
  • issue reopen
  • issue edit

Fixes #4785, fixes #4202, fixes #4127
Partially addresses #3346
Followup to #3547

Commands to address in follow-up changes:

  • issue view - great if this worked with PRs and also survived the error when project cards could not be fetched due to permissions

- `issue comment` no longer fetches all issue fields and thus avoids the
  problem when loading failed due to token not having access to projects

- `issue comment` now accepts either issue or pull number as argument.
- `issue close` no longer fetches all issue fields and thus avoids the
  problem when loading failed due to token not having access to projects

- `issue close` now accepts either issue or pull number as argument.
- `issue reopen` no longer fetches all issue fields and thus avoids the
  problem when loading failed due to token not having access to projects

- `issue reopen` now accepts either issue or pull number as argument.
@mislav mislav requested a review from a team as a code owner November 23, 2021 18:49
@mislav mislav requested review from vilmibm and removed request for a team November 23, 2021 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants