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

Custom User Agent #990

Merged
merged 2 commits into from
Jun 11, 2021
Merged

Custom User Agent #990

merged 2 commits into from
Jun 11, 2021

Conversation

piksel
Copy link
Member

@piksel piksel commented Jun 11, 2021

Set a custom User-Agent header in the http client requests.
The value would be Watchtower/1.3.0 (with the appropriate version of course).

Fixes #986

this allows it to be referenced from other packages without causing a cyclic dependency
@codecov
Copy link

codecov bot commented Jun 11, 2021

Codecov Report

Merging #990 (39ccc91) into main (4e7b1e7) will increase coverage by 1.68%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #990      +/-   ##
==========================================
+ Coverage   54.47%   56.15%   +1.68%     
==========================================
  Files          25       25              
  Lines        1452     1453       +1     
==========================================
+ Hits          791      816      +25     
+ Misses        594      567      -27     
- Partials       67       70       +3     
Impacted Files Coverage Δ
pkg/registry/digest/digest.go 42.37% <100.00%> (+42.37%) ⬆️

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 b196629...39ccc91. Read the comment docs.

@piksel piksel requested a review from simskij June 11, 2021 14:38
@piksel piksel merged commit f508c92 into main Jun 11, 2021
@piksel piksel deleted the feature/user-agent branch May 5, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a unique header for Watchtower
2 participants