Add GitHub token environment variable support and improve git operations

This commit is contained in:
Chris Scott committed 2025-11-30 21:05:30 -05:00
1 parent 025b2990ed
commit af0dcac7c8
11 files changed
+125 -21

No files matched your search

+10
View File
@@ -10,6 +10,12 @@ interface ToastOptions {
id?: string | number
}
interface PromiseToastMessages {
loading: string
success: string
error: string
}
export const showToast = {
success: (message: string, options?: ToastOptions) => {
return toast.success(message, options)
@@ -31,6 +37,10 @@ export const showToast = {
return toast.loading(message, options)
},
promise: <T>(promise: Promise<T>, messages: PromiseToastMessages) => {
return toast.promise(promise, messages)
},
dismiss: (id?: string | number) => {
toast.dismiss(id)
}