Skip to content
Source
Sign inSign up
Open History to see the last commit

pullRequestCheckoutToast.ts

9 lines492 Bytes

1import type { ChangeRequestTerminology } from "@t3tools/client-runtime/source-control-clients";
2​
3export function offHeadPullRequestCheckoutToast(terminology: ChangeRequestTerminology) {
4 return {
5 type: "warning",
6 title: "Checked out, but not confirmed on the latest commit",
7 description: `This checkout could not be confirmed at the ${terminology.singular}'s latest commit, so its code may differ. Local commits or uncommitted work keep a checkout where it is.`,
8 } as const;
9}