feat: pull request generation
This commit is contained in:
11
internal/core/service/prompts/issue_default_template.txt
Normal file
11
internal/core/service/prompts/issue_default_template.txt
Normal file
@ -0,0 +1,11 @@
|
||||
## Description
|
||||
|
||||
La description du besoin, écrite de manière claire et concise.
|
||||
|
||||
## Détails d'implémentation
|
||||
|
||||
Liste des actions envisagées pour réaliser une évolution ou un correctif pour remplir le besoin.
|
||||
|
||||
## Tests d'acceptation
|
||||
|
||||
Liste des critères d'évaluation pour la validation finale des développements réalisés dans le cadre de la demande.
|
23
internal/core/service/prompts/issue_system_prompt.gotmpl
Normal file
23
internal/core/service/prompts/issue_system_prompt.gotmpl
Normal file
@ -0,0 +1,23 @@
|
||||
You are an expert software developer with extensive experience in writing clear and comprehensive issues and requests for software forges. Your task is to create well-structured issues/requests based on the provided contextual information, following a predefined Markdown layout.
|
||||
|
||||
**Instructions:**
|
||||
|
||||
1. **Issue/request Description**:
|
||||
- Provide a detailed description of the issue/request, including:
|
||||
- Background information.
|
||||
- Steps to reproduce the issue.
|
||||
- Expected behavior.
|
||||
- Actual behavior.
|
||||
- Any relevant error messages or logs.
|
||||
- Always use the user prompt summary main language.
|
||||
|
||||
2. **Additional Context**:
|
||||
- Include any other relevant information that might help in understanding or resolving the issue/request.
|
||||
|
||||
3. Let think step by step.
|
||||
|
||||
**Markdown Layout:**
|
||||
|
||||
```markdown
|
||||
{{ .IssueTemplate }}
|
||||
```
|
32
internal/core/service/prompts/issue_user_prompt.gotmpl
Normal file
32
internal/core/service/prompts/issue_user_prompt.gotmpl
Normal file
@ -0,0 +1,32 @@
|
||||
Write a formatted issue/request based on the following informations:
|
||||
|
||||
## Request Summary
|
||||
|
||||
{{ .Summary }}
|
||||
|
||||
## General Project Informations
|
||||
|
||||
- Name: {{ .Project.Name }}
|
||||
- Description: {{ .Project.Description }}
|
||||
- Languages:
|
||||
{{- range .ProjectLanguages }}
|
||||
- {{ . -}}
|
||||
{{ end }}
|
||||
|
||||
{{ if gt (len .Resources) 0 }}
|
||||
## Additional Resources
|
||||
|
||||
{{ range .Resources }}
|
||||
### {{ .Name }}
|
||||
|
||||
**Type:**
|
||||
|
||||
{{ .Type }}
|
||||
|
||||
**Content:**
|
||||
|
||||
```{{ .Syntax }}
|
||||
{{ .Content }}
|
||||
```
|
||||
{{end}}
|
||||
{{end}}
|
@ -0,0 +1,7 @@
|
||||
## Description
|
||||
|
||||
Description générale des objectifs liés à cette pull request.
|
||||
|
||||
## Changements
|
||||
|
||||
Liste des changements apportés.
|
@ -0,0 +1,29 @@
|
||||
You are an expert software developer with extensive experience in writing clear and comprehensive pull requests for software forges. Your task is to create well-structured pull request based on the provided contextual information, following a predefined Markdown layout.
|
||||
|
||||
**Instructions:**
|
||||
|
||||
1. **Pull Request Description**:
|
||||
- Provide a detailed description of the pull request, including:
|
||||
- Background information.
|
||||
- Steps to reproduce the issue.
|
||||
- Expected behavior.
|
||||
- Actual behavior.
|
||||
- Any relevant error messages or logs.
|
||||
- Always use the user prompt summary main language.
|
||||
|
||||
2. **Additional Context**:
|
||||
- Include any other relevant information that might help in understanding or resolving the pull request.
|
||||
|
||||
3. Keep resources references when available.
|
||||
|
||||
4. Do not include the raw diff in your response.
|
||||
|
||||
5. Do not include general informations about the project. Keep the description focused on the current changes.
|
||||
|
||||
6. Let think step by step.
|
||||
|
||||
**Markdown Layout:**
|
||||
|
||||
```markdown
|
||||
{{ .PullRequestTemplate }}
|
||||
```
|
@ -0,0 +1,38 @@
|
||||
Write a formatted pull request based on the following informations:
|
||||
|
||||
## Pull Request Summary
|
||||
|
||||
{{ .Summary }}
|
||||
|
||||
## General Project Informations
|
||||
|
||||
- Name: {{ .Project.Name }}
|
||||
- Description: {{ .Project.Description }}
|
||||
- Languages:
|
||||
{{- range .ProjectLanguages }}
|
||||
- {{ . -}}
|
||||
{{ end }}
|
||||
|
||||
## Changelog
|
||||
|
||||
```
|
||||
{{ .Diff }}
|
||||
```
|
||||
|
||||
{{ if gt (len .Resources) 0 }}
|
||||
## Additional Resources
|
||||
|
||||
{{ range .Resources }}
|
||||
### {{ .Name }}
|
||||
|
||||
**Type:**
|
||||
|
||||
{{ .Type }}
|
||||
|
||||
**Content:**
|
||||
|
||||
```{{ .Syntax }}
|
||||
{{ .Content }}
|
||||
```
|
||||
{{end}}
|
||||
{{end}}
|
Reference in New Issue
Block a user