-
Notifications
You must be signed in to change notification settings - Fork 77
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
track github action deploys #1679
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1679 +/- ##
=======================================
Coverage 86.27% 86.27%
=======================================
Files 117 117
Lines 17085 17085
=======================================
Hits 14740 14740
Misses 1409 1409
Partials 936 936 ☔ View full report in Codecov by Sentry. |
@@ -58,9 +59,13 @@ func CoreRequestEditor(ctx httpContext.Context, req *http.Request) error { | |||
} | |||
req.URL = requestURL | |||
req.Header.Add("authorization", currentCtx.Token) | |||
req.Header.Add("x-astro-client-identifier", "cli") | |||
if os.Getenv("GITHUB_ACTIONS") == "true" { | |||
req.Header.Add("x-astro-client-identifier", "github-action") |
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.
Can we track github actions version also?
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.
we should make the user agent also for github actions
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.
i'm not really sure how to do that
req.Header.Add("x-astro-client-version", os.Getenv("DEPLOY_ACTION_VERSION")) | ||
case os.Getenv("GITHUB_ACTIONS") == "true": | ||
req.Header.Add("x-astro-client-identifier", "deploy-action") | ||
req.Header.Add("x-astro-client-version", version.CurrVersion) |
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.
would this be the cli or deploy actions version?
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.
my bad that should say github-action. github action doesn't have a version so CLI version gives us more info about what version of the CLI they are using within their github-action
Description
This change will make the header for client
github-action
for all requests the CLI makes within a github action workflow. This will help us see how many customers are using github actions to deploy🎟 Issue(s)
Related #XXX
🧪 Functional Testing
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft