You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "Running MyCoder to implement PR for issue #${{ github.event.issue.number }}"
46
-
mycoder --githubMode true --userPrompt false "Implement a PR for GitHub issue #${{ github.event.issue.number }}. Please review the issue details and implement a solution according to the requirements. After implementation, create a pull request that addresses this issue."
echo "Running MyCoder to create implementation plan for issue #${{ github.event.issue.number }}"
55
-
mycoder --githubMode true --userPrompt false "Review GitHub issue #${{ github.event.issue.number }} and create an implementation plan. Post your plan as a comment on the issue. Be thorough and consider all requirements mentioned in the issue description."
61
+
echo "Running MyCoder for issue #${{ github.event.issue.number }} with prompt: ${{ steps.extract-prompt.outputs.prompt }}"
62
+
mycoder --githubMode true --userPrompt false "On issue #${{ github.event.issue.number }} the user asked: '${{ steps.extract-prompt.outputs.prompt }}' in comment ${{ steps.extract-prompt.outputs.comment_url }}. Please address this request. If you create a PR or take actions outside the scope of this issue, please report back to the issue with a comment explaining what you did."
MyCoder provides automated actions in response to specific commands in GitHub issue comments. This feature allows you to trigger MyCoder directly from GitHub issues.
3
+
MyCoder provides automated actions in response to `/mycoder` commands in GitHub issue comments. This feature allows you to trigger MyCoder directly from GitHub issues with flexible prompts.
4
4
5
-
## Available Commands
5
+
## How to Use
6
6
7
-
### `/mycoder pr`
7
+
Simply add a comment to any GitHub issue with `/mycoder` followed by your instructions:
8
8
9
-
When you add a comment with `/mycoder pr` to any issue, MyCoder will:
9
+
```
10
+
/mycoder [your instructions here]
11
+
```
12
+
13
+
MyCoder will process your instructions in the context of the issue and respond accordingly.
10
14
15
+
## Examples
16
+
17
+
### Creating a PR
18
+
19
+
```
20
+
/mycoder implement a PR for this issue
21
+
```
22
+
23
+
MyCoder will:
11
24
1. Check out the repository
12
25
2. Review the issue details
13
26
3. Implement a solution according to the requirements
14
27
4. Create a pull request that addresses the issue
15
28
16
-
Example:
17
-
```
18
-
This looks like a great feature to add!
29
+
### Creating an Implementation Plan
19
30
20
-
/mycoder pr
31
+
```
32
+
/mycoder create an implementation plan for this issue
21
33
```
22
34
23
-
### `/mycoder plan`
24
-
25
-
When you add a comment with `/mycoder plan` to any issue, MyCoder will:
26
-
35
+
MyCoder will:
27
36
1. Review the issue details
28
37
2. Create a comprehensive implementation plan
29
38
3. Post the plan as a comment on the issue
30
39
31
-
Example:
40
+
### Other Use Cases
41
+
42
+
The `/mycoder` command is flexible and can handle various requests:
43
+
44
+
```
45
+
/mycoder suggest test cases for this feature
46
+
```
47
+
48
+
```
49
+
/mycoder analyze the performance implications of this change
32
50
```
33
-
I'm not sure about the best approach for this.
34
51
35
-
/mycoder plan
52
+
```
53
+
/mycoder recommend libraries we could use for this implementation
36
54
```
37
55
38
56
## How It Works
39
57
40
-
This functionality is implemented as a GitHub Action that runs whenever a new comment is added to an issue. The action checks for these specific command patterns and triggers MyCoder with the appropriate instructions.
58
+
This functionality is implemented as a GitHub Action that runs whenever a new comment is added to an issue. The action checks for the `/mycoder` command pattern and triggers MyCoder with the appropriate instructions.
59
+
60
+
MyCoder receives context about:
61
+
- The issue number
62
+
- The specific prompt you provided
63
+
- The comment URL where the command was triggered
64
+
65
+
If MyCoder creates a PR or takes actions outside the scope of the issue, it will report back to the issue with a comment explaining what was done.
41
66
42
67
## Requirements
43
68
@@ -52,4 +77,4 @@ For this feature to work in your repository:
52
77
53
78
- The action runs with GitHub's default timeout limits
54
79
- Complex implementations may require multiple iterations
55
-
- The AI model's capabilities determine the quality of the implementation or plan
80
+
- The AI model's capabilities determine the quality of the results
0 commit comments