Fix wrong order of issues when importing from github

See API details at https://developer.github.com/v3/issues/.
Refs #1791
This commit is contained in:
Hiroyuki Sato 2015-06-27 03:11:20 +09:00
parent 9f166a8649
commit 4a203aab57
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
Please view this file on the master branch, on stable branches it's out of date. Please view this file on the master branch, on stable branches it's out of date.
v 7.13.0 (unreleased) v 7.13.0 (unreleased)
- Fix order of issues imported form GitHub (Hiroyuki Sato)
- Fix Merge Request webhook to properly fire "merge" action when accepted from the web UI - Fix Merge Request webhook to properly fire "merge" action when accepted from the web UI
- Add `two_factor_enabled` field to admin user API (Stan Hu) - Add `two_factor_enabled` field to admin user API (Stan Hu)
- Fix invalid timestamps in RSS feeds (Rowan Wookey) - Fix invalid timestamps in RSS feeds (Rowan Wookey)

View File

@ -11,7 +11,9 @@ module Gitlab
def execute def execute
#Issues && Comments #Issues && Comments
client.list_issues(project.import_source, state: :all).each do |issue| client.list_issues(project.import_source, state: :all,
sort: :created,
direction: :asc).each do |issue|
if issue.pull_request.nil? if issue.pull_request.nil?
body = @formatter.author_line(issue.user.login, issue.body) body = @formatter.author_line(issue.user.login, issue.body)