Skip to content

A GitHub Action that can be used to suggest labels for issues.

License

Notifications You must be signed in to change notification settings

snehara99/label-suggestions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

suggest-labels

A GitHub Action that can be used to suggest labels for issues.

Inputs

repo

The name of the repo with the issues that need label suggestions. Default ${{ github.event.repository.name }}.

owner

The repo owner's username. Default ${{ github.repository_owner }}.

token

Access token that can access the issues on the repo. Default ${{ github.token }}.

api-key

Required OpenAI API access key.

endpoint

Required OpenAI endpoint for accessing the model.

deployment-id

Required The deployment ID of the OpenAI model.

Outputs

labels

The issues and their corresponding labels.

Example usage

name: Suggest Labels
- uses: snehara99/label-suggestions@0.0.13
  with:
    repo: ${{ github.event.repository.name }}
    owner: ${{ github.repository_owner }}
    token: ${{ github.token }}
    api_key: ${{ secrets.API_KEY }}
    endpoint: 'https://americasopenai.azure-api.net'
    deployment-id: 'gpt-35-turbo-16k'

About

A GitHub Action that can be used to suggest labels for issues.

Resources

License

Stars

Watchers

Forks

Packages

No packages published