プロジェクト

全般

プロフィール

Vote #63026

未完了

Commit validation checking on comments

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2008/04/17
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
1036
author_id:
709
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

My company is going to use Redmine for a new project. We need to enforce that comments on commits reference at least one valid issue. By valid I mean that it is an existing issue number assigned to the committer in a state that makes sense. This doesn't seem to exist.

It seems like it would be pretty easy to add a method to a controller (not familiar enough to know which one yet) that can be passed a user and a comment (and maybe a project too since a repo could be tracked by multiple projects). This method would parse the comment and query the issues in order to let you know if the comment on the commit was valid. Maybe it would return an array of the errors, and an empty array means everything is fine.

This controller method would be available for a commit hook on the repo (svn or git for example) to call with the parameters, and block the commit if there are problems.

Assuming matching user names in the repo and Redmine makes it easier. A second step might be to have a configuration file to map these, or maybe even a gui on the project repository tab. The convention of matching names seems fine for a first draft of this.

If nothing like this exists, I have time to put it in place. Any thoughts are appreciated. Thanks


journals

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0