-
Notifications
You must be signed in to change notification settings - Fork 30
Tree Closing and Opening #223
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
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.
Thanks for the changes. Left a few more comments.
I wonder if we should pre-fill the DB with known repositories when bors starts, because it does know the list of repositories at the beginning. Then we wouldn't have to assume everywhere in code that the repository might be missing. Although there are some edge cases around a repository being added to bors while it is running (although we will ~never hit that in practice). Anyway, that can be done in a separate PR.
I think that is a better approach. If you want I can add this in this PR only . |
No let's keep that for the future, it's a larger change and I need to think about it more. |
3bf044a
to
dd83a79
Compare
e293621
to
3bf044a
Compare
4e7dc09
to
fa717b5
Compare
I rebased the PR and refactored some parts a bit. I left one TODO for you to resolve, to fill in the source of the tree closed message. It should be a URL pointing to the PR comment that closed the tree. |
Implemented this using Function:- Test:- |
d532996
to
8e279bf
Compare
We want to have a link to the specific comment that closed the tree, not just the PR, that could have a lot of comments (we want to see the reason why the tree was closed). We can then use that as the tree closed source. |
Thank you! |
Fixes: #207