-
Notifications
You must be signed in to change notification settings - Fork 18
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
New bot command bot: status
#237
Conversation
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.
Looks great. Some small comments. The result is for sure very useful!!!
|
||
|
||
def request_bot_build_issue_comments(repo_name, pr_number): | ||
status_table = {'arch': [], 'date': [], 'status': [], 'url': [], 'result': []} |
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.
Wonder a bit if it would be better to let status_table
be a list of dictionaries instead of a dictionary of lists where we assume that lists are always identically formed (same length, elements at same index belong to each other).
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 open to that. Because it actually takes some effort to put it in a dictionary with lists.
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.
Ack. We can think about that later in case it becomes necessary.
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.
Great improvement @laraPPr !
The command creates a comment that contains a table with all the builds done in the pr where the command is called.
example: