@@ -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