Skip to content

Commit bdca83e

Browse files
authored
Add automatic labeling bot (#4478)
* add new action Signed-off-by: Po-Wei Wang (Vincent) <poweiw@nvidia.com> * update token var name Signed-off-by: Po-Wei Wang (Vincent) <poweiw@nvidia.com> * update to align with goggles_action update Signed-off-by: Po-Wei Wang (Vincent) <poweiw@nvidia.com> * chore: update goggles_action to v1.0.0 Signed-off-by: Po-Wei Wang (Vincent) <poweiw@nvidia.com> * Use v1.0.1 of goggles_action Signed-off-by: Po-Wei Wang (Vincent) <poweiw@nvidia.com> --------- Signed-off-by: Po-Wei Wang (Vincent) <poweiw@nvidia.com>
1 parent 6d178ce commit bdca83e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/label_issue.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Label New Issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
permissions:
8+
issues: write
9+
contents: read
10+
11+
jobs:
12+
label-issue:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout private action repository
16+
uses: actions/checkout@v4
17+
with:
18+
repository: poweiw/goggles_action
19+
path: ./.github/actions/goggles_action # local path to store the action
20+
token: ${{ secrets.ACTION_REPO_PAT }} # token to access poweiw/goggles_action
21+
ref: v1.0.1
22+
23+
- name: AI Label Issue
24+
uses: ./.github/actions/goggles_action/actions/llm_label
25+
with:
26+
ACTION_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
LLM_MODEL_NAME: ${{ secrets.LLM_MODEL_NAME }}
28+
LLM_TOKEN_SERVER_URL: ${{ secrets.LLM_TOKEN_SERVER_URL }}
29+
LLM_TOKEN_CLIENT_ID: ${{ secrets.LLM_TOKEN_CLIENT_ID }}
30+
LLM_TOKEN_CLIENT_SECRET: ${{ secrets.LLM_TOKEN_CLIENT_SECRET }}
31+
LLM_GENERATE_URL: ${{ secrets.LLM_GENERATE_URL }}
32+
LLM_TOKEN_SCOPE: ${{ secrets.LLM_TOKEN_SCOPE }}
33+
REPO_OWNER: ${{ github.repository_owner }}
34+
REPO_NAME: ${{ github.event.repository.name }}
35+
ISSUE_NUMBER: ${{ github.event.issue.number }}
36+
ISSUE_TITLE: ${{ github.event.issue.title }}
37+
ISSUE_BODY: ${{ github.event.issue.body }}
38+
GITHUB_API_URL: ${{ github.api_url }}
39+
ACTIONS_STEP_VERBOSE: false

0 commit comments

Comments
 (0)