-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
149 lines (117 loc) · 3.77 KB
/
action.yml
File metadata and controls
149 lines (117 loc) · 3.77 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: 'AI Release Assistant'
description: 'Intelligent release automation with AI-powered versioning and changelog generation'
author: 'Synctree'
branding:
icon: 'git-branch'
color: 'blue'
inputs:
# Core Configuration
main-branch:
description: 'Main branch to analyze changes from'
required: false
default: 'main'
feature-branch:
description: 'Feature branch containing changes to analyze'
required: true
github-token:
description: 'GitHub token for API access'
required: false
default: ${{ github.token }}
# File Paths
package-json-path:
description: 'Path to package.json file'
required: false
default: './package.json'
changelog-path:
description: 'Path to CHANGELOG.md file'
required: false
default: './CHANGELOG.md'
# Multi-Strategy Configuration
versioning-strategy:
description: 'Versioning analysis strategy: conventional, ai, or hybrid'
required: false
default: 'hybrid'
ai-provider:
description: 'AI provider for analysis: openai, anthropic'
required: false
default: 'openai'
openai-api-key:
description: 'OpenAI API key for AI-powered analysis'
required: false
anthropic-api-key:
description: 'Anthropic API key for AI-powered analysis'
required: false
# AI Configuration
ai-model:
description: 'AI model to use (e.g., gpt-4, gpt-3.5-turbo, claude-3-opus)'
required: false
default: 'gpt-4'
ai-confidence-threshold:
description: 'Minimum confidence score to trust AI analysis (0.0-1.0)'
required: false
default: '0.7'
# Conventional Commits Configuration
conventional-types:
description: 'Comma-separated list of conventional commit types to recognize'
required: false
default: 'feat,fix,docs,style,refactor,test,chore,build,ci,perf'
# Changelog Configuration
changelog-format:
description: 'Changelog format: keepachangelog, custom'
required: false
default: 'keepachangelog'
changelog-template:
description: 'Path to custom changelog template (when format is custom)'
required: false
# Release Configuration
pre-release:
description: 'Generate a pre-release version (alpha, beta, rc)'
required: false
default: 'false'
pre-release-identifier:
description: 'Pre-release identifier when pre-release is true'
required: false
default: 'beta'
skip-changelog:
description: 'Skip changelog generation'
required: false
default: 'false'
skip-git-tag:
description: 'Skip creating git tag for the release'
required: false
default: 'false'
# Advanced Configuration
max-commits-analysis:
description: 'Maximum number of commits to analyze (performance optimization)'
required: false
default: '100'
enable-caching:
description: 'Enable AI response caching to reduce API costs'
required: false
default: 'true'
debug-mode:
description: 'Enable detailed logging for debugging'
required: false
default: 'false'
outputs:
version:
description: 'The calculated version number'
release-branch:
description: 'The name of the release branch created'
version-bump:
description: 'The type of version bump (major, minor, patch)'
changelog-entry:
description: 'The generated changelog entry'
analysis-strategy:
description: 'The strategy used for analysis (conventional, ai, hybrid)'
ai-confidence:
description: 'The AI confidence score (0.0-1.0) if AI was used'
analysis-reasoning:
description: 'Human-readable explanation of the versioning decision'
commit-count:
description: 'Number of commits analyzed'
breaking-changes:
description: 'Whether breaking changes were detected (true/false)'
runs:
using: 'node20'
main: 'dist/index.js'