Use a lookup to determine if the state should be changed by the cron script

This is an alternate proposal for #408 which changes the CLI script to only change the issue status if the GitHub issue state has changed.  So, if an issue is already open and when the script runs the issue is now closed, then the status will be modified.  But, if an issue is open and that state hasn't changed, then we won't reset the issue status back to the default open state.

//cc @elkuku @zero-24