Skip to content

Commit e8cb896

Browse files
authored
feat(OGS-005): ChatGPT completions integration
* feat: adding completion utility for chat gpt
1 parent 0dafac1 commit e8cb896

File tree

13 files changed

+5139
-325
lines changed

13 files changed

+5139
-325
lines changed

.github/workflows/pre-fill-pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ jobs:
5454
["feat", "fix", "chore", "docs", "refactor", "test", "style", "ci", "perf", "build"]
5555
tickets: |
5656
["OGS", "LTR", "AGI", "MIR", "APA"]
57+
chat-gpt-token: ${{ secrets.CHAT_GPT_TOKEN }}

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ You can see a [demo pull request](https://github.com/mateoguzmana/semantic-pull-
3535
3636
| Option | Description | Default |
3737
| --------------------------------------- | ------------------------------------------- | ------------------------------- |
38-
| `github-token` | The GitHub token to use for the API calls. | `${{ secrets.GITHUB_TOKEN }}` |
38+
| `github-token` | GitHub token to use for the API calls. | `${{ secrets.GITHUB_TOKEN }}` |
3939
| [`title-format`](#title-format) | The title format to use | `'prefix(ticket): description'` |
4040
| [`project-base-url`](#project-base-url) | Base URL for the project/task/ticket system | `'https://example.com'` |
4141
| [`template-type`](#template-type) | The template type to use | `'basic'` |
4242
| [`custom-template`](#custom-template) | If set, `template-type` is ignored | |
4343
| [`prefixes`](#prefixes) | The prefixes to use | [Default prefixes](#prefixes) |
4444
| [`tickets`](#tickets) | The tickets to use | [Default tickets](#tickets) |
45+
| `chat-gpt-token` | See [ChatGPT Token](#chatgpt-token) | |
4546

4647
### Title Format
4748

@@ -172,6 +173,12 @@ You can pass them as an array of strings:
172173
["test", "test2"]
173174
```
174175

176+
### ChatGPT Token
177+
178+
ChatGPT token. If set, the action will try to generate a pull request description using ChatGPT.
179+
180+
**Note**: This is experimental.
181+
175182
---
176183

177184
## Contributing

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ inputs:
2828
type: array
2929
items:
3030
type: string
31+
chat-gpt-token:
32+
description: 'ChatGPT token. If set, the action will try to generate a pull request description using ChatGPT.'
33+
required: false
3134
runs:
3235
using: 'node16'
3336
main: 'dist/index.js'

0 commit comments

Comments
 (0)