sapling/eden/scm/tests/github
Muir Manders 5a354f7cd6 pr submit: don't update closed PRs
Summary:
If a PR is not open (i.e. merged or closed), "sl pr submit" will now avoid updating it. Previously it didn't consider the PR's state.

We emit a warning and a hint pointing the user to "sl pr unlink" if they want to create a new PR. (After disassociating the commit from the existing PR, "sl pr submit" will create a new PR).

Fixes #474

Reviewed By: quark-zju

Differential Revision: D43208767

fbshipit-source-id: 964381a6fcb9de30b2751bb825509cca2fd68f69
2023-02-15 09:25:20 -08:00
..
mock_create_one_pr_placeholder_issue.py github: add unexported _make_request mock point 2023-01-23 10:40:34 -08:00
mock_create_prs.py github: fix submit's "overlap" workflow 2023-02-15 09:25:20 -08:00
mock_existing_closed_pr.py pr submit: don't update closed PRs 2023-02-15 09:25:20 -08:00
mock_ghrevset.py revsets: add a test for ghrevset 2023-01-23 13:11:01 -08:00
mock_ghstack_land.py ghstack: add test for "land" logic 2023-01-23 10:40:34 -08:00