Commit from GitHub Actions

This commit is contained in:
Lup Yuen Lee 2025-01-12 08:14:06 +00:00
parent bd4d525f8f
commit 89955d3851

View file

@ -333,6 +333,7 @@ This PR demonstrates a good understanding of NuttX requirements. Adding specifi
<h1 id="call-the-github-api"><a class="doc-anchor" href="#call-the-github-api">§</a>5 Call the GitHub API</h1>
<p><em>How do we fetch the Pull Request? And post the Review Comment?</em></p>
<p>We call GitHub API with <a href="https://github.com/XAMPPRocky/octocrab"><strong>Octocrab Crate</strong></a>. (Pic above)</p>
<p><a href="https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28">(More about <strong>GitHub API for Pull Requests</strong>)</a></p>
<p>Here we fetch the <strong>20 Newest Pull Requests</strong> that are Open: <a href="https://github.com/lupyuen/nuttx-pr-bot/blob/main/src/main.rs#L97-L115">main.rs</a></p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="comment">// Fetch the 20 Newest Pull Requests that are Open