| 788 | 788 | | } |
| 789 | 789 | | |
| 790 | 790 | | /// Everything a merge of `pull` is judged on, and the judgement, for |
| 791 | | − | /// `actor`, or for nobody in particular. A bypass counts only with |
| 792 | | − | /// `honor_bypass`: a person merging asks for it (`bypass_rules`). |
| 793 | | − | pub(crate) async fn merge_gate( |
| 794 | | − | &self, |
| 795 | | − | repo: &Repo, |
| 796 | | − | pull: &Pull, |
| 797 | | − | actor: Option<&User>, |
| 798 | | − | ignore_checks: bool, |
| 799 | | − | honor_bypass: bool, |
| 800 | | − | ) -> Result<Gate> { |
| 801 | | − | self.merge_gate_at(repo, pull, actor, ignore_checks, honor_bypass, None, None, None).await |
| 802 | | − | } |
| 803 | | − | |
| 804 | | − | /// `merge_gate` with whether it is behind already worked out (from |
| 805 | | − | /// what was stored with its mergeability, or asked once for this |
| 806 | | − | /// request), so that showing a pull request does not ask repos again. |
| 791 | + | /// `actor`, or for nobody in particular, as a pull request is shown: |
| 792 | + | /// bypasses count, and whether it is behind is what was already worked |
| 793 | + | /// out (stored with its mergeability, or asked once for this request), |
| 794 | + | /// so showing it does not ask repos again. |
| 807 | 795 | | pub(crate) async fn merge_gate_seen(&self, repo: &Repo, pull: &Pull, actor: Option<&User>, behind: bool) -> Result<Gate> { |
| 808 | 796 | | self.merge_gate_at(repo, pull, actor, false, true, None, None, Some(behind)).await |
| 809 | 797 | | } |
| 810 | 798 | | |
| 811 | | − | /// `merge_gate` for a merge by `method`: rules that allow only some |
| 799 | + | /// The gate for a merge by `method`, asking repos whether it is behind: rules that allow only some |
| 812 | 800 | | /// methods, and linear history, judge it too. Without a method they do |
| 813 | 801 | | /// not, as for showing what a pull request still needs. |
| 814 | 802 | | pub(crate) async fn merge_gate_by( |