refactor gerrit status change check into seperate function
refactor gerrit status change check into seperate function

Change-Id: Ia49c587909e973d5862ab4badb45e78f9870eab1

wikimedia/labs-tools-pywikibugs,wikimedia/labs-tools-pywikibugs