8000 GitHub - coder/labeler at 4bf0a1593c5db2b2d839297ee4081d87cad40f67
[go: up one dir, main page]

Skip to content

coder/labeler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

labeler

labeler is a GitHub app that automatically labels newly created issues for you based on your past labelling decisions. You can install it on your repo here.

img

We currently use it on coder/coder and coder/code-server.

Configuration

The labeler is configured by your label descriptions. For example, prevent the labeler from adding a roadmap label by adding "Only humans may set this label" to the your roadmap label description. In this way, the labeler interprets your label system in the same way a human would.

Architecture

sequenceDiagram
    participant GitHub
    participant Labeler as @coder-labeler 
    participant AI as OpenAI
    GitHub->>Labeler: [Create|Reopen] Issue event
    note over Labeler: Load repo data, all labeling is stateless
    Labeler->GitHub: Get all repo issue labels
    Labeler->GitHub: Get last 100 repo issues
    Labeler->AI: Generate setLabels
    Labeler ->> GitHub: Add labels to issue
Loading

The labeler uses a GPT-4 completion with the past 100 opened issues instead of a more complex vector DB / embedding system. This is because of the proven accuracy of @cdr-bot on coder/coder and the fact that the completion approach lets us remove the need for a DB.

On the other hand, completions are an order of magnitude more expensive, so costs may approach ~10c per opened issue. If the project reaches a scale where that becomes an issue, we can switch to an embedding system, GPT-3.5, or accept an OpenAI key.

Context construction

See aicontext.go for the code that constructs the GPT context.

About

A GitHub app that labels your issues for you

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0