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
feat: add GitHub Action for issue comment commands
Implements a GitHub Action that responds to /mycoder pr and /mycoder plan commands in issue comments. This allows users to trigger MyCoder directly from GitHub issues. Closes#162.
echo "Running MyCoder to implement PR for issue #${{ github.event.issue.number }}"
47
+
mycoder --githubMode true "Implement a PR for GitHub issue #${{ github.event.issue.number }}. The issue can be found at ${{ github.event.issue.html_url }}. 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 }}"
59
+
mycoder --githubMode true "Review GitHub issue #${{ github.event.issue.number }} at ${{ github.event.issue.html_url }} 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."
MyCoder provides automated actions in response to specific commands in GitHub issue comments. This feature allows you to trigger MyCoder directly from GitHub issues.
4
+
5
+
## Available Commands
6
+
7
+
### `/mycoder pr`
8
+
9
+
When you add a comment with `/mycoder pr` to any issue, MyCoder will:
10
+
11
+
1. Check out the repository
12
+
2. Review the issue details
13
+
3. Implement a solution according to the requirements
14
+
4. Create a pull request that addresses the issue
15
+
16
+
Example:
17
+
```
18
+
This looks like a great feature to add!
19
+
20
+
/mycoder pr
21
+
```
22
+
23
+
### `/mycoder plan`
24
+
25
+
When you add a comment with `/mycoder plan` to any issue, MyCoder will:
26
+
27
+
1. Review the issue details
28
+
2. Create a comprehensive implementation plan
29
+
3. Post the plan as a comment on the issue
30
+
31
+
Example:
32
+
```
33
+
I'm not sure about the best approach for this.
34
+
35
+
/mycoder plan
36
+
```
37
+
38
+
## How It Works
39
+
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.
41
+
42
+
## Requirements
43
+
44
+
For this feature to work in your repository:
45
+
46
+
1. The GitHub Action workflow must be present in your repository
47
+
2. You need to configure the necessary API keys as GitHub secrets:
48
+
-`GITHUB_TOKEN` (automatically provided)
49
+
-`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `XAI_API_KEY`, or `MISTRAL_API_KEY` (depending on your preferred model)
50
+
51
+
## Limitations
52
+
53
+
- The action runs with GitHub's default timeout limits
54
+
- Complex implementations may require multiple iterations
55
+
- The AI model's capabilities determine the quality of the implementation or plan
0 commit comments