[tor-commits] [tor/master] Appveyor CI: Fix GitHub provider detection

2018-08-23 Thread nickm
commit 73d46b76fd885a108674687cc211efd848641bfe
Author: teor 
Date:   Tue Jul 31 11:09:54 2018 +1000

Appveyor CI: Fix GitHub provider detection

Part of 26979.
---
 scripts/test/appveyor-irc-notify.py | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/test/appveyor-irc-notify.py 
b/scripts/test/appveyor-irc-notify.py
index 4ffea5268..297b02b15 100644
--- a/scripts/test/appveyor-irc-notify.py
+++ b/scripts/test/appveyor-irc-notify.py
@@ -22,6 +22,9 @@
 #  - Accept UTF-8
 #  - only guess github URLs
 #  - stop using ANSI colors
+#
+# Modified by teor in 2018:
+#  - fix github provider detection ('gitHub' or 'gitHubEnterprise', apparently)
 
 # This program is free software; you can redistribute it and/or modify it 
under the
 # terms of the GNU General Public License as published by the Free Software 
Foundation;
@@ -110,7 +113,7 @@ def appveyor_vars():
 
 BUILD_FMT = 
u'{url}/project/{account_name}/{project_name}/build/{build_version}'
 
-if vars["repo_provider"] == 'github':
+if vars["repo_provider"].lower().startswith('github'):
 COMMIT_FMT = 
u'https://{repo_provider}.com/{repo_name}/commit/{repo_commit}'
 vars.update(commit_url=COMMIT_FMT.format(**vars))
 



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/master] Appveyor CI: Fix GitHub provider detection

2018-07-31 Thread nickm
commit fc9f8c28fbdc89501ebdca4792d5ff86490f9295
Author: teor 
Date:   Tue Jul 31 11:09:54 2018 +1000

Appveyor CI: Fix GitHub provider detection

Part of 26979.
---
 scripts/test/appveyor-irc-notify.py | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/test/appveyor-irc-notify.py 
b/scripts/test/appveyor-irc-notify.py
index 4ffea5268..297b02b15 100644
--- a/scripts/test/appveyor-irc-notify.py
+++ b/scripts/test/appveyor-irc-notify.py
@@ -22,6 +22,9 @@
 #  - Accept UTF-8
 #  - only guess github URLs
 #  - stop using ANSI colors
+#
+# Modified by teor in 2018:
+#  - fix github provider detection ('gitHub' or 'gitHubEnterprise', apparently)
 
 # This program is free software; you can redistribute it and/or modify it 
under the
 # terms of the GNU General Public License as published by the Free Software 
Foundation;
@@ -110,7 +113,7 @@ def appveyor_vars():
 
 BUILD_FMT = 
u'{url}/project/{account_name}/{project_name}/build/{build_version}'
 
-if vars["repo_provider"] == 'github':
+if vars["repo_provider"].lower().startswith('github'):
 COMMIT_FMT = 
u'https://{repo_provider}.com/{repo_name}/commit/{repo_commit}'
 vars.update(commit_url=COMMIT_FMT.format(**vars))
 



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits