From b7df4f615e404334665859d93334443bdfb3fa94 Mon Sep 17 00:00:00 2001
From: Ciro Santilli <cirosantilli@proton.me>
Date: Wed, 3 Aug 2022 01:01:09 +0000
Subject: [PATCH] try to get commits

---
 action.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/action.js b/action.js
index dfdcc58..d8b547e 100755
--- a/action.js
+++ b/action.js
@@ -189,6 +189,12 @@ try {
       labels: Array.from([...labels, ...newLabels])
     })
   }
+  const commits = await octokit.rest.repos.listCommits({
+    owner: 'duty-machine',
+    repo: 'news',
+    per_page: 1,
+  })
+  console.log('commits: ' + require('util').inspect(commits))
 } catch (error) {
   core.setFailed(error.message);
 }
-- 
GitLab