-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add support for grabbing CI info from the env #49
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
Conversation
We want to start passing basic CI info such as the branch and PR number over to sinistral so our customers have additional metadata around where their results are coming from
albertodonato
left a comment
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.
+1
| # We don't need to record CI info for local runs. | ||
| if ci_info["service"] == "local": | ||
| ci_info = None | ||
|
|
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.
the get_ci_info() call could be made in the else clause, we don't need to try to fetch them running locally
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 only know its a local run after I've called get_ci_info but I could do this logic up in that call so it returns None
We want to start passing basic CI info such as the branch and PR number over to sinistral so our customers have additional metadata around where their results are coming from.
This requires: https://github.com/stacklet/sinistral/pull/428