Skip to content

Commit 27b9641

Browse files
committed
Revert "check only if 201 created is returned"
This reverts commit 976b83f.
1 parent 976b83f commit 27b9641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GithubPRPlanPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class GithubPRPlanPlugin implements TerraformPlanCommandPlugin, TerraformEnviron
179179
def output = sh(script: cmd, returnStdout: true).trim()
180180

181181
def headers = readFile('comment.headers').trim()
182-
if (! headers.contains('201 Created')) {
182+
if (! (headers.contains('HTTP/1.1 201 Created') || headers.contains('HTTP/2 201 Created'))) {
183183
error("Creating GitHub comment failed: ${headers}\n")
184184
}
185185
// ok, success

0 commit comments

Comments
 (0)