-
Notifications
You must be signed in to change notification settings - Fork 66.9k
Expand file tree
/
Copy pathctas.ts
More file actions
57 lines (53 loc) · 1.67 KB
/
ctas.ts
File metadata and controls
57 lines (53 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// This schema enforces the structure for CTA (Call-to-Action) URL parameters
// Used to validate CTA tracking parameters in documentation links
export default {
type: 'object',
additionalProperties: false,
required: ['ref_product', 'ref_type', 'ref_style'],
properties: {
// GitHub Product: The GitHub product the CTA leads users to
// Format: ref_product=copilot
ref_product: {
type: 'string',
name: 'Product',
description: 'The GitHub product the CTA leads users to',
enum: [
'copilot',
'ghec',
'desktop',
'code-quality',
'code-scanning',
'secret-scanning',
'supply-chain-security',
'security-advisories',
'cli',
'github',
],
},
// Type of CTA: The type of action the CTA encourages users to take
// Format: ref_type=trial
ref_type: {
type: 'string',
name: 'Type',
description: 'The type of action the CTA encourages users to take',
enum: ['trial', 'purchase', 'engagement'],
},
// CTA style: The way we are formatting the CTA in the docs
// Format: ref_style=button
ref_style: {
type: 'string',
name: 'Style',
description: 'The way we are formatting the CTA in the docs',
enum: ['button', 'text'],
},
// Type of plan (Optional): For links to sign up for or trial a plan, the specific plan we link to
// Format: ref_plan=business
ref_plan: {
type: 'string',
name: 'Plan',
description:
'For links to sign up for or trial a plan, the specific plan we link to (optional)',
enum: ['enterprise', 'business', 'pro', 'pro-plus', 'free'],
},
},
}