#1184  Attach commit to issue while referencing
Released
Stanislav N. opened 1 year 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 1 year 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 1 year 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 1 year ago
Name Previous Value Current Value
Type
Bug
Discussion
Robin Shen commented 1 year 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 1 year ago
Name Previous Value Current Value
Type
Discussion
Improvement
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

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

State changed as build #3440 is successful

Referenced from commit 1 year ago
issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1184
Please wait...
Page is in error, reload to recover