We need to subscribe to Pull Request events, because Utterson does not check commits in isolation, but the difference between a head commit and a base commit. Unfortunately, the Pull Request webhook also triggers for many actions that we don't care about, such as adding a label to a PR.
With this change, Utterson will silently ignore any event that is not a PR being created or synchronized (new commits). This will hopefully fix the problem of checking the same commit two or three times in a row.
We need to subscribe to Pull Request events, because Utterson does not check commits in isolation, but the difference between a head commit and a base commit. Unfortunately, the Pull Request webhook also triggers for many actions that we don't care about, such as adding a label to a PR.
With this change, Utterson will silently ignore any event that is not a PR being created or synchronized (new commits). This will hopefully fix the problem of checking the same commit two or three times in a row.
/cc: @ashmaroli