1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
If an an autodeployment transitions to the 'ready' state,
we don't need to require context checks when creating the GitHub Deployment.

An AutoDeployment basically just tracks the state of a commit,
then does a `/deploy` once it transitions to the "ready" state.

Basically, that logic is encapsulated here:

 https://github.com/remind101/slashdeploy/blob/master/lib/slashdeploy/service.rb#L60

So, it's at this point that we'd want to ignore context checks:

 https://github.com/remind101/slashdeploy/blob/master/lib/slashdeploy/service.rb#L182-L185

I don't think the interface that it calls down to allows for explicit contexts to be passed,
so that'll probably need to be refactored