Commits

Ezio Melotti committed c8a6a0f

Show issue title and rename a variable.

Comments (0)

Files changed (1)

 issue_files = {}    # 'number' => []
 issue_patches = {}  # 'number' => []
 module_issues = {}
-for issue in open_issues:
-  print(issue)
-  issue_files[issue] = bpo.display('issue'+issue, 'files')['files']
-  for filen in issue_files[issue]:
+for issuen in open_issues:
+  issue = bpo.display('issue'+issuen, 'files', 'title')
+  issue_files[issuen] = issue['files']
+  print('#%s: %s' % (issuen, issue['title']))
+  for filen in issue_files[issuen]:
     files_attached += 1
     print('  ' + filen, end='')
     # get file
     patchset = patch.fromfile(path)
     if patchset:
       files_patches += 1
-      if issue not in issue_patches:
-        issue_patches[issue] = []
-      issue_patches[issue].append(path)
+      if issuen not in issue_patches:
+        issue_patches[issuen] = []
+      issue_patches[issuen].append(path)
       # detect if there is a module for the patch path
       for entry in patchset.items:
         module = (stdlib.getmodname(entry.source) or
           print(' (module: %s)' % module, end='')
           if module not in module_issues:
             module_issues[module] = []
-          if issue not in module_issues[module]:
-            module_issues[module].append(issue)
+          if issuen not in module_issues[module]:
+            module_issues[module].append(issuen)
         else:
           # [ ] handle unknown path - ask to add to unknown paths cache
           pass
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.