-
Notifications
You must be signed in to change notification settings - Fork 329
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
Fix update-release-branch-fix.py #566
Conversation
Darn...failing |
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.
How come there was no committer to begin with? Did we use the wrong email for the bot?
.github/update-release-branch.py
Outdated
@@ -122,7 +124,7 @@ def get_commit_difference(repo): | |||
|
|||
# Is the given commit the automatic merge commit from when merging a PR | |||
def is_pr_merge_commit(commit): | |||
return commit.committer.login == 'web-flow' and len(commit.parents) > 1 | |||
return commit.committer != None and commit.committer.login == 'web-flow' and len(commit.parents) > 1 |
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 prefer this over equality checks.
return commit.committer != None and commit.committer.login == 'web-flow' and len(commit.parents) > 1 | |
return commit.committer is not None and commit.committer.login == 'web-flow' and len(commit.parents) > 1 |
.github/update-release-branch.py
Outdated
@@ -8,6 +8,8 @@ | |||
import datetime | |||
import os | |||
|
|||
import inspect |
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.
What's this for?
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 need to remove that. Left over from debugging.
This change ensures that the the script can handle commits with no committer in them. This will happen for some commits that are auto-generated during PRs.
84dc498
to
df10b81
Compare
OK...Still failing, even with the new CLI. The reason is different this time. With this new CLI, query and pack resolution is happening more correctly and the pack is failing to find it's library dependency |
This can be removed when 2.5.6 is released.
df10b81
to
efea923
Compare
OK. This is now fixed. I had to recreate the |
Still failing on this branch when I run the Update release branch workflow. I'll have to inspect more. |
Working now. |
This change ensures that the the script can handle
commits with no committer in them. This will happen
for some commits that are auto-generated during
PRs.
Merge / deployment checklist