Allow bypassing repository resolve step #33
stefanbuck
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Without having any repository context, how can you send the request to archive a repository? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently I was using Octoherd to archive 800+ repositories. While the script was running, I realized that Octoherd first resolves all the repositories to populate the
repository
argument in the script functionIn this particular use-case of archiving repositories there was not need to read any data from the provided
repository
argument. I could may have used it to figure out if a repository is already archived or not, but the script was smart enough to fail gracefully in this case. Therefore resolving all repositories upfront was just a unnecessary step and use of time and rate limits.Proposal
A script without the
repository
argument should bypass the resolve step and call the script right away.Technically this should be possible (according to MDN) by calling
.length
on that functionBeta Was this translation helpful? Give feedback.
All reactions