Attach commit to issue while referencing #1184
Stanislav N. opened 3 years ago

This could be a continuation of issue #795.

I've tried to specify issue in commits in different forms, e.g.:

  • Related to issue #ID
  • Ref: issue #ID
  • issue #ID (including different casing)

Yet none of them actually connects commit to issue, there is no message in issue or separate tab. When referencing issue from commits I expect that somehow this commit appears in issue (separate tab like "Fixing commits" or "Fixing build", or as message like "Commit [hash here] referenced this issue").

  • Robin Shen commented 3 years ago

    This is not a bug. Fixing commits tab only references commits stated to fix the issue. A simple issue reference will not affect that.

    I think that adding a separate tab to show all commits referencing the issue might not be of too much value, but make the issue tab a bit confusing (you have fixing commits, related commits, etc).

  • Stanislav N. commented 3 years ago

    Then maybe a github/gitlab-like approach? Adding a comment from OneDev user like field change, but with text like:

    Commit abcdef mentioned that issue:
    
    Commit first line ellipsized to 50 chars...
    

    Sometimes one commit might be related to more than one issue and copy-paste commit hash to every issue is time-consuming.

  • Robin Shen changed fields 3 years ago
    Name Previous Value Current Value
    Type
    Bug
    Discussion
  • Robin Shen commented 3 years ago

    Then maybe a github/gitlab-like approach? Adding a comment from OneDev user like field change, but with text like:

    This seems like a good idea.

  • Robin Shen changed fields 3 years ago
    Name Previous Value Current Value
    Type
    Discussion
    Improvement
  • OneDev changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 3 years ago

    State changed as code fixing the issue is committed

  • OneDev changed state to 'Released' 3 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 3 years ago

    State changed as build #3440 is successful

  • strange commented 10 months ago

    This doesn't seem to work with me. Here are my tests with an issue:

    2025-09-19_10-02.png

    The issue has no activity logging these commits:

    2025-09-19_10-06.png

  • Robin Shen commented 10 months ago

    This feature has been removed as it is quite complex to calculate and maintain this info, while seldomly used. Most of the time the commit fixes/closes issue, which is already handled.

  • strange commented 10 months ago

    Understood. yeah the "closes issue" feature works. Thanks for the update. Brilliant software.

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