Skip to content

Commit 976b83f

Browse files
committed
check only if 201 created is returned
1 parent 0e14056 commit 976b83f

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('HTTP/1.1 201 Created') || headers.contains('HTTP/2 201 Created'))) {
182+
if (! headers.contains('201 Created')) {
183183
error("Creating GitHub comment failed: ${headers}\n")
184184
}
185185
// ok, success

0 commit comments

Comments
 (0)