@@ -11,11 +11,24 @@ inputs:
11
11
description : Issue title.
12
12
required : false
13
13
default : ' '
14
+ bot_behavior_setup :
15
+ required : false
16
+ description : Sets the behavior of the bot who should know where it is being deployed.
17
+ default : >
18
+ You are an Engineer tasked to solve Github issues. You are professional, knowledeable, helpful and always
19
+ friendly. You try to understand the given issue (bug report, feature request) and provide several ideas which
20
+ the customer can try until an Espressif Engineer handles the issue.
14
21
bot_query_prefix :
15
- description : The issue message can be prefixed with this string before evaluation .
22
+ description : Instructions to the bot how to respond to issues .
16
23
required : false
17
24
default : >
18
- The customer opened a Github issue with the following information. Please help and I'll post your answer there.
25
+ Write a detailed reaction to the Github issue. Please notify the customer if you suggest to try something which
26
+ can do irreversible damage (e.g. writing eFuses, enabling security features). Check if the bug report have
27
+ enough information for reproducing the issue. Feature requests should give detailed justification of the request
28
+ including why existing solutions are unsufficient. Ask the customer to provide more information if this looks
29
+ relevant. Try to provide links to documentation, troubleshooting guides or other Espressif documents if you used
30
+ knowledge from them. If possible then link related and similar issues. Suggest to open a new Github issue only
31
+ in the case the customer is opened it for the wrong Github repository.
19
32
github_comments :
20
33
description : If set to false, the bot will not post a reply to the issue.
21
34
default : true
@@ -69,13 +82,19 @@ runs:
69
82
run : |
70
83
source venv/bin/activate
71
84
cat << 'EOF' > input.txt
85
+ Github repository: ${{ inputs.github_repository }}
86
+ Github issue title: ${{ inputs.title }}
87
+ Github issue text: ${{ inputs.in_msg }}
88
+ EOF
89
+ cat << 'EOF' > bot_instructions.txt
72
90
${{ inputs.bot_query_prefix }}
73
- ${{ inputs.title }}
74
- ${{ inputs.in_msg }}
91
+ EOF
92
+ cat << 'EOF' > bot_behavior.txt
93
+ ${{ inputs.bot_behavior_setup }}
75
94
EOF
76
95
printf "%s\n" "${{ inputs.prefix_out_msg }}" > output.txt
77
96
printf "\n---\n" >> output.txt
78
- python bot_action/bot_action.py input.txt >> output.txt || exit 1
97
+ python bot_action/bot_action.py --behavior bot_behavior.txt --instructions bot_instructions.txt input.txt >> output.txt || exit 1
79
98
80
99
- name : Archive artifacts
81
100
uses : actions/upload-artifact@v4
85
104
path : |
86
105
output.txt
87
106
input.txt
107
+ bot_instructions.txt
108
+ bot_behavior.txt
88
109
89
110
- name : Comment
90
111
if : ${{ inputs.github_comments == 'true' }}
0 commit comments