The script should expect to be run at a regular interval (e.g. 10 mins or 1 hour). New order of operations:
- Look for an in-flight PR with the label `Chromium Export`
- Verify that PR matches an existing Chromium commit (to guard against that label being misapplied)
- If there is more than one PR with that label, error out
- If a PR exists with that label:
- If the CI is green, merge it
- If the CI is not green, stop the script
- If there were no in-flight PRs or we just merged one:
- Look for the next exportable commit in Chromium
- If exists, create PR
Comment 1 by jeffcarp@chromium.org
, Nov 18 2016