Better PR title and description generation (OD-2521)
jbauer opened 5 months ago

If the source and target branch for a PR only differ in a single commit then use the commit message and commit description to pre-fill the PR title and PR description.

If the PR has multiple commits use the current technique of computing a PR title based on the branch name. This technique could be slightly improved as well, e.g.

  • Branch: <conventional-commit-type>/my-branch-name -> PR title: <conventional-commit-type>: my branch name
  • Branch: <conventional-commit-type>-my-branch-name -> PR title: <conventional-commit-type>: my branch name
  • Branch: <conventional-commit-type>_my_branch-name -> PR title: <conventional-commit-type>: my branch name
  • Branch: wip-my-branch-name -> PR title: [WIP] my branch name
  • Branch: wip-<conventional-commit-type>/my-branch-name -> PR title: [WIP] <conventional-commit-type>: my branch name

Basically try to detect WIP and potential conventional commit types in the branch name.

But a priority would be better handling of PRs with just a single commit because I always have to copy the commit information into the PR information when using the squash merge strategy.

  • OneDev commented 4 months ago

    State changed as code fixing the issue is committed (b19eedb4)

  • OneDev changed state to 'Closed' 4 months ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 4 months ago

    State changed as build OD-6587 is successful

  • OneDev changed state to 'Released' 4 months ago
    Previous Value Current Value
    Closed
    Released
  • jbauer commented 4 months ago

    @robin Thanks, looks great! Is there any chance to consider commit types configured in branch protection rules? For example I use feature instead of feat, format instead of style and I have an additional cleanup type when removing deprecated/unused code.

  • Robin Shen commented 4 months ago

    This makes sense. I filed an improvement request: OD-2540

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2521
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover