We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 947f918 commit 422123dCopy full SHA for 422123d
1 file changed
lib/pull_preview/github_sync.rb
@@ -196,7 +196,7 @@ def guess_action_from_event
196
return :pr_down
197
end
198
199
- if pr_labeled? && pr_has_label?
+ if (pr_opened? || pr_reopened? || pr_labeled?) && pr_has_label?
200
return :pr_up
201
202
@@ -370,6 +370,16 @@ def pr_synchronize?
370
github_context["action"] == "synchronize"
371
372
373
+ def pr_opened?
374
+ pull_request? &&
375
+ github_context["action"] == "opened"
376
+ end
377
+
378
+ def pr_reopened?
379
380
+ github_context["action"] == "reopened"
381
382
383
def pr_closed?
384
pull_request? &&
385
github_context["action"] == "closed"
0 commit comments