When there is a backport request, the GitHub Action that handles the
backport will now automatically assign the issue to the user(s) who
approved the commit in Phabricator and create an issue comment asking
them to review the request.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Can you please add links to the phabricator HTTP API documentation that you're using?
llvm/utils/git/github-automation.py | ||
---|---|---|
63 | ||
246 | When I use capital L I get: NameError: name 'List' is not defined. Did you mean: 'list'? | |
268 | What if the list of reviewers is empty? Don't you want to skip that call to add_to_assignees? | |
286 | Do you still want to continue when the exception was caught? | |
415 |
llvm/utils/git/github-automation.py | ||
---|---|---|
246 | List is a typing hint. You need to import it from the typing module. |
llvm/utils/git/github-automation.py | ||
---|---|---|
246 | When I use list[str], I get: TypeError: 'type' object is not subscriptable |
Re-wrote the patch so that the pull request is assigned to the reviewers rather
than the issue. This seems to make more sense since the reviewers will be reviewing
the code.
llvm/utils/git/github-automation.py | ||
---|---|---|
286 | Yes, we want to continue, because assigning reviewers is optional. |
llvm/utils/git/github-automation.py | ||
---|---|---|
246 | I think this is deprecated since Python 3.9 (https://docs.python.org/3/library/typing.html#typing.List). And this whole discussion rings a bell. @tstellar weren't the Github runners running an older version than what was required for list[str] to work? |
LGTM.
llvm/utils/git/github-automation.py | ||
---|---|---|
79 | I tried to find limit in the documentation (see section "Paging and Limits") and it is always used like this: { "cursor": { "limit": 100 } } I wonder if this only works because of luck that there only is 1 result. | |
95 | Are fields safe to access or is there any guarantee that a field exists in a result? Should fields be tested for existence before accessing them? |