Add Header User-Agent for request client#5664
Conversation
add Header User-Agent for request client.
for more information, see https://pre-commit.ci
|
please kindly review and give out the comments, thanks for all. :) |
|
Surge PR preview deployment succeeded. View it at https://woodpecker-ci-woodpecker-pr-5664.surge.sh |
|
I like documentation but i think shared/httputil/example_usage.md went over the top just write good docstrings to tje functions inline in the code ... go can generate docs out of that |
|
hi all, the .md is removed. thank you! |
|
you have github and gitlab covered but no gitea forgejo or bitbuced* |
|
updated, bitbucket, forgejo, and gittea. add practices in wrapped http header. thanks all. |
|
you need to add useragent to the cspell allow list ;) |
|
already add 'useragent' to cspell.json to allow the usage of term. thank you : ) |
|
only lint issues have to be addressed |
|
You need to have the |
I found that it has the restriction of import of the shared/ toward the woodpecker-go, therefore I add the codes into the woodpecker-go either.
|
fixed the lint issues,
I found that it has the restriction of import of the shared/ toward the woodpecker-go, therefore I add the codes into the woodpecker-go either. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5664 +/- ##
==========================================
+ Coverage 21.34% 21.47% +0.13%
==========================================
Files 426 428 +2
Lines 38472 38550 +78
==========================================
+ Hits 8211 8278 +67
- Misses 29497 29508 +11
Partials 764 764 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|


add Header User-Agent for request client for more precise in recognized the http request from.
close #3778