# GitHub Auto Pull

**URL:** https://discourse.nodered.org/t/github-auto-pull/82907
**Category:** Feature Requests
**Created:** [16 November 2023 08:22 UTC](https://discourse.nodered.org/t/github-auto-pull/82907 "2023-11-16T08:22:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rFond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rfond/32/84771_2.png) [@rFond](https://discourse.nodered.org/u/rFond)
#### Post date: [16 November 2023 08:22 UTC](https://discourse.nodered.org/t/github-auto-pull/82907/1 "2023-11-16T08:22:23Z")

</div>

Hello,  
I would like to know if it's possible to add an auto-pull feature from a GitHub repository? (For example, daily or on-demand via the API...)  
Currently, it's only possible to perform the pull manually.  
Thank you.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [16 November 2023 09:18 UTC](https://discourse.nodered.org/t/github-auto-pull/82907/2 "2023-11-16T09:18:18Z")

</div>

That is not a node-red question, but (assuming you are on Linux) you could use a cron task to do that. I don't know about mac or Windows but no doubt they have similar scheduling applications.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [16 November 2023 12:46 UTC](https://discourse.nodered.org/t/github-auto-pull/82907/3 "2023-11-16T12:46:39Z")

</div>

@rFond I assume this is in the context of the Node-RED projects feature and having Node-RED pull the latest changes itself. This isn't something available by default in Node-RED. There is an underlying API that could be called, although it isn't a publicly documented one. Your best bet today would be to script it on the command line with a `git pull` in the project's directory and then restarting Node-RED to pickup any changes

---

<div class="post-metadata">

### Author: ![rFond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rfond/32/84771_2.png) [@rFond](https://discourse.nodered.org/u/rFond)
#### Post date: [16 November 2023 13:07 UTC](https://discourse.nodered.org/t/github-auto-pull/82907/4 "2023-11-16T13:07:45Z")

</div>

@knolleary Exactly! Currently, following @Colin advice, I execute 'git pull + reboot' if there are changes, and it works very well. However, it feels a bit like a makeshift solution for me, so linking it to the project would have been really helpful.  
Thank you very much!

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [16 November 2023 20:58 UTC](https://discourse.nodered.org/t/github-auto-pull/82907/5 "2023-11-16T20:58:55Z")

</div>

No need to reboot, restarting node-red would be enough.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [15 January 2024 20:58 UTC](https://discourse.nodered.org/t/github-auto-pull/82907/6 "2024-01-15T20:58:57Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
