-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add @spruce release to user-agent #155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of reading from packageInfo, I would prefer to read an env var that we can set in CI during the build/release process. That way we don't end up with residual code stuff that is spruce-specific when we merge to main
later. You can ship this as is if you want, but if you do, you should make a ticket to clean it up later.
2ad2a18
to
c655eae
Compare
20435ae
to
28b38d6
Compare
That does make more sense. I'll get that changed in this PR. |
_This revision is dependent on a previous branches / PRs. These will need to be reviewed and merged first:_ - #153 - #154 ## Problem We want to be able to track usage specific to the spruce release of the client. ## Solution - Update `buildUserAgent` logic to check for `packageInfo.release`, and append to the user agent if present. - Update `release-spruce-dev` and `release-spruce` workflows to add `@spruce` to `version.json` during these specific releases. ## Type of Change - [X] New feature (non-breaking change which adds functionality) ## Test Plan We will need to release through either the `release-spruce` or `release-spruce-dev` workflows and validate the `version.json` file has the proper info, and the `release` is appended to the user agent header.
_This revision is dependent on a previous branches / PRs. These will need to be reviewed and merged first:_ - #153 - #154 We want to be able to track usage specific to the spruce release of the client. - Update `buildUserAgent` logic to check for `packageInfo.release`, and append to the user agent if present. - Update `release-spruce-dev` and `release-spruce` workflows to add `@spruce` to `version.json` during these specific releases. - [X] New feature (non-breaking change which adds functionality) We will need to release through either the `release-spruce` or `release-spruce-dev` workflows and validate the `version.json` file has the proper info, and the `release` is appended to the user agent header.
This revision is dependent on a previous branches / PRs. These will need to be reviewed and merged first:
Problem
We want to be able to track usage specific to the spruce release of the client.
Solution
buildUserAgent
logic to check forpackageInfo.release
, and append to the user agent if present.release-spruce-dev
andrelease-spruce
workflows to add@spruce
toversion.json
during these specific releases.Type of Change
Test Plan
We will need to release through either the
release-spruce
orrelease-spruce-dev
workflows and validate theversion.json
file has the proper info, and therelease
is appended to the user agent header.