Code Monkey home page Code Monkey logo

Comments (9)

koppen avatar koppen commented on June 30, 2024

Quite frankly, I don't remember. If the current incarnation of GitHubs Redmine integration works with Redmines sys/fetch_changesets, this project can be deprecated.

It didn't use to work and Redmine Github Hook has worked perfectly for my use, but I'd love to hear your experiences using the "proper" integration.

from redmine_github_hook.

kostajh avatar kostajh commented on June 30, 2024

@koppen thanks for the reply. Here's the GitHub Redmine hook for reference.

I wouldn't rush to deprecate this, as so far I'm unable to get GitHub's hook working, see github/github-services/issues/1051 - but in the long run it might make sense to consolidate efforts?

My experience so far:

feature koppen/redmine_github_hook github-services/redmine
Fetch commits from GitHub on push yes not working
Update issues in Redmine by processing references in commit messages not working not working

from redmine_github_hook.

koppen avatar koppen commented on June 30, 2024

Thanks for investigating. I've been looking into this a bit as well.

As far as I can tell, the standard Redmine sys/fetch_changesets way of doing things assumes the local repository has already been updated with changes from the remote repository. It investigates the local repository, importing the revisions there into the database.

Using GitHubs Redmine integration means this import into the database happens in the background, otherwise Redmine will perform the import whenever someone visits the repository page. Updating issues from commit messages probably also happens as part of this import.

What Redmine Github Hook does is actually fetch changes from the remote repository into the local one. It then triggers the import, which should trigger issues updating.

Does this sound about right?

from redmine_github_hook.

kostajh avatar kostajh commented on June 30, 2024

Thanks for looking into this @koppen. That does sound about right. I guess the problem I am having is that despite using both integrations, I'm not seeing git commits show up on the issue page, even when refs #{some issue} or fixes #{some issue} is used. And using the fix/fixes keyword doesn't actually close an issue. Is that the behavior you expect? I'm on Redmine 3.0.2 if that makes a difference.

from redmine_github_hook.

koppen avatar koppen commented on June 30, 2024

As far as I can tell, that should be handled by Redmine. Redmine Github Hook is just a dumb git pull && import changesets.

For what it's worth, it works fine for us, albeit on Redmine 2.x. I don't remember if I had to do anything to make it work, but there are some configuration settings under Administration > Settings > Repositories that you might want to check looks correct.

from redmine_github_hook.

genachka avatar genachka commented on June 30, 2024

@koppen
Works for us in Redmine 2.5.x too (and thanks so much for making this!!). We're looking to move to Redmine 3.1.x shortly and wondering if you intend on testing and supporting that any time soon?

from redmine_github_hook.

koppen avatar koppen commented on June 30, 2024

We're looking to move to Redmine 3.1.x shortly and wondering if you intend on testing and supporting that any time soon?

@genachka, I have yet to move to 3.x myself, but I see no reason Github Hook 2.2 shouldn't work with Redmine 3.x. A quick test shows that it works just fine, at least on the surface.

The plan is definitely to support the Redmine 3.x series as well, feel free to open any issues if you encounter them.

from redmine_github_hook.

koppen avatar koppen commented on June 30, 2024

@kostajh Do you need more from this issue, or can we close it?

from redmine_github_hook.

kostajh avatar kostajh commented on June 30, 2024

yes, thanks @koppen!

from redmine_github_hook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.