Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satoryu/labeling-by-gpt
This action puts labels to an issues in the repository autocratically without pre-defined rule.
https://github.com/satoryu/labeling-by-gpt
github-actions openai-api project-management
Last synced: 3 days ago
JSON representation
This action puts labels to an issues in the repository autocratically without pre-defined rule.
- Host: GitHub
- URL: https://github.com/satoryu/labeling-by-gpt
- Owner: satoryu
- License: mit
- Created: 2023-05-07T15:51:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T07:21:53.000Z (about 1 month ago)
- Last Synced: 2025-01-02T07:27:43.729Z (about 1 month ago)
- Topics: github-actions, openai-api, project-management
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/labeling-by-gpt
- Size: 644 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Labeling by GPT
When creating new issue, this action puts labels to an issues in the repository autocratically without pre-defined rule.
This is powered by OpenAI completion API to choose suitable labels.Please note that this action supports only `issues` trigger and the two types: `opened` and `edited`.
## Inputs
### `openai-api-key`
**Required** Your OpenAI API Key.
### `github-token`
Optional.
GitHub API token to access GitHub API.
The default value is `secrets.GITHUB_TOKEN`, an API token provided for an action.
Be sure of that this token has a permission to put labels to an issue.
[This document](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository) would help you.## Example
```yaml
on:
issues:
types: [opened, edited]jobs:
test:
name: test
runs-on: ubuntu-lateststeps:
- uses: satoryu/labeling-by-gpt@main
with:
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
```