Migrate references from https://github.com/privat/nit to https://github.com/nitlang/nit
Pull-Request: #1651
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
--custom-brand "<a href=\"http://nitlanguage.org/\">Nitlanguage.org</a>" \
--custom-overview-text "<p>Documentation for the standard library of Nit<br/>Version $$(git describe)<br/>Date: $$(git show --format="%cd" | head -1)</p>" \
--custom-footer-text "Nit standard library. Version $$(git describe)." \
- --github-upstream "privat:nit:master" \
+ --github-upstream "nitlang:nit:master" \
--github-base-sha1 "$$(git rev-parse HEAD)" \
--github-gitdir "." \
- --source "https://github.com/privat/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
+ --source "https://github.com/nitlang/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
--piwik-tracker "pratchett.info.uqam.ca/piwik/" \
--piwik-site-id "2" \
--custom-brand "<a href=\"http://nitlanguage.org/\">Nitlanguage.org</a>" \
--custom-overview-text "<p>Documentation for the Nit tools<br/>Version $$(git describe)<br/>Date: $$(git show --format="%cd" | head -1)</p>" \
--custom-footer-text "Nit tools. Version $$(git describe)." \
- --github-upstream "privat:nit:master" \
+ --github-upstream "nitlang:nit:master" \
--github-base-sha1 "$$(git rev-parse HEAD)" \
--github-gitdir "." \
- --source "https://github.com/privat/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
+ --source "https://github.com/nitlang/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
--piwik-tracker "pratchett.info.uqam.ca/piwik/" \
--piwik-site-id "3"
License:Apache2
Web Site:http://nitlanguage.org
Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_moles
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
Summary:Wack-a-Mole game
Description:
License:WTFPL
Web Site:http://nitlanguage.org
Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/contrib/friendz
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
Summary:Puzzle game
Description:
# Get a given pull request (PR)
fun getpr(number: Int): JsonObject
do
- var pr = get_and_check("https://api.github.com/repos/privat/nit/pulls/{number}")
+ var pr = get_and_check("https://api.github.com/repos/nitlang/nit/pulls/{number}")
var prm = pr.json_as_map
var sha = prm["head"].json_as_map["sha"].to_s
- var statuses = get_and_check("https://api.github.com/repos/privat/nit/statuses/{sha}")
+ var statuses = get_and_check("https://api.github.com/repos/nitlang/nit/statuses/{sha}")
prm["statuses"] = statuses
print "{prm["title"].to_s}: by {prm["user"].json_as_map["login"].to_s} (# {prm["number"].to_s})"
var mergeable = prm["mergeable"]
var number = pr["number"].as(Int)
var user = pr["user"].json_as_map["login"].as(String)
var comments = new Array[nullable Object]
- comments.add_all(get_and_check("https://api.github.com/repos/privat/nit/issues/{number}/comments").json_as_a)
- comments.add_all(get_and_check("https://api.github.com/repos/privat/nit/pulls/{number}/comments").json_as_a)
+ comments.add_all(get_and_check("https://api.github.com/repos/nitlang/nit/issues/{number}/comments").json_as_a)
+ comments.add_all(get_and_check("https://api.github.com/repos/nitlang/nit/pulls/{number}/comments").json_as_a)
var logins = new Array[String]
for c in comments do
var cm = c.json_as_map
print " git config --add github.oauthtoken MYOAUTHTOKEN"
end
-var curl = new GithubCurl(auth, "Merge-o-matic (privat/nit)")
+var curl = new GithubCurl(auth, "Merge-o-matic (nitlang/nit)")
if args.length != 1 then
# Without args, list `ok_will_merge`
- var x = curl.get_and_check("https://api.github.com/repos/privat/nit/issues?labels=ok_will_merge")
+ var x = curl.get_and_check("https://api.github.com/repos/nitlang/nit/issues?labels=ok_will_merge")
for y in x.json_as_a do
var number = y.json_as_map["number"].as(Int)
curl.getpr(number)
* Shop: exchange Nitcoins against glorifying items
You can suggest new achievements or ideas in the
-[NitRPG RoadMap Issue](https://github.com/privat/nit/issues/1161).
+[NitRPG RoadMap Issue](https://github.com/nitlang/nit/issues/1161).
// @name Github.com - Add RPG tab
// @namespace nitlanguage/github/rpg
// @description Adds a "Github RPG" Tab at the end of the tabs.
-// @include https://github.com/privat/nit*
+// @include https://github.com/nitlang/nit*
// @version 1
// @grant none
// ==/UserScript==
/* TODO:
* Link to the player page (if logged and is a player)
- * Link to other games (not just `privat/nit` but other)
+ * Link to other games (not just `nitlang/nit` but other)
*/
// The nav bar with tabs
// The new tab
var html = '<li class="tooltipped tooltipped-w" aria-label="Github RPG">\
- <a href="http://nitlanguage.org/rpg/games/privat/nit" aria-label="RPG" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_settings /privat/nit/settings">\
+ <a href="http://nitlanguage.org/rpg/games/nitlang/nit" aria-label="RPG" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_settings /nitlang/nit/settings">\
<span class="octicon octicon-ruby"></span> <span class="full-word">Github RPG</span>\
<img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16">\
</a></li>';
# Returns the repo `full_name`.
#
- # Example: `"privat/nit"`
+ # Example: `"nitlang/nit"`
redef fun key do return repo.full_name
# We need a `GithubAPI` client to load Github data.
if (!lib_files_loaded)
{
// We get the 'nit' folder content on github.
- $.get("https://api.github.com/repos/privat/nit/contents/?access_token=" + github_acces_token, function(data) {
+ $.get("https://api.github.com/repos/nitlang/nit/contents/?access_token=" + github_acces_token, function(data) {
for (var i = 0; i < data.length; i++) {
if (data[i].name == "lib") {
// We get the list of all files in the 'lib' folder.
- $.get("https://api.github.com/repos/privat/nit/git/trees/" + data[i].sha + "?recursive=1&access_token=" + github_acces_token, function(data) {
+ $.get("https://api.github.com/repos/nitlang/nit/git/trees/" + data[i].sha + "?recursive=1&access_token=" + github_acces_token, function(data) {
for (var i = 0; i < data.tree.length; i++) {
if (data.tree[i].type == "blob") {
lib_files_number++;
Opportunity is a web-application written in Nit to plan meetups with people in real-life (or on the internet, why not !).
-It runs on Nit's official web server: Nitcorn, available along with the compiler for the language on Github <https://github.com/privat/nit>.
+It runs on Nit's official web server: Nitcorn, available along with the compiler for the language on Github <https://github.com/nitlang/nit>.
# Compile and execute
</ul>
<ul class="nav navbar-nav pull-right">
- <li><a href="https://github.com/privat/nit/tree/master/contrib/pep8analysis/">Source and manual</a></li>
+ <li><a href="https://github.com/nitlang/nit/tree/master/contrib/pep8analysis/">Source and manual</a></li>
<li><a href="https://code.google.com/p/pep8-1/">Pep/8 project</a></li>
</ul>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
- <li><a href="https://github.com/privat/nit/">Nit repository</a></li>
+ <li><a href="https://github.com/nitlang/nit/">Nit repository</a></li>
</ul>
<ul class="nav navbar-nav pull-right">
<div class="container">
<h1>Fibonacci calculator</h1>
- <a href="https://github.com/privat/nit/blob/master/examples/fibonacci.nit">Nit source</a><br>
- <a href="https://github.com/privat/nit/blob/master/examples/emscripten/fibonacci/www/index.html">HTML source</a>
+ <a href="https://github.com/nitlang/nit/blob/master/examples/fibonacci.nit">Nit source</a><br>
+ <a href="https://github.com/nitlang/nit/blob/master/examples/emscripten/fibonacci/www/index.html">HTML source</a>
<h2>Status</h2>
<p id="loading">Loading...</p>
License:Apache2
Web Site:http://nitlanguage.org
Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_ballz
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
Summary:A Sensor Demo
Description:
License:Apache2
Web Site:http://nitlanguage.org
Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_dino
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
Summary:Tactical arcade game
Description:
License:Apache2
Web Site:http://nitlanguage.org
Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_simple
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
Summary:Simple Demo for MNit
Description:
License:Apache2
Web Site:http://nitlanguage.org
Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/shoot
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
Summary:A shoot'em up in space
Description:
# The API client allows you to get Github API entities.
#
# ~~~
-# var repo = api.load_repo("privat/nit")
+# var repo = api.load_repo("nitlang/nit")
# assert repo != null
# assert repo.name == "nit"
#
# See other `load_*` methods to use more expressive types.
#
# var api = new GithubAPI(get_github_oauth)
- # var obj = api.get("repos/privat/nit")
+ # var obj = api.get("repos/nitlang/nit")
# assert obj isa JsonObject
# assert obj["name"] == "nit"
#
# Loads the `Repo` from the API or returns `null` if the repo cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo.name == "nit"
- # assert repo.owner.login == "privat"
+ # assert repo.owner.login == "nitlang"
# assert repo.default_branch.name == "master"
fun load_repo(full_name: String): nullable Repo do
var repo = new Repo(self, full_name)
# Returns `null` if the branch cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var branch = api.load_branch(repo, "master")
# assert branch.name == "master"
# Returns `null` if the commit cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var commit = api.load_commit(repo, "64ce1f")
# assert commit isa Commit
# Returns `null` if the issue cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var issue = api.load_issue(repo, 1)
# assert issue.title == "Doc"
# Returns `null` if the pull request cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var pull = api.load_pull(repo, 1)
# assert pull.title == "Doc"
# Returns `null` if the label cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var labl = api.load_label(repo, "ok_will_merge")
# assert labl != null
# Returns `null` if the milestone cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var stone = api.load_milestone(repo, 4)
# assert stone.title == "v1.0prealpha"
# Returns `null` if the event cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo isa Repo
# var event = api.load_issue_event(repo, 199674194)
# assert event.actor.login == "privat"
# Returns `null` if the comment cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var comment = api.load_commit_comment(repo, 8982707)
# assert comment.user.login == "Morriar"
# Returns `null` if the comment cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var comment = api.load_issue_comment(repo, 6020149)
# assert comment.user.login == "privat"
# Returns `null` if the comment cannot be found.
#
# var api = new GithubAPI(get_github_oauth)
- # var repo = api.load_repo("privat/nit")
+ # var repo = api.load_repo("nitlang/nit")
# assert repo != null
# var comment = api.load_review_comment(repo, 21010363)
# assert comment.path == "src/modelize/modelize_property.nit"
# var api = new GithubAPI(get_github_oauth)
# api.enable_cache = true
#
-# var name = "privat/nit"
+# var name = "nitlang/nit"
# assert not api.has_cache(name)
# var repo = api.load_repo(name) # load from GitHub
# #assert api.has_cache(name) FIXME bring back this assert
end
fun test_get_repo do
- var uri = "https://api.github.com/repos/privat/nit"
+ var uri = "https://api.github.com/repos/nitlang/nit"
var res = testee.get_and_check(uri)
assert res isa JsonObject
# # Then call "dot -Tpng -o graph.png"
# ~~~
#
-# ![A graph drawing produced by Graphviz](https://github.com/privat/nit/blob/master/lib/graph.png)
+# ![A graph drawing produced by Graphviz](https://github.com/nitlang/nit/blob/master/lib/graph.png)
#
# Other methods
# =============
For instance, the [standard library] use the following value to link to files in GitHub:
- "https://github.com/privat/nit/blob/$(git rev-parse HEAD)/%f#L%l-%L"
+ "https://github.com/nitlang/nit/blob/$(git rev-parse HEAD)/%f#L%l-%L"
Here, the `git rev-parse HEAD` is used to link to the current snapshot revision of the file.