GithubListener
GithubListener copied to clipboard
Filter commits from pull requests
It would be nice to filter out commits that comes with pull request and leave only notification about merge pull request.
Which field of commit array we can use for this filtering? https://developer.github.com/v3/repos/commits/
Guess we can't.. But merge commit is always last in the group, so we can try to do this: if commit.message contains "Merge pull": fetch parents from commit.url filter new commits by parents