-
Notifications
You must be signed in to change notification settings - Fork 901
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
Added support for parsing issues numbers to uplift #5639
Conversation
@@ -60,7 +60,10 @@ def initialize(self, args): | |||
self.github_token = get_env_var('GITHUB_TOKEN') | |||
if len(self.github_token) == 0: | |||
try: | |||
result = execute(['npm', 'config', 'get', 'BRAVE_GITHUB_TOKEN']).strip() | |||
npm_cmd = 'npm' | |||
if sys.platform.startswith('win'): |
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.
angry fist shaking at Windows
|
||
if len(issues_fixed) > 0: | ||
for fixed in issues_fixed: | ||
pr_body += (fixed[0] + '\n') |
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.
Since match is made like (resolves|fixes|etc) issue (number)
, fixed
has a tuple with 3 items; full string match, text matched for 1st block (ex: resolves
), text matched for 2nd block (ex: 12345
)
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.
LGTM
39be1ed
to
1616985
Compare
Fixes brave/brave-browser#3885
Tested using this test job (points at this branch):
https://ci.brave.com/view/wip/job/clifton-uplift-list-issues/
Feel free to run the job! 😄
Here's an example of how it looks:
#5638
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Reviewer Checklist:
After-merge Checklist:
changes has landed on.