Skip to main content
Topic: Pull Commits on Front page (Read 2562 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Pull Commits on Front page

How're you guys doing that?

The
Code: [Select]
 Recent commits

Merge pull request #2001 from emanuele45...
Merge branch 'patch_1-0-3' into up_dev ...
bit.

I'd like to stick that up on our own pages for stuff like that. ;O

Re: Pull Commits on Front page

Reply #1

See the home page here: https://github.com/elkarte/elkarte.net/blob/master/elk/home.php

The github call is done via javascript and starts around line 145 in that file.  Done via JS since github only allows so many api calls per ip per hour, so with JS the ip is not this site but the user looking at the page and prevents (mostly) the blocking.

Re: Pull Commits on Front page

Reply #2

hmm.. could it be Keiro is talking about pull requests and contributing code?
If so... I'll explain later after confirmation. :P
Bugs creator.
Features destroyer.
Template killer.

Re: Pull Commits on Front page

Reply #3

Quote from: emanuele – hmm.. could it be Keiro is talking about pull requests and contributing code?
If so... I'll explain later after confirmation. :P

Nope, pull requests and contribute code I know how to do. See http://github.com/KeiroD for my repos... there's not much on them right now but I plan on pushing a lot of code to my repos over the next few weeks.

Spuds: This is exactly what I was looking for, thank you very much! <3