#1356  Squash Source Branch Commits: Fixing commit should point to squashed commit
Released
jbauer opened 1 year ago

When using pull requests with merge strategy Squash Source Branch Commits all commits are squashed and the new commit is build from the PR title + description.

If the pull request source branch had multiple commits and one of them had a message fixes issue #123 then this source branch commit is linked with the issue as fixing commit once the PR is merged. IMHO it should only link the new squashed commit instead because the commit on the pull request source branch will not exist in the repo after PR has been merged. Of course the squashed commit should only be linked to the issue if the PR title or description contains fixes issue #123.

This would also be consistent with issue transitions as they react on the title + description of the squashed commit and not on the PR's source branch commits.

OneDev changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
OneDev commented 1 year ago

State changed as code fixing the issue is committed (32abc052)

OneDev changed state to 'Released' 1 year ago
Previous Value Current Value
Closed
Released
OneDev commented 1 year ago

State changed as build #3619 is successful

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
8.1.3
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1356
Please wait...
Page is in error, reload to recover