A full issue reference still requires a git working directory #19
skudr opened 3 weeks ago

Steps to reproduce (tod 4.3.4).

cd /tmp
tod issue get "myorg/myproject#123"

Actual. failed to infer OneDev project from working directory '.': working directory is not inside a git repository. Working directory is expected to be inside a git repository, with one of the remote pointing to OneDev project

Expected. A reference that already names the project (<project path>#<number>) resolves without a working directory. The working directory is needed only to resolve a bare #123. The same applies to issue get-valid-fields and other commands that take --project.

Why. Agents and scripts often run outside a clone of the project they report to. Today they must pass --working-dir pointing at some local clone whose remote matches, although the reference already says which project is meant.

1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
4.3.4
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
TOD-19
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover