mirror of
https://github.com/lupyuen/lupyuen.github.io.git
synced 2025-01-13 06:48:34 +08:00
Commit from GitHub Actions
This commit is contained in:
parent
bd4d525f8f
commit
89955d3851
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue