プロジェクト

全般

プロフィール

Vote #64833

完了

Url to fetch changesets for a repository

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
3
version_id:
6
issue_org_id:
2925
author_id:
5
assigned_to_id:
5
comments:
8
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I'd like to add a url hook to Redmine's repositories so a repository can have it's fetch changesets called from a basic HTTP GET/POST. This could be linked up with post commit hooks or a web hook service (e.g. GitHub) to allow a repository to stay up to date without using auto fetch commits or a scheduled rake task.


journals

This might need part of the REST API implemented first, specifically authentication.
--------------------------------------------------------------------------------
+1
Re REST API: I think the controllers need to be refactored first...
--------------------------------------------------------------------------------
I think we could easily add this entry point to SysController that already provides some repository related methods (used by reposman).
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> I think we could easily add this entry point to SysController that already provides some repository related methods (used by reposman).

I think once REST is complete, we should remove @SysController@ completely. Nice side effect is that reposman would be a good example of using the REST API.

* @SysController#projects@ would become @ProjectsController#index, :format => :xml@ (list of projects in xml)
* @SysController#create_project_repository@ would become @RepositoriesController#create, :format => :xml@ (create a new repository from xml)

I don't think we should just remove @SysController@ though, it should be depreciated in order to give developers enough time to port to the REST API. I'm saying this because it's taken me over two weeks to recover from the Rails 2.2.x i18n and Enumeration API changes and I don't want to cause that pain on any other developer without giving notice.
--------------------------------------------------------------------------------
Eric Davis wrote:
> * @SysController#create_project_repository@ would become @RepositoriesController#create, :format => :xml@ (create a new repository from xml)

But this would require a Redmine admin account to run reposman.
I don't think it's the best solution.
--------------------------------------------------------------------------------
I believe that if you @`curl http://www.your-redmine.com/projects/your-project/repository | /dev/null`@ in your post-commit hook it will cause Redmine to "look" at the repository, specifically fetch the changesets. If you have a private project this would become crazy-complicated, however, this seems to work for me (although I use a local Git repo on the server hard disk).

I'm not suggesting this isn't a good feature, I'm just saying that until the feature is done that a good band-aid solution exists (or exists with my setup - YMMV).
--------------------------------------------------------------------------------
Added in r3107.
--------------------------------------------------------------------------------
There is also "a plugin":http://www.redmine.org/plugins/redmine_scm_hookhelpers to fetch commits for a specific repository only.
--------------------------------------------------------------------------------


related_issues

relates,Closed,296,REST API
relates,Closed,3389,Increase speed of Repository.fetch_changesets

Admin Redmine さんが約4年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン0.9.0_6 にセット

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

いいね!0
いいね!0