Skip to content

Commit

Permalink
Do a full sync of repos after version/git tag create
Browse files Browse the repository at this point in the history
Related to #487
  • Loading branch information
andrew committed Mar 24, 2016
1 parent 695d576 commit 06aaba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/github_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def to_s
end

def update_github_repo_async
GithubUpdateWorker.perform_async(github_repository.full_name)
GithubDownloadWorker.perform_async(github_repository_id)
end

def send_notifications_async
Expand Down
3 changes: 2 additions & 1 deletion app/models/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def send_notifications_async
end

def update_github_repo_async
project.update_github_repo_async
return unless project.github_repository
GithubDownloadWorker.perform_async(project.github_repository_id)
end

def send_notifications
Expand Down

0 comments on commit 06aaba4

Please sign in to comment.