tests: fix nitrpg tests
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 5 Dec 2016 15:42:05 +0000 (10:42 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 5 Dec 2016 16:54:46 +0000 (11:54 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/nitrpg/README.md
lib/github/api.nit

index a83264e..5f6a02d 100644 (file)
@@ -42,7 +42,9 @@ It should alwaysd be up if you want your game to be kept up-to-date.
 
 To run the listener:
 
+~~~raw
        ./listener <host> <port>
+~~~
 
 The arguments `host` and `port` must correspond to what you entered in your
 GitHub hook settings.
@@ -53,7 +55,9 @@ The `web` program act as a [nitcorn](http://nitlanguage.org/doc/stdlib/module_ni
 
 To run the webserver:
 
+~~~raw
        ./web <host> <port> <root>
+~~~
 
 The arguments `host` and `port` must correspond to what you entered in your
 GitHub hook settings.
@@ -62,11 +66,15 @@ NitRPG root.
 
 For example, if NitRPG is installed in `yourdomain.com/nitrpg`:
 
+~~~raw
        ./web localhost 3000 "/nitrpg"
+~~~
 
 Leave it empty if NitRPG is installed at the root of the domain:
 
+~~~raw
        ./web localhost 3000 ""
+~~~
 
 The webserver can then be accessed at `http://yourdomain.com:3000/nitrpg/`.
 
index 1a9ed1a..d236427 100644 (file)
@@ -757,6 +757,9 @@ class PullRequest
 
        # Changed files count.
        var changed_files: Int is writable
+
+       # URL to patch file
+       var patch_url: nullable String is writable
 end
 
 # A pull request reference (used for head and base).