Skip to content

Add github api token option to generate-license & generate-gitignore #12683

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

Closed
wants to merge 1 commit into from

Conversation

a1012112796
Copy link
Member

Without api toke, Will face rate limit sometimes.

Without api toke, Will face rate limit sometimes.

Signed-off-by: a1012112796 <[email protected]>
flag.Parse()

if len(githubApiToken) > 0 {
url += "?token=" + githubApiToken
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

So those links imply we could just use BASIC Auth with the token so I guess that would be the thing to do

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, but I'm sorry, I don't know how to do it. So I will close this pr, and look forward to other contributors doing it. Thanks.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 2, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #12683 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12683      +/-   ##
==========================================
- Coverage   43.29%   43.28%   -0.01%     
==========================================
  Files         646      646              
  Lines       71592    71592              
==========================================
- Hits        30993    30992       -1     
- Misses      35583    35584       +1     
  Partials     5016     5016              
Impacted Files Coverage Δ
modules/queue/workerpool.go 58.77% <0.00%> (-1.23%) ⬇️
modules/log/event.go 57.54% <0.00%> (+0.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea775e6...115c9f6. Read the comment docs.

@a1012112796 a1012112796 closed this Sep 3, 2020
@a1012112796 a1012112796 deleted the token-build branch September 3, 2020 14:08
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants