Skip to content

Commit 6f4a7ed

Browse files
committed
delete obsolete code
1 parent 8f0ceba commit 6f4a7ed

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

lib/algora/accounts/accounts.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ defmodule Algora.Accounts do
147147
type: u.type,
148148
id: u.id,
149149
handle: u.handle,
150-
provider_login: u.provider_login,
151150
name: u.name,
152151
provider_login: u.provider_login,
153152
provider_meta: u.provider_meta,

lib/algora/admin/admin.ex

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -18,57 +18,6 @@ defmodule Algora.Admin do
1818

1919
require Logger
2020

21-
def seed do
22-
import Algora.Factory
23-
24-
title = "Monthly PR Review & Triage Bounty"
25-
26-
description = """
27-
## What needs doing
28-
29-
Review open pull requests across our repos and:
30-
31-
1. Test them locally
32-
2. Leave helpful comments
33-
3. Merge or close stale PRs
34-
4. Tag relevant people when needed
35-
36-
## Success looks like
37-
38-
- [ ] All PRs older than 2 weeks have been reviewed
39-
- [ ] Clear comments left on PRs needing changes
40-
- [ ] Stale PRs (>30 days old) closed with explanation
41-
- [ ] Weekly summary posted in #dev channel
42-
"""
43-
44-
org = Repo.get_by!(User, handle: "piedpiper0")
45-
user = Repo.get_by!(User, handle: "zcesur")
46-
47-
repository = insert!(:repository, user: org)
48-
ticket = insert!(:ticket, title: title, repository: repository, description: description)
49-
bounty = insert!(:bounty, ticket: ticket, owner: org, creator: user, amount: Money.new(1000, :USD))
50-
51-
for contributor <- Accounts.list_featured_developers() do
52-
insert!(:transaction,
53-
type: :debit,
54-
net_amount: Money.new(1000, :USD),
55-
user_id: org.id,
56-
bounty_id: bounty.id,
57-
status: :succeeded
58-
)
59-
60-
insert!(:transaction,
61-
type: :credit,
62-
net_amount: Money.new(1000, :USD),
63-
user_id: contributor.id,
64-
bounty_id: bounty.id,
65-
status: :succeeded
66-
)
67-
end
68-
69-
IO.puts("#{AlgoraWeb.Endpoint.url()}/org/#{org.handle}/bounties/#{bounty.id}")
70-
end
71-
7221
def magic(:email, email, return_to),
7322
do: AlgoraWeb.Endpoint.url() <> AlgoraWeb.UserAuth.generate_login_path(email, return_to)
7423

0 commit comments

Comments
 (0)