Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Fix githubPRs.py to query the new solr repo (#405)

Jan Høydahl5c6d12d864e8
diff --git a/dev-tools/scripts/githubPRs.py b/dev-tools/scripts/githubPRs.py
index 39d84425fae..20f45366de4 100755
--- a/dev-tools/scripts/githubPRs.py
+++ b/dev-tools/scripts/githubPRs.py
@@ -56,21 +56,21 @@ def make_html(dict):
sys.exit(1)
global conf
template = Environment(loader=BaseLoader).from_string("""
- <h1>Lucene/Solr Github PR report</h1>
+ <h1>Solr Github PR report</h1>
<p>Number of open Pull Requests: {{ open_count }}</p>
<h2>PRs lacking JIRA reference in title ({{ no_jira_count }})</h2>
<ul>
{% for pr in no_jira %}
- <li><a href="https://github.com/apache/lucene-solr/pull/{{ pr.number }}">#{{ pr.number }}: {{ pr.created }} {{ pr.title }}</a> ({{ pr.user }})</li>
+ <li><a href="https://github.com/apache/solr/pull/{{ pr.number }}">#{{ pr.number }}: {{ pr.created }} {{ pr.title }}</a> ({{ pr.user }})</li>
{%- endfor %}
</ul>
<h2>Open PRs with a resolved JIRA ({{ closed_jira_count }})</h2>
<ul>
{% for pr in closed_jira %}
- <li><a href="https://github.com/apache/lucene-solr/pull/{{ pr.pr_number }}">#{{ pr.pr_number }}</a>: <a href="https://issues.apache.org/jira/browse/{{ pr.issue_key }}">{{ pr.status }} {{ pr.resolution_date }} {{ pr.issue_key}}: {{ pr.issue_summary }}</a> ({{ pr.assignee }})</li>
+ <li><a href="https://github.com/apache/solr/pull/{{ pr.pr_number }}">#{{ pr.pr_number }}</a>: <a href="https://issues.apache.org/jira/browse/{{ pr.issue_key }}">{{ pr.status }} {{ pr.resolution_date }} {{ pr.issue_key}}: {{ pr.issue_summary }}</a> ({{ pr.assignee }})</li>
{%- endfor %}
</ul>
""")
@@ -86,9 +86,9 @@ def main():
gh = Github()
jira = JIRA('https://issues.apache.org/jira')
result = {}
- repo = gh.get_repo('apache/lucene-solr')
+ repo = gh.get_repo('apache/solr')
open_prs = repo.get_pulls(state='open')
- out("Lucene/Solr Github PR report")
+ out("Solr Github PR report")
out("============================")
out("Number of open Pull Requests: %s" % open_prs.totalCount)
result['open_count'] = open_prs.totalCount