I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Feature #1950

Github support?

Added by Andriy Lesyuk about 12 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Minor
Assignee:
Target version:
Start date:
26 Jan 2012
Due date:
10 May 2014
% Done:

100%

External issue:

Description

Of course I know that Github is not a SCM! But it is so widely used that many users of Redmine-powered sites likely to have their projects on Github...

Saying if the plugin requires SCM to be chosen on project creation and a user hosts its project on Github. Administrators of this Redmine-powered site may want to allow Github... So I’m thinking about adding a “virtual” SCM type “Github” which will just add external Github repository to the project.

Associated revisions

Revision 130 (diff)
Added by Andriy Lesyuk almost 10 years ago

Github SCM, cloning and fetching updates (#1950)

Revision 131 (diff)
Added by Andriy Lesyuk almost 10 years ago

Added credentials for Github (#1950)

Revision 132 (diff)
Added by Andriy Lesyuk almost 10 years ago

GithubCreator support (#1950), SCMCreator interface fixes, hooks removal (#1886)

Revision 133 (diff)
Added by Andriy Lesyuk almost 10 years ago

GithubCreator improvements and fixes (#1950)

Revision 134 (diff)
Added by Andriy Lesyuk almost 10 years ago

Implemented hook registration (#1950)

Revision 135 (diff)
Added by Andriy Lesyuk almost 10 years ago

Hook registration and auto-creation fixes (#1950)

History

#1 Updated by Declan Lynch about 12 years ago

This is a feature that I would love to see also.

I would imagine that 'GitHub’ would become a choice on the SCM type dropdown and if selected extra fields for the GitHub repository/user/token would showup. When filled in the scm-creator would then do a 'git clone --mirror [repositoryurl] [localpath/projectid]' which will pull down the repository from GitHub and setup RedMine to point to the local mirror. You’d have to look at where to store the github user/token. if it is a public github repository then the user/token is not required.

Using the GitHub_Hook redmine plugin the GitHub user would then be able to setup a post url in GitHub so that when they push a changeset to GitHub it would call that url to tell RedMine to fetch the latest changes into the mirrored repository.

#2 Updated by Andriy Lesyuk about 12 years ago

Actually I was thinking about using Github URL directly... Without mirroring it localy.

#3 Updated by Lloyd Philbrook about 12 years ago

That is an interesting approach. I understand with the new github API you can pull commit messages and even blobs, but how would you handle showing diffs or viewing source code in that scenario?

#4 Updated by Andriy Lesyuk almost 12 years ago

I think you understood me wrong...

A virtual Github repo type should be just Git repo. But it should be easier to add Git repo from Github using this virtual SCM.

Right now when I try adding Github URL I get:

fatal: Not a git repository: 'https://github.com/edavis10/redmine.git'

#6 Updated by Andriy Lesyuk almost 12 years ago

Am I right - Git supports only local repositories?..

#7 Updated by Lloyd Philbrook almost 12 years ago

Yes, git requires a local repository. I assumed you were trying to circumvent the built in git support with your own methods to pull directly from github. If not, then my suggestion would be to utilize one of the 3rd party ror implementations to allow for repo creation/deletion and then utilizing an update hook (or use a preexisting plugin like github hook) to tell redmine to update the local repo.

#8 Updated by Andriy Lesyuk over 10 years ago

The Github client or Octokit can be used to implement this...

#10 Updated by Andriy Lesyuk almost 10 years ago

  • Status changed from Incomplete to Open
  • % Done changed from 0 to 20

#11 Updated by Andriy Lesyuk almost 10 years ago

  • Status changed from Open to In Progress

#12 Updated by Andriy Lesyuk almost 10 years ago

  • % Done changed from 20 to 30

#13 Updated by Andriy Lesyuk almost 10 years ago

  • % Done changed from 30 to 50

#14 Updated by Andriy Lesyuk almost 10 years ago

  • Target version set to 0.5.0b

#15 Updated by Andriy Lesyuk almost 10 years ago

  • % Done changed from 50 to 90

#16 Updated by Andriy Lesyuk almost 10 years ago

  • Due date set to 10 May 2014
  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

Looking for beta-testers...

Also available in: Atom PDF

Terms of use | Privacy policy