Skip to content

Github commit messages and commit descriptions are not descriptive enough. Expla#25

Closed
gokhanpicgeta wants to merge 1 commit into
masterfrom
factory/github-commit-messages-and-commit-descriptions-are-39cc1855
Closed

Github commit messages and commit descriptions are not descriptive enough. Expla#25
gokhanpicgeta wants to merge 1 commit into
masterfrom
factory/github-commit-messages-and-commit-descriptions-are-39cc1855

Conversation

@gokhanpicgeta
Copy link
Copy Markdown
Collaborator

Automated implementation by Silverpond Factory (run 39cc1855).

# Task Completion Summary

## Problem
GitHub pull requests created by the factory were not descriptive enough. They only contained a brief message about the factory run without explaining what changes were actually made in the commits.

## Solution
Enhanced the PR description generation in `factory/poller.py` to include a detailed "Changes" section that displays the commit log. This allows reviewers to immediately see what commits were made as part of the automated implementation.

## Files Changed
- `factory/poller.py` (lines 129-146): Modified `_push_and_pr()` function to:
  1. Fetch the commit log between the base branch and the head branch using `git log`
  2. Format the commit messages in a markdown code block
  3. Include them in the PR body under a "Changes" section

## How It Works
When a PR is created:
1. The factory retrieves all commits unique to the current branch with `git log {base_branch}..HEAD --oneline`
2. These commits are formatted and added to the PR description
3. Reviewers can now see exactly what changes were made in the PR without having to check the branch directly

## Example Output
The PR description will now include:
```
## Changes
```
commit-hash commit message line 1
commit-hash commit message line 2
...
```

This provides transparency into what the factory implemented and helps reviewers understand the scope of changes at a glance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant