|
65 | 65 | from dashboard.context import quickstart as qs |
66 | 66 | from dashboard.tasks import increment_view_count |
67 | 67 | from dashboard.utils import ( |
68 | | - ProfileHiddenException, ProfileNotFoundException, get_bounty_from_invite_url, get_orgs_perms, profile_helper, |
| 68 | + ProfileHiddenException, ProfileNotFoundException, build_profile_pairs, get_bounty_from_invite_url, get_orgs_perms, |
| 69 | + profile_helper, |
69 | 70 | ) |
70 | 71 | from economy.utils import ConversionRateNotFoundError, convert_amount, convert_token_to_usdt |
71 | 72 | from eth_utils import to_checksum_address, to_normalized_address |
@@ -4874,9 +4875,7 @@ def create_bounty_v1(request): |
4874 | 4875 | event_name = 'new_bounty' |
4875 | 4876 | record_bounty_activity(bounty, user, event_name) |
4876 | 4877 | maybe_market_to_email(bounty, event_name) |
4877 | | - |
4878 | | - # maybe_market_to_slack(bounty, event_name) |
4879 | | - # maybe_market_to_user_slack(bounty, event_name) |
| 4878 | + maybe_market_to_github(bounty, event_name) |
4880 | 4879 |
|
4881 | 4880 | response = { |
4882 | 4881 | 'status': 204, |
@@ -4938,9 +4937,8 @@ def cancel_bounty_v1(request): |
4938 | 4937 |
|
4939 | 4938 | event_name = 'killed_bounty' |
4940 | 4939 | record_bounty_activity(bounty, user, event_name) |
4941 | | - # maybe_market_to_email(bounty, event_name) |
4942 | | - # maybe_market_to_slack(bounty, event_name) |
4943 | | - # maybe_market_to_user_slack(bounty, event_name) |
| 4940 | + maybe_market_to_email(bounty, event_name) |
| 4941 | + maybe_market_to_github(bounty, event_name) |
4944 | 4942 |
|
4945 | 4943 | bounty.bounty_state = 'cancelled' |
4946 | 4944 | bounty.idx_status = 'cancelled' |
@@ -5029,8 +5027,8 @@ def fulfill_bounty_v1(request): |
5029 | 5027 | event_name = 'work_submitted' |
5030 | 5028 | record_bounty_activity(bounty, user, event_name) |
5031 | 5029 | maybe_market_to_email(bounty, event_name) |
5032 | | - # maybe_market_to_slack(bounty, event_name) |
5033 | | - # maybe_market_to_user_slack(bounty, event_name) |
| 5030 | + profile_pairs = build_profile_pairs(bounty) |
| 5031 | + maybe_market_to_github(bounty, event_name, profile_pairs) |
5034 | 5032 |
|
5035 | 5033 | if bounty.bounty_state != 'work_submitted': |
5036 | 5034 | bounty.bounty_state = 'work_submitted' |
@@ -5269,6 +5267,8 @@ def close_bounty_v1(request, bounty_id): |
5269 | 5267 |
|
5270 | 5268 | event_name = 'work_done' |
5271 | 5269 | record_bounty_activity(bounty, user, event_name) |
| 5270 | + maybe_market_to_email(bounty, event_name) |
| 5271 | + maybe_market_to_github(bounty, event_name) |
5272 | 5272 |
|
5273 | 5273 | bounty.bounty_state = 'done' |
5274 | 5274 | bounty.idx_status = 'done' # TODO: RETIRE |
|
0 commit comments