-
Notifications
You must be signed in to change notification settings - Fork 219
49 lines (42 loc) · 1.76 KB
/
nexu-pal-issue-opened.yml
File metadata and controls
49 lines (42 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "nexu-pal: issue opened"
on:
issues:
types: [opened]
permissions:
contents: read
issues: write
jobs:
process-issue:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.NEXU_PAL_APP_ID }}
private-key: ${{ secrets.NEXU_PAL_PRIVATE_KEY_PEM }}
- name: Welcome first-time contributor
uses: actions/first-interaction@v3
with:
repo_token: ${{ steps.app-token.outputs.token }}
issue_message: |
Hey, welcome to Nexu! 🎉 Thanks so much for taking the time to open your first issue here — we really appreciate it. A maintainer will be along shortly to take a look. In the meantime, feel free to share any extra context that might help us help you!
pr_message: |
Hey, welcome to Nexu! 🎉 Thanks so much for opening your first pull request — we really appreciate the contribution. A maintainer will review it shortly.
- name: Process issue
env:
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_MODEL: "google/gemini-2.5-flash"
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_AUTHOR_ASSOCIATION: ${{ github.event.issue.author_association }}
run: node scripts/nexu-pal/process-issue-opened.mjs