-
Notifications
You must be signed in to change notification settings - Fork 44
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
adding PR option to create-report command #329
Conversation
Codecov Report
@@ Coverage Diff @@
## main #329 +/- ##
=======================================
Coverage 95.46% 95.46%
=======================================
Files 80 80
Lines 2713 2715 +2
=======================================
+ Hits 2590 2592 +2
Misses 123 123
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
very tidy, looks good
headers = ( | ||
{} | ||
if not token and is_fork_pr(pull_request_number, decoded_slug, service) | ||
else get_token_header_or_fail(token) | ||
) |
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.
super minor nit: when you merge, could you mention this extra little change in the commit message? just in case someone is reading through commit history searching for a bug or trying to learn how tokenless was implemented. something like adding PR option and tokenless logic to create-report command
The base branch was changed.
we need the pr number for the PR API request to know if the command runs in a fork PR