Skip to content

Commit

Permalink
Merge pull request #8 from thibaultyou/docs/update-pr-generator-format
Browse files Browse the repository at this point in the history
Update GitHub Pull Request Generator Prompt
  • Loading branch information
thibaultyou authored Sep 29, 2024
2 parents 1daa72c + e2da7c9 commit f101fa7
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 57 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Welcome to the **Prompt Library**. This repository contains a collection of AI p



- [GitHub Pull Request Generator](prompts/github_pull_request_generator/view.md) - Generates comprehensive and well-structured GitHub pull requests adhering to best practices
- [GitHub Pull Request Generator](prompts/github_pull_request_generator/view.md) - Generates comprehensive and well-structured GitHub pull requests based on change details and project context



Expand Down
12 changes: 6 additions & 6 deletions prompts/github_pull_request_generator/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ tags:
- software_engineering
- best_practices
one_line_description: Generates comprehensive and well-structured GitHub pull requests
adhering to best practices
description: This prompt creates detailed GitHub pull requests based on provided change
details and project context. It generates a clear title, comprehensive description,
list of changes, documentation updates, and additional notes, ensuring high-quality
contributions that are easy to review and merge.
based on change details and project context
description: This prompt creates perfect GitHub pull requests by analyzing change
details and project context. It generates a formatted markdown output that includes
a clear title, detailed description, list of changes, documentation updates, and
additional notes, adhering to best practices and project standards.
variables:
- '{{CHANGE_DETAILS}}'
- '{{PROJECT_CONTEXT}}'
content_hash: 3b22372d1f57cd40f383f3ea56f85c3d
content_hash: b6ad0e1be1aa1be5150cdfc15b876e7a
43 changes: 19 additions & 24 deletions prompts/github_pull_request_generator/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,32 @@ To generate a perfect pull request, follow these steps:
7. Include any relevant links or references.
8. Ensure the pull request adheres to the project's coding standards and best practices.

Format your response as follows:
Format your response using GitHub-flavored markdown, ready for copy/pasting into a GitHub PR. Use the following structure:

<pull_request>
<title>
Provide a clear and concise title for the pull request.
</title>
```markdown
# [Title]

<description>
Write a comprehensive description of the changes, including:
## Description
[Comprehensive description of the changes, including:]
- Purpose of the changes
- Impact on the project
- Any important implementation details
- Important implementation details
- Testing performed
- Any known limitations or future work
</description>
- Known limitations or future work

<changes>
List the files changed and provide a brief explanation of each change.
</changes>
## Changes
[List of files changed and brief explanation of each change]

<documentation>
Include any necessary documentation updates or links to updated documentation.
</documentation>
## Documentation
[Any necessary documentation updates or links to updated documentation]

<labels_and_reviewers>
Suggest appropriate labels for the pull request and recommend reviewers if applicable.
</labels_and_reviewers>
## Labels and Reviewers
- Labels: [Suggested labels]
- Reviewers: [Recommended reviewers]

<additional_notes>
Include any additional information, such as related issues, dependencies, or deployment instructions.
</additional_notes>
</pull_request>
## Additional Notes
[Any additional information, such as related issues, dependencies, or deployment instructions]
```

Remember to:

Expand All @@ -67,5 +61,6 @@ Remember to:
3. Follow the project's specific guidelines and conventions.
4. Consider the perspective of both reviewers and future maintainers.
5. Highlight any areas that may need special attention or discussion.
6. Use appropriate markdown formatting, such as headers, lists, code blocks, and emphasis where needed.

Your goal is to create a pull request that is easy to review, understand, and merge, while maintaining high code quality and project standards.
Your goal is to create a pull request that is easy to review, understand, and merge, while maintaining high code quality and project standards. The formatted markdown should be ready for direct copy/pasting into a GitHub PR description.
47 changes: 21 additions & 26 deletions prompts/github_pull_request_generator/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

### ✏️ One-line Description

**Generates comprehensive and well-structured GitHub pull requests adhering to best practices**
**Generates comprehensive and well-structured GitHub pull requests based on change details and project context**

### 📄 Description

This prompt creates detailed GitHub pull requests based on provided change details and project context. It generates a clear title, comprehensive description, list of changes, documentation updates, and additional notes, ensuring high-quality contributions that are easy to review and merge.
This prompt creates perfect GitHub pull requests by analyzing change details and project context. It generates a formatted markdown output that includes a clear title, detailed description, list of changes, documentation updates, and additional notes, adhering to best practices and project standards.

### 🔧 Variables

Expand Down Expand Up @@ -69,38 +69,32 @@ To generate a perfect pull request, follow these steps:
7. Include any relevant links or references.
8. Ensure the pull request adheres to the project's coding standards and best practices.

Format your response as follows:
Format your response using GitHub-flavored markdown, ready for copy/pasting into a GitHub PR. Use the following structure:

<pull_request>
<title>
Provide a clear and concise title for the pull request.
</title>
```markdown
# [Title]

<description>
Write a comprehensive description of the changes, including:
## Description
[Comprehensive description of the changes, including:]
- Purpose of the changes
- Impact on the project
- Any important implementation details
- Important implementation details
- Testing performed
- Any known limitations or future work
</description>
- Known limitations or future work

<changes>
List the files changed and provide a brief explanation of each change.
</changes>
## Changes
[List of files changed and brief explanation of each change]

<documentation>
Include any necessary documentation updates or links to updated documentation.
</documentation>
## Documentation
[Any necessary documentation updates or links to updated documentation]

<labels_and_reviewers>
Suggest appropriate labels for the pull request and recommend reviewers if applicable.
</labels_and_reviewers>
## Labels and Reviewers
- Labels: [Suggested labels]
- Reviewers: [Recommended reviewers]

<additional_notes>
Include any additional information, such as related issues, dependencies, or deployment instructions.
</additional_notes>
</pull_request>
## Additional Notes
[Any additional information, such as related issues, dependencies, or deployment instructions]
```

Remember to:

Expand All @@ -109,7 +103,8 @@ Remember to:
3. Follow the project's specific guidelines and conventions.
4. Consider the perspective of both reviewers and future maintainers.
5. Highlight any areas that may need special attention or discussion.
6. Use appropriate markdown formatting, such as headers, lists, code blocks, and emphasis where needed.

Your goal is to create a pull request that is easy to review, understand, and merge, while maintaining high code quality and project standards.
Your goal is to create a pull request that is easy to review, understand, and merge, while maintaining high code quality and project standards. The formatted markdown should be ready for direct copy/pasting into a GitHub PR description.

```

0 comments on commit f101fa7

Please sign in to comment.