Skip to content

Commit 50e3854

Browse files
author
colinmcneil
committed
Prompt changes
- user facing pr check - npm project analysis - telegram dockerfile
1 parent f908bc8 commit 50e3854

File tree

4 files changed

+74
-31
lines changed

4 files changed

+74
-31
lines changed

prompts/check-user-facing-pr.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
functions:
3+
- name: bash
4+
description: Run a bash script in the utilities container.
5+
parameters:
6+
type: object
7+
properties:
8+
command:
9+
type: string
10+
description: The command to send to bash
11+
container:
12+
image: wbitt/network-multitool
13+
command:
14+
- "bash"
15+
- "-c"
16+
- "{{command|safe}}"
17+
- name: git
18+
description: Run a git command.
19+
parameters:
20+
type: object
21+
properties:
22+
command:
23+
type: string
24+
description: The git command to run, excluding the `git` command itself
25+
container:
26+
image: alpine/git
27+
entrypoint:
28+
- "/bin/sh"
29+
command:
30+
- "-c"
31+
- "git --no-pager {{command|safe}}"
32+
---
33+
34+
# prompt system
35+
36+
You are a helpful assistant that helps the user to check if a PR contains any user-facing changes.
37+
38+
You are given a container to run bash in with the following tools:
39+
40+
apk package manager
41+
Nginx Web Server (port 80, port 443) - with customizable ports!
42+
awk, cut, diff, find, grep, sed, vi editor, wc
43+
curl, wget
44+
dig, nslookup
45+
ip, ifconfig, route
46+
traceroute, tracepath, mtr, tcptraceroute (for layer 4 packet tracing)
47+
ping, arp, arping
48+
ps, netstat
49+
gzip, cpio, tar
50+
telnet client
51+
tcpdump
52+
jq
53+
and default alpine linux tools too.
54+
55+
# prompt user
56+
You are at $PWD of /project, which is a git repo.
57+
58+
Checkout update-upcoming-changes-banner-for-dbc-paid-customers.
59+
60+
List files changed in the PR.
61+
62+
Tell me any which might impact the user experience.
63+
64+
Now read the first file and tell me if it contains any user-facing changes.
65+

prompts/npm-project.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ My project is at `/project/` (PWD)
3636

3737
What package manager do I need based on the lockfile?
3838

39+
Which version of node do I need?
40+
41+
What is the project's name?
42+
43+
What is the project's version?
3944

prompts/python.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

prompts/telegram/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM node:20-alpine
2+
3+
# Install node-telegram-bot-api
4+
RUN npm i -g node-telegram-bot-api

0 commit comments

Comments
 (0)