From 8e5348d607a17c906adf30417528d4222c790ce4 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Fri, 16 Oct 2015 11:10:49 -0400 Subject: [PATCH] lib/github: introduce `Issue::is_pull_request` method Signed-off-by: Alexandre Terrasa --- lib/github/api.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/github/api.nit b/lib/github/api.nit index 6b1935e..7e7400c 100644 --- a/lib/github/api.nit +++ b/lib/github/api.nit @@ -909,6 +909,9 @@ class Issue json["closed_by"] = user.json end end + + # Is this issue linked to a pull request? + fun is_pull_request: Bool do return json.has_key("pull_request") end # A Github pull request. -- 1.7.9.5