prgen-cli 0.2.1__tar.gz → 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {prgen_cli-0.2.1/src/prgen_cli.egg-info → prgen_cli-0.2.4}/PKG-INFO +1 -1
  2. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/pyproject.toml +1 -1
  3. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/prompts/pr_description.txt +13 -20
  4. {prgen_cli-0.2.1 → prgen_cli-0.2.4/src/prgen_cli.egg-info}/PKG-INFO +1 -1
  5. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/LICENSE +0 -0
  6. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/README.md +0 -0
  7. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/setup.cfg +0 -0
  8. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/__main__.py +0 -0
  9. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/about.py +0 -0
  10. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/api_errors.py +0 -0
  11. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/cli.py +0 -0
  12. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/config.py +0 -0
  13. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/defaults.py +0 -0
  14. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/git_utils.py +0 -0
  15. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/prompting.py +0 -0
  16. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/providers/gemini_provider.py +0 -0
  17. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/providers/openai_provider.py +0 -0
  18. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen/ui.py +0 -0
  19. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen_cli.egg-info/SOURCES.txt +0 -0
  20. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen_cli.egg-info/dependency_links.txt +0 -0
  21. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen_cli.egg-info/entry_points.txt +0 -0
  22. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen_cli.egg-info/requires.txt +0 -0
  23. {prgen_cli-0.2.1 → prgen_cli-0.2.4}/src/prgen_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prgen-cli
3
- Version: 0.2.1
3
+ Version: 0.2.4
4
4
  Summary: Generate PR titles and descriptions from git diff
5
5
  Author: Jean Paul Fernandez
6
6
  License-Expression: GPL-3.0-only
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "prgen-cli"
3
- version = "0.2.1"
3
+ version = "0.2.4"
4
4
  description = "Generate PR titles and descriptions from git diff"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -1,13 +1,4 @@
1
- You are an advanced AI programming assistant and are tasked with summarizing code changes into a concise but meaningful pull request title and description.
2
-
3
- You will be provided with:
4
- - a code diff
5
- - a list of commits
6
- - optional additional context
7
-
8
- Your goal is to analyze the changes and create a clear, informative title and description that accurately represents the modifications made to the code.
9
-
10
- First, examine the following code changes provided in Git diff format:
1
+ You are an advanced AI programming assistant and are tasked with summarizing code changes into a concise but meaningful pull request title and description. You will be provided with a code diff and a list of commits. Your goal is to analyze the changes and create a clear, informative title and description that accurately represents the modifications made to the code First, examine the following code changes provided in Git diff format:
11
2
 
12
3
  <~~diff~~>
13
4
  {{DIFF}}
@@ -33,28 +24,28 @@ To create an effective pull request title and description, follow these steps:
33
24
  - Any significant logic changes or algorithmic improvements
34
25
 
35
26
  2. Ensure the following when composing the pull request title and description:
36
- - Emphasize the "why" of the change, its benefits, or the problem it addresses
27
+ - Emphasize the 'why' of the change, its benefits, or the problem it addresses
37
28
  - Use an informal yet professional tone
38
- - Use a future-oriented manner, third-person singular present tense
29
+ - Use a future-oriented manner, third-person singular present tense (e.g., 'Fixes', 'Updates', 'Improves', 'Adds', 'Removes')
39
30
  - Be clear and concise
40
31
  - Synthesize only meaningful information from the diff and context
41
32
  - Avoid outputting code, specific code identifiers, names, or file names unless crucial for understanding
42
- - Avoid repeating information, broad generalities, and unnecessary phrases
33
+ - Avoid repeating information, broad generalities, and unnecessary phrases like "this", "this commit", or "this change"
43
34
 
44
- 3. Summarize the main purpose of the changes in a single, concise sentence:
35
+ 3. Summarize the main purpose of the changes in a single, concise sentence, which will be the title of your pull request
45
36
  - Start with a third-person singular present tense verb
46
37
  - Limit to 50 characters if possible
47
38
 
48
- 4. Provide a detailed explanation of the changes:
49
- - Add line breaks for readability
50
- - Focus on the "why" rather than only the "what"
51
- - Structure the body with markdown bullets and headings
39
+ 4. Provide a detailed explanation of the changes, which will be the body of your pull request
40
+ - Add line breaks for readability and to separate independent ideas
41
+ - Focus on the "why" rather than the "what" of the changes
42
+ - Structure the body with markdown bullets and headings for clarity
52
43
 
53
- 5. If relevant, include any issue reference at the end
44
+ 5. If the changes are related to a specific issue or ticket, include the reference (e.g., "Fixes #123" or "Relates to JIRA-456") at the end of the pull request message
54
45
 
55
46
  Write your title inside <summary> tags and your description inside <body> tags and include no other text.
56
47
 
57
- Output structure:
48
+ Example output structure:
58
49
 
59
50
  <summary>
60
51
  [pull-request-title]
@@ -62,3 +53,5 @@ Output structure:
62
53
  <body>
63
54
  [pull-request-body]
64
55
  </body>
56
+
57
+ Based on the provided code diff, commit list, and any additional context, create a concise but meaningful pull request title and body following the instructions above
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prgen-cli
3
- Version: 0.2.1
3
+ Version: 0.2.4
4
4
  Summary: Generate PR titles and descriptions from git diff
5
5
  Author: Jean Paul Fernandez
6
6
  License-Expression: GPL-3.0-only
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes