diff --git a/.all-contributorsrc b/.all-contributorsrc index 9c5e450b1..325be8578 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1348,6 +1348,499 @@ "contributions": [ "doc" ] + }, + { + "login": "github-actions[bot]", + "name": "github-actions[bot]", + "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", + "profile": "https://github.com/apps/github-actions", + "contributions": [ + "code" + ] + }, + { + "login": "OlegGulevskyy", + "name": "Oleg Gulevskyy", + "avatar_url": "https://avatars.githubusercontent.com/u/43781031?v=4", + "profile": "https://github.com/OlegGulevskyy", + "contributions": [ + "code", + "doc", + "maintenance", + "platform" + ] + }, + { + "login": "raguay", + "name": "Richard Guay", + "avatar_url": "https://avatars.githubusercontent.com/u/2487495?v=4", + "profile": "http://www.customct.com/", + "contributions": [ + "doc" + ] + }, + { + "login": "ATenderholt", + "name": "Adam Tenderholt", + "avatar_url": "https://avatars.githubusercontent.com/u/740623?v=4", + "profile": "https://github.com/ATenderholt", + "contributions": [ + "code" + ] + }, + { + "login": "JulioDRF", + "name": "JulioDRF", + "avatar_url": "https://avatars.githubusercontent.com/u/15677708?v=4", + "profile": "https://github.com/JulioDRF", + "contributions": [ + "code" + ] + }, + { + "login": "scottopell", + "name": "Scott Opell", + "avatar_url": "https://avatars.githubusercontent.com/u/996472?v=4", + "profile": "http://scottopell.com/", + "contributions": [ + "code" + ] + }, + { + "login": "avengerweb", + "name": "Vadim Shchepotev", + "avatar_url": "https://avatars.githubusercontent.com/u/2055581?v=4", + "profile": "https://aven.dev/", + "contributions": [ + "code" + ] + }, + { + "login": "willdot", + "name": "Will Andrews", + "avatar_url": "https://avatars.githubusercontent.com/u/4906530?v=4", + "profile": "https://willdot.net/", + "contributions": [ + "code" + ] + }, + { + "login": "gwynforthewyn", + "name": "Gwyn", + "avatar_url": "https://avatars.githubusercontent.com/u/434656?v=4", + "profile": "https://github.com/gwynforthewyn", + "contributions": [ + "code", + "review", + "question", + "research" + ] + }, + { + "login": "xijaja", + "name": "希嘉嘉", + "avatar_url": "https://avatars.githubusercontent.com/u/47017666?v=4", + "profile": "https://github.com/xijaja", + "contributions": [ + "code" + ] + }, + { + "login": "almas1992", + "name": "ALMAS", + "avatar_url": "https://avatars.githubusercontent.com/u/9382335?v=4", + "profile": "https://www.almas.cc/", + "contributions": [ + "code" + ] + }, + { + "login": "o8x", + "name": "Alex", + "avatar_url": "https://avatars.githubusercontent.com/u/20666153?v=4", + "profile": "https://stdout.com.cn/", + "contributions": [ + "code" + ] + }, + { + "login": "arifali123", + "name": "Arif Ali", + "avatar_url": "https://avatars.githubusercontent.com/u/51419655?v=4", + "profile": "https://github.com/arifali123", + "contributions": [ + "code" + ] + }, + { + "login": "hotafrika", + "name": "Artur Siarohau", + "avatar_url": "https://avatars.githubusercontent.com/u/18332839?v=4", + "profile": "https://github.com/hotafrika", + "contributions": [ + "code" + ] + }, + { + "login": "binyamin", + "name": "Binyamin Aron Green", + "avatar_url": "https://avatars.githubusercontent.com/u/39805353?v=4", + "profile": "https://binyam.in/", + "contributions": [ + "code" + ] + }, + { + "login": "bdwyertech", + "name": "Brian Dwyer", + "avatar_url": "https://avatars.githubusercontent.com/u/2973273?v=4", + "profile": "http://bdwyertech.net/", + "contributions": [ + "code" + ] + }, + { + "login": "ckilb", + "name": "Christian Kilb", + "avatar_url": "https://avatars.githubusercontent.com/u/7283097?v=4", + "profile": "http://www.cilb.de/", + "contributions": [ + "code" + ] + }, + { + "login": "edwargix", + "name": "David Florness", + "avatar_url": "https://avatars.githubusercontent.com/u/22877007?v=4", + "profile": "https://github.com/edwargix", + "contributions": [ + "doc" + ] + }, + { + "login": "BuckeyeCoder", + "name": "David Walton", + "avatar_url": "https://avatars.githubusercontent.com/u/95933880?v=4", + "profile": "https://github.com/BuckeyeCoder", + "contributions": [ + "code" + ] + }, + { + "login": "Debdut", + "name": "Debdut Karmakar", + "avatar_url": "https://avatars.githubusercontent.com/u/7561070?v=4", + "profile": "https://github.com/Debdut", + "contributions": [ + "code" + ] + }, + { + "login": "gotid", + "name": "Dieter Zhu", + "avatar_url": "https://avatars.githubusercontent.com/u/4010854?v=4", + "profile": "https://github.com/gotid", + "contributions": [ + "code" + ] + }, + { + "login": "Holmqvist1990", + "name": "Fredrik Holmqvist", + "avatar_url": "https://avatars.githubusercontent.com/u/22743750?v=4", + "profile": "https://fredrikholmqvist.com/", + "contributions": [ + "code" + ] + }, + { + "login": "giopalma", + "name": "Giovanni Palma", + "avatar_url": "https://avatars.githubusercontent.com/u/33783684?v=4", + "profile": "https://github.com/giopalma", + "contributions": [ + "code" + ] + }, + { + "login": "Nexus26404", + "name": "Hao", + "avatar_url": "https://avatars.githubusercontent.com/u/83110373?v=4", + "profile": "https://github.com/Nexus26404", + "contributions": [ + "code" + ] + }, + { + "login": "i7tsov", + "name": "Igor Sementsov", + "avatar_url": "https://avatars.githubusercontent.com/u/44977153?v=4", + "profile": "https://github.com/i7tsov", + "contributions": [ + "code" + ] + }, + { + "login": "derhasi", + "name": "Johannes Haseitl", + "avatar_url": "https://avatars.githubusercontent.com/u/118502?v=4", + "profile": "https://github.com/derhasi", + "contributions": [ + "code" + ] + }, + { + "login": "joshbuddy", + "name": "Joshua Hull", + "avatar_url": "https://avatars.githubusercontent.com/u/8898?v=4", + "profile": "https://github.com/joshbuddy", + "contributions": [ + "code" + ] + }, + { + "login": "joshm998", + "name": "Joshua Mangiola", + "avatar_url": "https://avatars.githubusercontent.com/u/1779737?v=4", + "profile": "https://github.com/joshm998", + "contributions": [ + "doc" + ] + }, + { + "login": "prurigro", + "name": "Kevin MacMartin", + "avatar_url": "https://avatars.githubusercontent.com/u/1149238?v=4", + "profile": "https://github.com/prurigro", + "contributions": [ + "code" + ] + }, + { + "login": "liang-li-dev", + "name": "Liang Li", + "avatar_url": "https://avatars.githubusercontent.com/u/112530363?v=4", + "profile": "https://github.com/liang-li-dev", + "contributions": [ + "code" + ] + }, + { + "login": "marvinhosea", + "name": "Marvin Collins Hosea", + "avatar_url": "https://avatars.githubusercontent.com/u/7722584?v=4", + "profile": "https://appslab.co.ke/", + "contributions": [ + "code" + ] + }, + { + "login": "mholt", + "name": "Matt Holt", + "avatar_url": "https://avatars.githubusercontent.com/u/1128849?v=4", + "profile": "https://matt.life/", + "contributions": [ + "code" + ] + }, + { + "login": "Gurkengewuerz", + "name": "Niklas", + "avatar_url": "https://avatars.githubusercontent.com/u/10966337?v=4", + "profile": "https://github.com/Gurkengewuerz", + "contributions": [ + "code" + ] + }, + { + "login": "Xhofe", + "name": "Andy Hsu", + "avatar_url": "https://avatars.githubusercontent.com/u/36558727?v=4", + "profile": "https://github.com/Xhofe", + "contributions": [ + "code" + ] + }, + { + "login": "NullCode1337", + "name": "NullCode", + "avatar_url": "https://avatars.githubusercontent.com/u/70959549?v=4", + "profile": "https://github.com/NullCode1337", + "contributions": [ + "code" + ] + }, + { + "login": "oSethoum", + "name": "Oussama Sethoum", + "avatar_url": "https://avatars.githubusercontent.com/u/88779394?v=4", + "profile": "https://github.com/oSethoum", + "contributions": [ + "code" + ] + }, + { + "login": "ParkourLiu", + "name": "ParkourLiu", + "avatar_url": "https://avatars.githubusercontent.com/u/33681340?v=4", + "profile": "https://github.com/ParkourLiu", + "contributions": [ + "code" + ] + }, + { + "login": "zllovesuki", + "name": "Rachel Chen", + "avatar_url": "https://avatars.githubusercontent.com/u/298453?v=4", + "profile": "https://github.com/zllovesuki", + "contributions": [ + "code" + ] + }, + { + "login": "rnice01", + "name": "Rob Nice", + "avatar_url": "https://avatars.githubusercontent.com/u/11394384?v=4", + "profile": "https://github.com/rnice01", + "contributions": [ + "code" + ] + }, + { + "login": "RyoTagami", + "name": "Ryo TAGAMI", + "avatar_url": "https://avatars.githubusercontent.com/u/9672589?v=4", + "profile": "https://github.com/RyoTagami", + "contributions": [ + "code" + ] + }, + { + "login": "SamHennessy", + "name": "Sam Hennessy", + "avatar_url": "https://avatars.githubusercontent.com/u/119867?v=4", + "profile": "https://github.com/SamHennessy", + "contributions": [ + "code" + ] + }, + { + "login": "AlbinoDrought", + "name": "Sean", + "avatar_url": "https://avatars.githubusercontent.com/u/852873?v=4", + "profile": "https://albinodrought.com/", + "contributions": [ + "code" + ] + }, + { + "login": "sgosiaco", + "name": "Sean Gosiaco", + "avatar_url": "https://avatars.githubusercontent.com/u/212341?v=4", + "profile": "https://github.com/sgosiaco", + "contributions": [ + "code" + ] + }, + { + "login": "SheetJSDev", + "name": "Eric P Sheets", + "avatar_url": "https://avatars.githubusercontent.com/u/6070939?v=4", + "profile": "https://sheetjs.com/", + "contributions": [ + "code" + ] + }, + { + "login": "SupianIDz", + "name": "Supian M", + "avatar_url": "https://avatars.githubusercontent.com/u/37969970?v=4", + "profile": "https://www.octopy.dev/", + "contributions": [ + "code" + ] + }, + { + "login": "Watson-Sei", + "name": "Watson-Sei", + "avatar_url": "https://avatars.githubusercontent.com/u/55475145?v=4", + "profile": "https://github.com/Watson-Sei", + "contributions": [ + "code", + "doc" + ] + }, + { + "login": "shinshin86", + "name": "Yuki Shindo", + "avatar_url": "https://avatars.githubusercontent.com/u/8216064?v=4", + "profile": "https://shinshin86.com/", + "contributions": [ + "code" + ] + }, + { + "login": "cuigege", + "name": "cuigege", + "avatar_url": "https://avatars.githubusercontent.com/u/26080122?v=4", + "profile": "https://github.com/cuigege", + "contributions": [ + "code" + ] + }, + { + "login": "cybertramp", + "name": "cybertramp", + "avatar_url": "https://avatars.githubusercontent.com/u/30935096?v=4", + "profile": "https://cybertramp.net/", + "contributions": [ + "code" + ] + }, + { + "login": "h8gi", + "name": "hiroki yagi", + "avatar_url": "https://avatars.githubusercontent.com/u/10811057?v=4", + "profile": "https://github.com/h8gi", + "contributions": [ + "code" + ] + }, + { + "login": "imgbot[bot]", + "name": "imgbot[bot]", + "avatar_url": "https://avatars.githubusercontent.com/in/4706?v=4", + "profile": "https://github.com/apps/imgbot", + "contributions": [ + "code" + ] + }, + { + "login": "tong3jie", + "name": "juju", + "avatar_url": "https://avatars.githubusercontent.com/u/14191774?v=4", + "profile": "https://github.com/tong3jie", + "contributions": [ + "code" + ] + }, + { + "login": "meatherly", + "name": "Michael Eatherly", + "avatar_url": "https://avatars.githubusercontent.com/u/1327960?v=4", + "profile": "http://meatherly.github.io/", + "contributions": [ + "code" + ] + }, + { + "login": "tk103331", + "name": "tk", + "avatar_url": "https://avatars.githubusercontent.com/u/4404609?v=4", + "profile": "https://github.com/tk103331", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 8, diff --git a/v3/tasks/contribs/main.go b/v3/tasks/contribs/main.go new file mode 100644 index 000000000..64fba1968 --- /dev/null +++ b/v3/tasks/contribs/main.go @@ -0,0 +1,38 @@ +package main + +import ( + "log" + "os/exec" + "strings" +) + +func main() { + cmd := exec.Command("npx", "all-contributors-cli", "check") + //cmd.Stdin = strings.NewReader("some input") + var out strings.Builder + cmd.Stdout = &out + err := cmd.Run() + missingSplit := strings.Split(out.String(), "\n") + if len(missingSplit) < 2 { + log.Fatal(out.String()) + } + missing := missingSplit[1] + missing = strings.TrimSpace(missing) + // Split on comma + for _, contrib := range strings.Split(missing, ",") { + // Trim whitespace + contrib = strings.TrimSpace(contrib) + if contrib == "dependabot[bot]" || contrib == "" { + continue + } + // Add contributor + cmd := exec.Command("npx", "all-contributors-cli", "add", contrib, "code") + err := cmd.Run() + if err != nil { + log.Fatal(err) + } + } + if err != nil { + log.Fatal(err) + } +}