Andrea Pilo created CAMEL-17473:
-----------------------------------

             Summary: camel-github: startingSha=last doesn't work properly
                 Key: CAMEL-17473
                 URL: https://issues.apache.org/jira/browse/CAMEL-17473
             Project: Camel
          Issue Type: Bug
          Components: camel-github
    Affects Versions: 3.14.0
            Reporter: Andrea Pilo
         Attachments: mypatch.patch

When *startingSha* is set to "last" the component does not start from the last 
commit.

The problem is related to the fact that the egit eclipse library reports the 
list of commits in order (from latest to oldest) but in the code the opposite 
is assumed: 
[here|https://github.com/apache/camel/blob/0e4f4923440c3ef34306595ab70447879bdab4e5/components/camel-github/src/main/java/org/apache/camel/component/github/consumer/CommitConsumer.java#L77]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to