Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: Drop end-user dependency on gh #667

Closed
3 tasks done
JoshuaKGoldberg opened this issue Aug 21, 2023 · 1 comment · Fixed by #1000
Closed
3 tasks done

🚀 Feature: Drop end-user dependency on gh #667

JoshuaKGoldberg opened this issue Aug 21, 2023 · 1 comment · Fixed by #1000
Assignees
Labels
status: accepting prs Please, send a pull request to resolve this! type: feature New enhancement or request

Comments

@JoshuaKGoldberg
Copy link
Owner

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

The GitHub CLI (gh) is really convenient. I use it a lot personally. Right now, gh is used for two things in the repo's hydration/setup scrips:

  1. Getting a GitHub auth token for the user: search gh auth in the code
  2. Running commands to modify the repository: search gh (note the trailing space)

However, not everyone using this template might be a gh user already. It's inconvenient that you'd have to use it. Let's remove the dependency on having that tool installed. I think that'll mean two changes:

  1. For the auth token: try running the same gh auth scripts as before, and if they fail, fall back to a CLI flag like --github-auth
  2. Switch to using Octokit instead of gh ... for any API calls

Additional Info

No response

Copy link

🎉 This is included in version v1.71.0 🎉

The release is available on:

Cheers! 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! type: feature New enhancement or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant