Skip to content

Added GH Token Auth to Readme #68

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

Merged
merged 3 commits into from
Sep 4, 2024
Merged

Added GH Token Auth to Readme #68

merged 3 commits into from
Sep 4, 2024

Conversation

Jelloeater
Copy link
Contributor

No description provided.

README.md Outdated
Comment on lines 51 to 56
If you have the [GitHub CLI](https://cli.github.com/) installed, you can use

```bash
export GITHUB_TOKEN="$(gh auth token)" gama
```

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution 🍀

I have a few suggestions:

The use of export isn't necessary if the goal is to run GAMA immediately with the environment variable. Therefore, this line should be modified to:

GITHUB_TOKEN="$(gh auth token)" gama

Alternatively, if users prefer exporting the variable separately, they can use:

export GITHUB_TOKEN="$(gh auth token)"
gama

Personally, I think the first approach is more concise and effective for instant execution.

Additionally, as mentioned on line 20, we instruct users to create a token. However, with your method, there's no need to create a new token if they have GitHub CLI installed. Could you please add a note explaining that if users have GitHub CLI, they can use their existing token without creating a new one? This would enhance clarity for anyone setting up the tool.

Thank you again for your valuable contribution! 🛸

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dang that was one of the most polite comments I've read in the last week!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just re-read that, yeah, no need for the export if it's not in shell bootstrap a-la .zshrc.
I think somthing like GITHUB_TOKEN="$(gh auth token)" gama should be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some notes, plus I found a bug 😓 it only worked reliably for me when I made a token on the site.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

│ You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID │
│ FCFC:236109:869F6B5:1025D3F6:66D7E8B7.]: Repositories cannot be listed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, actually it's not a bug. GitHub have rate limits for tokens. You can get this error even if you generate a token. 🍀
I think this PR ready to merge after remove this line:
**NOTE: You may still need to generate a token via the GUI if you run into errors**

@canack canack added documentation Improvements or additions to documentation improvement To make it better labels Sep 3, 2024
@Jelloeater Jelloeater requested a review from canack September 4, 2024 04:56
Copy link
Member

@canack canack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge, I'll merge it today 🚀

@canack canack merged commit 6a6e9da into termkit:main Sep 4, 2024
@Jelloeater Jelloeater deleted the patch-1 branch September 6, 2024 03:18
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jan 8, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [termkit/gama](https://github.com/termkit/gama) | minor | `v1.1.4` -> `v1.2.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>termkit/gama (termkit/gama)</summary>

### [`v1.2.0`](https://github.com/termkit/gama/releases/tag/v1.2.0)

[Compare Source](termkit/gama@v1.1.4...v1.2.0)

#### What's Changed

-   Fix "toolchain not available" error when `make build` by [@&#8203;VeyronSakai](https://github.com/VeyronSakai) in termkit/gama#55
-   General Improvement by [@&#8203;canack](https://github.com/canack) in termkit/gama#57
-   \[Fix] Documentation Lint by [@&#8203;VILJkid](https://github.com/VILJkid) in termkit/gama#59
-   \[Fix] Code Cleanup by [@&#8203;VILJkid](https://github.com/VILJkid) in termkit/gama#60
-   Feature [#&#8203;47](termkit/gama#47) : Fill workflow with empty message if no workflow inputs by [@&#8203;canack](https://github.com/canack) in termkit/gama#62
-   Added GH Token Auth to Readme by [@&#8203;Jelloeater](https://github.com/Jelloeater) in termkit/gama#68
-   Update README.md with notes for better GITHUB_TOKEN handling by [@&#8203;pirafrank](https://github.com/pirafrank) in termkit/gama#69
-   Refactor: Live Mode and General Improvements by [@&#8203;canack](https://github.com/canack) in termkit/gama#65

#### New Contributors

-   [@&#8203;VeyronSakai](https://github.com/VeyronSakai) made their first contribution in termkit/gama#55
-   [@&#8203;VILJkid](https://github.com/VILJkid) made their first contribution in termkit/gama#59
-   [@&#8203;Jelloeater](https://github.com/Jelloeater) made their first contribution in termkit/gama#68
-   [@&#8203;pirafrank](https://github.com/pirafrank) made their first contribution in termkit/gama#69

**Full Changelog**: termkit/gama@v1.1.4...v1.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45MS4yIiwidXBkYXRlZEluVmVyIjoiMzkuOTEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation improvement To make it better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants