Skip to content

Commit a1cc5c2

Browse files
committed
owners
1 parent e32c2f3 commit a1cc5c2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @abmmhasan

bash/owners.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
if ! test -d "./.git"; then
4+
echo "Error: Not a git repository!" >&2
5+
exit 1
6+
fi
7+
8+
# git fame owner generator
9+
for f in $(git ls-files); do
10+
# filename
11+
echo -n "$f "
12+
# author emails if loc distribution >= 30%
13+
git fame -esnwMC --incl "$f" | tr '/' '|' \
14+
| awk -F '|' '(NR>6 && $6>=30) {print $2}' \
15+
| xargs echo
16+
done

0 commit comments

Comments
 (0)