File tree Expand file tree Collapse file tree 4 files changed +159
-65
lines changed Expand file tree Collapse file tree 4 files changed +159
-65
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ---
2
+ functions :
3
+ - name : git
4
+ description : Run a git command.
5
+ parameters :
6
+ type : object
7
+ properties :
8
+ args :
9
+ type : array
10
+ items :
11
+ type : string
12
+ description : The arguments to send to git.
13
+ container :
14
+ image : alpine/git
15
+ command :
16
+ - " --no-pager"
17
+ - " {{args|into}}"
18
+ mounts :
19
+ - " /Users/colinmcneil/.ssh:/root/.ssh:ro"
20
+ - name : mkdir
21
+ description : Create a directory.
22
+ parameters :
23
+ type : object
24
+ properties :
25
+ args :
26
+ type : array
27
+ items :
28
+ type : string
29
+ description : The arguments to send to mkdir.
30
+ container :
31
+ image : alpine
32
+ command :
33
+ - " mkdir"
34
+ - " {{args|into}}"
35
+ - name : run-javascript-sandbox
36
+ ---
37
+
38
+ # prompt system
39
+
40
+ You are a helpful assistant that helps the user to check if a PR contains any user-facing changes.
41
+
42
+ # prompt user
43
+ You are at $PWD of /project, which is a git repo.
44
+
45
+ Force checkout dev/feature/bill-2502
46
+
47
+ Run a three-dot diff of the files changed in dev/feature/bill-2502 compared to ` main ` using ` --name-only ` .
48
+
49
+ Be careful to consider which of this list could contain user-facing changes, and which are probablly just internal/backend changes.
50
+
51
+ Once you have a subset of files that might contain user-facing changes, report them.
52
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ functions :
3
+ - name : tree-sitter
4
+ description : Extract code ranges using tree-sitter queries
5
+ parameters :
6
+ type : object
7
+ properties :
8
+ lang :
9
+ type : string
10
+ description : language to parse
11
+ query :
12
+ type : string
13
+ description : tree-sitter query
14
+ file :
15
+ type : string
16
+ description : the file to parse
17
+ container :
18
+ image : vonwig/tree-sitter:latest
19
+ command :
20
+ - " -lang"
21
+ - " {{lang}}"
22
+ - " -query"
23
+ - " {{query}}"
24
+ stdin :
25
+ file : " {{file}}"
26
+ - name : read-file
27
+ - name : git
28
+ description : Run a git command.
29
+ parameters :
30
+ type : object
31
+ properties :
32
+ args :
33
+ type : array
34
+ items :
35
+ type : string
36
+ description : The arguments to send to git.
37
+ container :
38
+ image : alpine/git
39
+ command :
40
+ - " --no-pager"
41
+ - " {{args|into}}"
42
+ model : gpt-4o
43
+ ---
44
+
45
+ Checks a file list for user-facing changes.
46
+
47
+ Sample branch:
48
+ dckr-319-fix-duplicated-project-service-ports
49
+ frontends: fix/hub-copy-review-2
50
+ dev/feature/bill-2502
51
+
52
+ # prompt system
53
+
54
+ You are an expert at reporting diffs between two files on a git branch.
55
+
56
+ Checkout dev/feature/bill-2502
57
+
58
+ Read the list of paths in /thread/user-changes/files.txt
59
+
60
+ Report a git diff for these two files compared to main. Make sure to pass ` --no-color --minimal --unified=1 --summary ` to ` git diff ` .
61
+
62
+ ## User-facing content:
63
+
64
+ Text Nodes in any JSX or TSX files.
65
+
66
+ Text Nodes in any HTML files.
67
+
68
+ Standard user-facing text
69
+
70
+ # prompt user
71
+
72
+ Can you tell me if there are any user-facing changes in dev/feature/bill-2502 ?
Original file line number Diff line number Diff line change
1
+ ---
2
+ functions :
3
+ - name : one-review-pr
4
+ type : prompt
5
+ parameters :
6
+ type : object
7
+ properties :
8
+ branch :
9
+ type : string
10
+ description : the branch to check
11
+ ref : " github:docker/labs-ai-tools-for-devs?path=prompts/check-user-facing-pr/1-check-user-facing-pr.md&ref=main"
12
+ - name : two-review-files
13
+ type : prompt
14
+ parameters :
15
+ type : object
16
+ properties :
17
+ files :
18
+ type : array
19
+ description : the files to check
20
+ ref : " github:docker/labs-ai-tools-for-devs?path=prompts/check-user-facing-pr/2-check-user-facing-file.md&ref=main"
21
+ ---
22
+
23
+ Checks a PR for user-facing changes.
24
+
25
+ # prompt system
26
+
27
+ You are a helpful assistant that checks a PR for user-facing changes.
28
+
29
+ First, run the ` one-review-pr ` prompt to generate a list of files that have changed.
30
+
31
+ Then, run the ` two-review-files ` prompt to generate a list of user-facing content from each file changed.
32
+
33
+ # prompt user
34
+
35
+ I need you to check ` my-branch ` .
You can’t perform that action at this time.
0 commit comments