mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-14 17:50:37 +08:00
generate_labels fix
This commit is contained in:
@ -1,16 +1,16 @@
|
|||||||
# Generate Custom Labels
|
# Generate Custom Labels
|
||||||
The `generte_labels` tool scans the PR code changes, and given a list of labels and their descriptions, it automatically suggests labels that match the PR code changes.
|
The `generate_labels` tool scans the PR code changes, and given a list of labels and their descriptions, it automatically suggests labels that match the PR code changes.
|
||||||
|
|
||||||
It can be invoked manually by commenting on any PR:
|
It can be invoked manually by commenting on any PR:
|
||||||
```
|
```
|
||||||
/generte_labels
|
/generate_labels
|
||||||
```
|
```
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
If we wish to add detect changes to SQL queries in a given PR, we can add the following custom label along with its description:
|
If we wish to add detect changes to SQL queries in a given PR, we can add the following custom label along with its description:
|
||||||
|
|
||||||
<kbd><img src=./../pics/custom_labels_list.png width="768"></kbd>
|
<kbd><img src=./../pics/custom_labels_list.png width="768"></kbd>
|
||||||
When running the `generte_labels` tool on a PR that includes changes in SQL queries, it will automatically suggest the custom label:
|
When running the `generate_labels` tool on a PR that includes changes in SQL queries, it will automatically suggest the custom label:
|
||||||
<kbd><img src=./../pics/custom_label_published.png width="768"></kbd>
|
<kbd><img src=./../pics/custom_label_published.png width="768"></kbd>
|
||||||
|
|
||||||
### Configuration options
|
### Configuration options
|
||||||
@ -24,7 +24,7 @@ description = "Description of when AI should suggest this label"
|
|||||||
- You can add modify the list to include all the custom labels you wish to use in your repository.
|
- You can add modify the list to include all the custom labels you wish to use in your repository.
|
||||||
|
|
||||||
#### Github Action
|
#### Github Action
|
||||||
To use the `generte_labels` tool with Github Action:
|
To use the `generate_labels` tool with Github Action:
|
||||||
|
|
||||||
- Add the following file to your repository under `env` section in `.github/workflows/pr_agent.yml`
|
- Add the following file to your repository under `env` section in `.github/workflows/pr_agent.yml`
|
||||||
- Comma separated list of custom labels and their descriptions
|
- Comma separated list of custom labels and their descriptions
|
||||||
|
Reference in New Issue
Block a user