From bb0294fe70058bb22ba90d4b2bac652e003b6359 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Wed, 6 Nov 2024 11:34:09 +0000 Subject: [PATCH] Create pull-requests.php (#248) --- Src/pull-requests.php | 179 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 Src/pull-requests.php diff --git a/Src/pull-requests.php b/Src/pull-requests.php new file mode 100644 index 0000000..06d1cff --- /dev/null +++ b/Src/pull-requests.php @@ -0,0 +1,179 @@ + $cookie_lifetime, + 'path' => '/', + 'domain' => 'bot.straccini.com', + 'secure' => true, + 'httponly' => true, + 'samesite' => 'Strict' +]); +session_start(); + +if (!isset($_SESSION['user']) || !isset($_SESSION['token'])) { + header('Location: login.php'); + exit(); +} + +$user = $_SESSION['user']; + +$data = array("openPullRequests" => []); + +if (isset($_SESSION["data"])) { + $data = $_SESSION["data"]; +} + +$title = "Pull Requests"; + +$name = $user["login"]; +if (isset($user["first_name"])) { + $name = $user["first_name"]; +} else if (isset($user["name"])) { + $name = $user["name"]; +} +?> + + + + + + + + GStraccini-bot | <?php echo $title; ?> + + + + + + + + +
+ +
+
+
+

Assigned Pull Requests

+
    + +
  • + Loading data... +
  • + + +
  • + ' target='_blank'> +
    + + ' target='_blank'> + - + (Created at: ) + + + Success + + + + Failure + + + + Pending + + + + Error + + + + Empty + + +
  • + +
+
+
+
+ + + + + +