Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
doc: last breaking task query
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackarySantana committed Feb 20, 2024
1 parent 4fa8c5d commit c1d95e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/task/actionButtons/relevantCommits/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
const passingOrderNumber =
getOrderFromMainlineCommitsQuery(lastPassingTaskData);

// The breaking commit is the first failing commit after the last passing commit.
// The skip order number should be the last passing commit's order number + 1.
// We use + 2 because internally the query does a less than comparison.
const { data: breakingTaskData, loading: breakingLoading } = useQuery<
LastMainlineCommitQuery,
LastMainlineCommitQueryVariables
Expand Down

0 comments on commit c1d95e0

Please sign in to comment.