
Query
26 |29 | Repo 30 | | 31 |32 | 38 | 43 | | 44 |
47 | Stat 48 | | 49 |50 | 56 | | 57 |
60 | Time 61 | | 62 |63 | 69 | 74 | | 75 |
78 | 79 | 80 |
84 | ${link} 85 |
86 | 87 |88 | ${header} 89 |
90 | 91 |(This email is automatically generated, do not reply)
98 | 99 | ${smartmail_markup} 100 | 101 | `; 102 | 103 | return this.sendEmail(recipient, subject, body); 104 | } 105 | 106 | /** 107 | * Invisible email markup to add action in Gmail. 108 | * 109 | * Note: Get registered with google. 110 | * https://developers.google.com/gmail/markup/registering-with-google 111 | */ 112 | getSmartmailMarkup(url: string, title: string): string { 113 | const email_markup = ` 114 |Link | 46 |Time | 47 |Event | 48 |Target | 49 |Details | 50 |Reason | 51 |||
---|---|---|---|---|---|---|---|
link | 56 |{{entry.timeString()}} | 57 |{{entry.data.event}} | 58 |59 | {{entry.data.target}} 62 | | 63 |
64 |
|
73 | {{entry.data.reason || "N/A"}} | 74 |
29 | Repo 30 | | 31 |32 | 38 | 43 | | 44 |
47 | Stat 48 | | 49 |50 | 56 | | 57 |
60 | Time 61 | | 62 |63 | 69 | 74 | | 75 |
70 | I am the oss bot.
71 |
72 | I am your friend.
73 |
74 | Visit my GitHub
75 |
76 |
79 | The suggested action metric (SAM) score is a single number meant to help maintainers of open-source repositories get an at-a-glance health check for their repo. 80 |
81 |82 | The formula for SAM score is simple: 83 |
84 |85 |
86 | // Simple ratio: what percentage of all issues ever are still open? 87 | let open_ratio = (open_issues / open_issues + closed_issues) 88 | 89 | // Scale: how many total issues have you ever had? 90 | let scale_factor = (open_issues + closed_issues) 91 | 92 | // SAM score is the ratio of open to closed issues multiplied by a logarithmic 93 | // scale factor. 94 | let score = open_ratio * Math.log(Math.E + scale_factor)95 | 96 |
97 | The goal is to get the lowest SAM score possible without "gaming" the system through bug bankruptcy or other developer-unfriendly processes. 98 |
99 |100 | The basic principles are: 101 | 102 |
110 | SAM Scores fall into the following buckets: 111 | 112 |