Skip to content

Commit

Permalink
Merge pull request #5256 from thelostone-mc/sync
Browse files Browse the repository at this point in the history
update title on sync
  • Loading branch information
thelostone-mc authored Sep 25, 2019
2 parents 6a49d67 + 3ff3da4 commit 1244b64
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/assets/v2/js/pages/bounty_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,8 @@ const appendGithubSyncButton = function(result) {
'/sync/get_issue_details?url=' + encodeURIComponent(result['github_url']) + '&token=' + currentProfile.githubToken
).then(function(result) {
const payload = JSON.stringify({
issue_description: result.description
issue_description: result.description,
title: result.title
});

return $.post('/bounty/change/' + bountyId, payload).then(
Expand Down
16 changes: 14 additions & 2 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3018,8 +3018,20 @@ def change_bounty(request, bounty_id):
else:
raise Http404

keys = ['experience_level', 'project_length', 'bounty_type', 'featuring_date', 'bounty_categories', 'issue_description',
'permission_type', 'project_type', 'reserved_for_user_handle', 'is_featured', 'admin_override_suspend_auto_approval']
keys = [
'title',
'experience_level',
'project_length',
'bounty_type',
'featuring_date',
'bounty_categories',
'issue_description',
'permission_type',
'project_type',
'reserved_for_user_handle',
'is_featured',
'admin_override_suspend_auto_approval'
]

if request.body:
can_change = (bounty.status in Bounty.OPEN_STATUSES) or \
Expand Down

0 comments on commit 1244b64

Please sign in to comment.