Skip to content

Commit

Pull request: a catch-up refused or failed after it stopped being behind shows its error under the up-to-date row

syntaqxcommitted Parentf6c4fc5Browse files
1 file+3−10/1 viewed
+3−1
10391039 {catchUp && "error" in catchUp && <ErrorText>{catchUp.error}</ErrorText>}
10401040 </StatusRow>
10411041 ) : (
1042− pull.headCommit && (
1042+ (pull.headCommit || (catchUp && "error" in catchUp)) && (
10431043 <StatusRow
10441044 icon={<CircleCheck size={16} className="text-accent" />}
10451045 title={
10561056 </>
10571057 )}
10581058 {agentCatchUp && "g1t merged it in and pushed the result. Its checks run again on the new commit."}
1059+ {/* A catch-up refused or failed after the pull request stopped being behind. */}
1060+ {catchUp && "error" in catchUp && <ErrorText>{catchUp.error}</ErrorText>}
10591061 </StatusRow>
10601062 )
10611063 )}