Skip to content

Commit 1aa60d6

Browse files
Add development configuration (#23)
* Add template .env files * Disable GitHub Copilot settings for shell script (.env.* files) * Update environment variable files to use .env.development for start scripts * Add launch configuration for PR Summary and PR Review * Update .gitignore to include all dotenv environment variable files
1 parent f9c9e53 commit 1aa60d6

File tree

9 files changed

+1168
-6
lines changed

9 files changed

+1168
-6
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ pids
2323
*.pid.lock
2424

2525
# dotenv environment variables file
26-
.env
27-
.env.test
28-
test-event.json
26+
.env.*
2927

3028
# OS metadata
3129
.DS_Store

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"command": "npm start",
9+
"name": "PR Summary (npm start)",
10+
"request": "launch",
11+
"type": "node-terminal",
12+
"envFile": "${workspaceFolder}/pr-summary/.env.development",
13+
"cwd": "${workspaceFolder}/pr-summary"
14+
},
15+
{
16+
"command": "npm start",
17+
"name": "PR Review (npm start)",
18+
"request": "launch",
19+
"type": "node-terminal",
20+
"envFile": "${workspaceFolder}/pr-review/.env.development",
21+
"cwd": "${workspaceFolder}/pr-review"
22+
}
23+
]
24+
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"[typescript]": {
1414
"editor.defaultFormatter": "esbenp.prettier-vscode"
1515
},
16-
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }]
16+
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
17+
"github.copilot.enable": { "shellscript": false }
1718
}

pr-review/.env

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Just create a copy of that file and name it ".env.development" so you can use it for debugging.
2+
3+
NODE_ENV=development
4+
5+
INPUT_USER_TOKEN=ghp_abcdefghijklmnopqrstuvwxyzABCD012345
6+
INPUT_GITHUB_API_URL=https://github.tools.sap/api/v3
7+
INPUT_OWNER=processone
8+
INPUT_REPO=technology-exploration
9+
INPUT_PR_NUMBER=1
10+
11+
INPUT_AICORE_SERVICE_KEY='{ "clientid": "...", "clientsecret": "...", "url": "...", "serviceurls": { "AI_API_URL": ... } }'
12+
INPUT_DISPLAY_MODE='none'
13+
INPUT_PREVIOUS_RESULTS='keep'
14+
15+
# INPUT_MODEL=
16+
# INPUT_PROMPT=
17+
# INPUT_PROMPT_ADDITION=
18+
# INPUT_DISCLAIMER_PROMPT=
19+
# INPUT_HEADER_TEXT=
20+
# INPUT_FOOTER_TEXT=
21+
# INPUT_BASE_SHA=
22+
# INPUT_HEAD_SHA=
23+
# INPUT_INCLUDE_FILES=**
24+
# INPUT_EXCLUDE_FILES='package-lock.json, dist/**/*'
25+
# INPUT_INCLUDE_CONTEXT_FILES=
26+
# INPUT_EXCLUDE_CONTEXT_FILES=

0 commit comments

Comments
 (0)