Skip to content

Commit f81d973

Browse files
Update prd.yml
1 parent 8f88bf9 commit f81d973

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

.github/workflows/prd.yml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
1-
name: genai pull request description
1+
name: GenAI Pull Request Descriptor
22
on:
3-
pull_request:
4-
types: [ready_for_review, review_requested, openend]
5-
concurrency:
6-
group: genai-pr-review-${{ github.workflow }}-${{ github.ref }}
7-
cancel-in-progress: true
3+
pull_request:
4+
types: [opened, reopened, ready_for_review]
85
permissions:
9-
contents: read # permission to read the repository
10-
pull-requests: write # permission to write a comment
11-
models: read # permission to use github models
6+
contents: read
7+
pull-requests: write
8+
models: read
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
1212
jobs:
13-
describe:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: "22"
20-
- name: fetch base branch
21-
run: git fetch origin ${{ github.event.pull_request.base.ref }}
22-
- name: genaiscript prd
23-
run: npx --yes genaiscript run prd --vars base=origin/${{ github.event.pull_request.base.ref }} --pull-request-description --out-trace $GITHUB_STEP_SUMMARY
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
generate-pull-request-description:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: pelikhan/action-genai-pull-request-descriptor@v0
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)