-
Notifications
You must be signed in to change notification settings - Fork 370
/
send_daily_triage.md.erb
52 lines (37 loc) · 2.11 KB
/
send_daily_triage.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Hello @<%= @user.github %>,
<% case @user.effective_streak_count %>
<% when 0 %>
Welcome! To get your contribution streak started click on a contribution link below. Your goal is to observe and learn. Read the contents and try to pick out patterns. Keep clicking on links and learning to build up your streak. When it comes to contribution, consistency is key.
<% when 1..10 %>
Your contribution streak is at <%= @user.effective_streak_count %>. Click on a contribution link below to keep going. The goal is still to learn. Start taking notes on what you observe, how is it different today than what you saw from the last email? How is it the same?
<% else %>
Your contribution streak is at <%= @user.effective_streak_count %>. Keep clicking to keep it growing.
<% end %>
<% case @user.effective_streak_count %>
<% when 2..5 %>
If you miss an email you won't lose everything, but your streak count will go down by one. If that's too much pressure and you need some more time between emails, you can [change your email frequency](<%= edit_user_url(@user) %>). You can also access this page at any time by logging in on CodeTriage.
<% end %>
<% @grouped_issues_docs.each do |group| %>
## <%= group.repo.full_name %>
<% group.assignments.each do |assignment| %>
**<%= link_to("#{group.repo.full_name}##{assignment.issue.number}", issue_click_url(assignment.id, assignment.user.id )) if assignment.issue.number %>** <%= assignment.issue.title %> (<%= time_ago_in_words assignment.issue.last_touched_at %> ago)
<% end %>
<% if group.any_docs? %>
### Docs
<% end %>
<% group.read_docs.each do |doc| %>
⇢ [<%= doc.path %>](<%= doc_method_url doc %>) ([source](<%= doc.to_github %>))
<pre>
<%= group.comment_for_doc(doc).try(:md_safe_comment_block) || DocMethod::NeedsDocs %>
</pre>
<% end %>
<% group.write_docs.each do |doc| %>
⇢ [<%= doc.path %>](<%= doc_method_url doc %>) ([source](<%= doc.to_github %>))
<pre>
<%= DocMethod::NeedsDocs %>
</pre>
<% end %>
<% end %>
---
Go forth and make the world a better place!
[@HowToOpenSource](https://twitter.com/HowToOpenSource)