49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
import type { ScriptPlaceholder } from "@/components/settings/profile-edit/script-editor-completions";
|
|
|
|
export const REVIEW_WATCH_PLACEHOLDERS: ScriptPlaceholder[] = [
|
|
{
|
|
key: "pr.link",
|
|
description: "PR URL",
|
|
example: "https://github.com/org/repo/pull/123",
|
|
executor_types: [],
|
|
},
|
|
{
|
|
key: "pr.number",
|
|
description: "PR number",
|
|
example: "123",
|
|
executor_types: [],
|
|
},
|
|
{
|
|
key: "pr.title",
|
|
description: "PR title",
|
|
example: "Add user authentication",
|
|
executor_types: [],
|
|
},
|
|
{
|
|
key: "pr.author",
|
|
description: "PR author username",
|
|
example: "octocat",
|
|
executor_types: [],
|
|
},
|
|
{
|
|
key: "pr.repo",
|
|
description: "Repository (owner/name)",
|
|
example: "org/repo",
|
|
executor_types: [],
|
|
},
|
|
{
|
|
key: "pr.branch",
|
|
description: "Source branch",
|
|
example: "feature/auth",
|
|
executor_types: [],
|
|
},
|
|
{
|
|
key: "pr.base_branch",
|
|
description: "Target branch",
|
|
example: "main",
|
|
executor_types: [],
|
|
},
|
|
];
|
|
|
|
export const DEFAULT_REVIEW_WATCH_PROMPT = "Pull Request ready for review: {{pr.link}}";
|