-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsample-commit-workflow.yml
More file actions
46 lines (40 loc) · 1.18 KB
/
sample-commit-workflow.yml
File metadata and controls
46 lines (40 loc) · 1.18 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
name: codeglide MCP gen commit/PR
on:
workflow_dispatch:
inputs:
input_directory:
description: 'Directory containing API source code (relative to workspace)'
type: string
required: false
default: '.'
custom_headers:
description: 'Custom headers in API requests - {"key":"value"}'
type: string
required: false
default: '{}'
create_pr:
description: 'Create PR with generated code'
type: boolean
required: false
default: false
create_branch_and_commit:
description: 'Create branch and commit with generated code'
type: boolean
required: false
default: false
# Add permissions
permissions:
contents: write
pull-requests: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: codeglide MCP generator
uses: CodeGlide/codeglide-mcpgen@v1.0.10
with:
input_directory: ${{ inputs.input_directory }}
create_pr: ${{ inputs.create_pr }}
create_branch_and_commit: ${{ inputs.create_branch_and_commit }}
custom_headers: ${{ inputs.custom_headers }}