[
https://issues.apache.org/jira/browse/CAMEL-17473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Pilo updated CAMEL-17473:
--------------------------------
Description:
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 returns 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]
was:
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]
> 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
> Priority: Major
> 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 returns 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)