> [English](https://github.com/bakhirev/assayo) | [Español](https://github.com/bakhirev/assayo/blob/main/documents/ES.md) | [中文](https://github.com/bakhirev/assayo/blob/main/documents/ZH.md) | [Français](https://github.com/bakhirev/assayo/blob/main/documents/FR.md) | [Deutsch](https://github.com/bakhirev/assayo/blob/main/documents/DE.md) | [Português](https://github.com/bakhirev/assayo/blob/main/documents/PT.md) | __[日本語](https://github.com/bakhirev/assayo/blob/main/documents/JA.md)__ | [Русский](https://github.com/bakhirev/assayo/blob/main/documents/RU.md) > [主な文書はロシア語です。](https://github.com/bakhirev/assayo/blob/main/documents/RU.md) これは翻訳です。 エラーが含まれている可能性があります。 あなたがネイティブスピーカーであれば、この翻訳を改善するのに役立ちます。 ありがとう! # [Assayo](https://assayo.online/?ref=github&lang=ja) データの可視化とGitレポジトリの分析 ([デモ](https://assayo.online/demo/?ref=github&lang=ja&dump=./test.txt), [install](https://assayo.online/demo/?ref=github)). <a href="http://www.facebook.com/sharer.php?u=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/facebook.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&title=Visualization%20and%20analysis%20of%20git%20repository" target="_blank"><img src="https://assayo.online/assets/seo/social/reddit.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&text=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21&via=&hashtags=IT%2Cgit%2Cstatistics%2Caudit%2Cdata-visualization%2Creport" target="_blank"><img src="https://assayo.online/assets/seo/social/twitter.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/linkedin.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&title=Visualization%20and%20analysis%20of%20git%20repository&caption=Check%20your%20git%20stats%21&tags=IT%2Cgit%2Cstatistics%2Caudit%2Cdata-visualization%2Creport" target="_blank"><img src="https://assayo.online/assets/seo/social/tumblr.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://www.blogger.com/blog-this.g?u=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&n=Visualization%20and%20analysis%20of%20git%20repository&t=Check%20your%20git%20stats%21" target="_blank"><img src="https://assayo.online/assets/seo/social/blogger.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://www.evernote.com/clip.action?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&title=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21" target="_blank"><img src="https://assayo.online/assets/seo/social/evernote.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="http://www.addthis.com/bookmark.php?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/add.this.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://getpocket.com/edit?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/getpocket.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&t=Visualization%20and%20analysis%20of%20git%20repository" target="_blank"><img src="https://assayo.online/assets/seo/social/hacker.news.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://buffer.com/add?text=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21&url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/buffer.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://share.flipboard.com/bookmarklet/popout?v=2&title=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21&url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/flipboard.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="http://www.instapaper.com/edit?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&title=Visualization%20and%20analysis%20of%20git%20repository&description=Check%20your%20git%20stats%21" target="_blank"><img src="https://assayo.online/assets/seo/social/instapaper.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://share.diasporafoundation.org/?title=Visualization%20and%20analysis%20of%20git%20repository&url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/diaspora.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/qzone.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="http://vk.com/share.php?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&title=Visualization%20and%20analysis%20of%20git%20repository&comment=Check%20your%20git%20stats%21" target="_blank"><img src="https://assayo.online/assets/seo/social/vk.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="http://service.weibo.com/share/share.php?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&appkey=&title=Visualization%20and%20analysis%20of%20git%20repository&pic=&ralateUid=" target="_blank"><img src="https://assayo.online/assets/seo/social/weibo.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/ok.ru.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="http://www.douban.com/recommend/?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&title=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21" target="_blank"><img src="https://assayo.online/assets/seo/social/douban.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://www.xing.com/spi/shares/new?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo" target="_blank"><img src="https://assayo.online/assets/seo/social/xing.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="http://widget.renren.com/dialog/share?resourceUrl=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&srcUrl=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&title=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21&description=Check%20your%20git%20stats%21" target="_blank"><img src="https://assayo.online/assets/seo/social/renren.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="threema://compose?text=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21&id=" target="_blank"><img src="https://assayo.online/assets/seo/social/threema.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a><a href="https://lineit.line.me/share/ui?url=https%3A%2F%2Fgithub.com%2Fbakhirev%2Fassayo&text=Visualization%20and%20analysis%20of%20git%20repository%20%3A%20Check%20your%20git%20stats%21" target="_blank"><img src="https://assayo.online/assets/seo/social/line.me.jpg" title="Visualization and analysis of git repository" width="24px" height="24px"/></a> <a href="https://assayo.online/demo/?dump=./test.txt" target="_blank"><img src="https://assayo.online/seo/github/index.png" width="100%" /></a> <a name="link-0"></a> ##### 👨💻 従業員は新しい職場を評価することができます - 働きのペース; - 過労; - 職務範囲; - 新機能とバグの量; - 同僚の仕事スタイル; <a name="link-1"></a> ##### 👨💼 管理者は従業員を評価できます - 無職人の特定; - コードの量を推定する; - 作業速度を確認する; - 行動の異常を発見する; - 週次で作業状況を確認する; <a name="link-2"></a> ##### 👑 アイベンターは製品を評価できます - 製品の価格; - 新機能の価格; - 開発時間; - 改善時間の予測; - 予測価格; <a name="link-3"></a> ### Table of contents - [コミット数を素早く確認するにはどうすればよいでしょうか。](#link-4) - [作者をまとめるにはどうすればいいですか?](#link-5) - [Gitからデータをダウンロードするにはどうすればよろしいでしょうか。](#link-6) - [Дオンラインで見るため](#link-7) - [インターネットなしで見るために](#link-8) - [レポートを表示するにはどうすればよいですか? ](#link-9) - [Online](#link-10) - [Offline](#link-11) - [レポートファイルを再構成する方法は?](#link-12) - [マイクロサービス群のレポートを表示するにはどうすればよいでしょうか。](#link-13) - [自社のブランドカラーでインターフェースをリニュアルカラーに変えるにはどうすればよろしいでしょうか。](#link-14) - [commit文の署名方法は?](#link-15) - [How to add checking for commit message?](#link-16) - [ Use file commit-msg](#link-17) - [ Use package pre-commit](#link-18) - [データの自動収集方法は?](#link-19) - [With backend](#link-20) - [バックエンドなし](#link-21) - [DevOps ](#link-22) - [公開サーバ](#link-23) - [プライベートサーバー](#link-24) - [Dockerイメージの更新](#link-25) - [️ About application](#link-26) - [Architecture](#link-27) - [半年ごとにリリースを行います。次は何でしょうか。](#link-28) - [翻訳を追加または編集するにはどうすればいいでしょうか。](#link-29) - [願い、提案、コメント](#link-30) <a name="link-4"></a> ### 🚀 コミット数を素早く確認するにはどうすればよいでしょうか。 プロジェクトのルートディレクトリで以下のコマンドを実行します: ``` git shortlog -s -n -e ``` <a name="link-5"></a> ### 🎭 作者をまとめるにはどうすればいいですか? プロジェクトのルートディレクトリ内に.mailmapファイルを作成する必要があります。 ファイルの内容の例: ``` Alex B <alex@mail.uk> Alex B <alex@mail.uk> <alex@gov.tk> Alex B <alex@mail.uk> <bakhirev@ya.kz> Alex B <alex@mail.uk> <man64@yahoo.com> ``` このファイルの形式について詳しく読むことができます [ここに](https://git-scm.com/docs/gitmailmap). <a name="link-6"></a> ### 📤 Gitからデータをダウンロードするにはどうすればよろしいでしょうか。 <a name="link-7"></a> #### Дオンラインで見るため プロジェクトのルートディレクトリに次のコマンドを入力します: ``` git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" > log.txt ``` <a name="link-8"></a> #### インターネットなしで見るために ``` git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" | sed -e 's/\\/\\\\/g' | sed -e 's/`/"/g' | sed -e 's/^/report.push(\`/g' | sed 's/$/\`\);/g' | sed 's/\$/_/g' > log.txt ``` Gitはファイルを作成します `log.txt`. このファイルには、レポートを構築するためのデータが含まれています。 インターネットのない形式とインターネットのある形式は、文字列が埋め込まれているという点で異なります。インターネットを持たない形式でファイルを開くと、単に「js」ファイルとして読み込まれます。 `/build/index.html` <a name="link-9"></a> ### 📈 レポートを表示するにはどうすればよいですか? <a name="link-10"></a> #### Online - に切り替える [ウェブサイト](https://assayo.online/) - ボタンを押す “[デモ](https://assayo.online/demo?lang=ru)” - ファイルをドラッグ&ドロップする `log.txt` ブラウザウィンドウで <a name="link-11"></a> #### Offline - このリポジトリをダウンロードする - ファイルをドラッグ&ドロップする `log.txt` フォルダへ `/build` - 実行するには `/build/index.html` - フォルダをドラッグして下さい `/build` 自分のリポジトリーにフォルダを置いてください (それがある場所 `log.txt`). 名前を変更することができます。例えば名前 `/build` を `/report` 重要なのは、ファイル `log.txt` インターネットが利用できない環境で、レポートを表示するために作成されたコマンドである必要があります。 <a name="link-12"></a> ### 🏭 レポートファイルを再構成する方法は? - このリポジトリをダウンロードしてください - 実行するには `npm install` - 実行するには `npm run build-local` - 最新のビルドは、フォルダに含まれるでしょう `/build` <a name="link-13"></a> ### 🗃️ マイクロサービス群のレポートを表示するにはどうすればよいでしょうか。 - マイクロサービスごとにファイルを作成します。 `log.txt` (`log-1.txt`, `log-2.txt`, `log-3.txt` など。) - "インターネット上でレポートを見る方法"を参照してください。最後の手順では、すべてのファイルをブラウザのウィンドウに一度にドラッグ&ドロップします。 - “インターネットなしでレポートを見る方法” を参照してください。第二段階では、マイクロサービスのすべてのファイルをドラッグしてドロップする必要があります。(`log-1.txt`, `log-2.txt`, `log-3.txt` など。) レポートフォルダへ (`/build`). <a name="link-14"></a> ### 🎨 自社のブランドカラーでインターフェースをリニュアルカラーに変えるにはどうすればよろしいでしょうか。 インターフェースのテーマを独自に作成することができます。下記の項目は変更できます。 - **見出し**. それはURLパラメータで指定することができます ```title```. 例えば: ```?title=You Company``` - **CSS スタイル**. そのためにはCSSファイルを用意し、そのアドレスをURLパラメーターに指定する必要があります ```theme```. 例えば: ```?theme=//company.com/some.css```. クラス名をセレクターとして使用することができます。ほとんどの場合、新しいバージョンがリリースされると変更されません - **言語**. URLパラメータに指定することができます ```lang```. 例えば: ```?lang=es``` <a name="link-15"></a> ### 📝 commit文の署名方法は? 練習に従ってください [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/). 例えば: ``` JIRA-1234 feat(profile): Added avatar for user ``` - 発行番号 `(JIRA-1234)` - 仕事の種類 `(feat, fix, style, refactor, test, doc など。)` - 仕事の分野 `(profile - サイトのセクション、ページ、新機能、簡単に)` - ジョブの説明 `(Added avatar for user)` <a name="link-16"></a> ### 👮 How to add checking for commit message? <a name="link-17"></a> #### Use file `commit-msg` 1. Create file `commit-msg` in folder `.git/hooks/` 2. Add this text in file: ``` #!/usr/bin/env bash if ! grep -iqE "(JIRA-[0-9]{1,5})(\s)(feat|fix|docs|style|refactor|test|chore)((\([a-z0-9_-]{1,}\)){0,})(:\s)([a-z]{1,})" "$1"; then echo "Need commit message like: JIRA-12 fix(profile): some text. Read Semantic Commit Messages" >&2 exit 1 fi ``` <a name="link-18"></a> #### Use package [pre-commit](https://www.npmjs.com/package/pre-commit) 1. Add in file `package.json` property `commit-msg`: ``` ... "commit-msg": { "regex": "(JIRA-[0-9]{1,5})(\\s)(feat|fix|docs|style|refactor|test|chore)((\\([a-z0-9_-]{1,}\\)){0,})(:\\s)([a-z]{1,})", "error-message": "Need commit message like: JIRA-12 fix(profile): some text Read Semantic Commit Messages" }, ... ``` 2. Run command `npm install pre-commit` <a name="link-19"></a> ### 📚 データの自動収集方法は? <a name="link-20"></a> #### With backend - use module [Assayo Crawler](https://github.com/bakhirev/assayo-crawler); <a name="link-21"></a> #### バックエンドなし - リポジトリのクローンを作成します。; - フォルダをコピーする `build` 現在のリポジトリから; - オープン `build/index.html` ブラウザでブックマークに追加します。; - にショートカットを追加する `build/assets/ci-cd.sh` 自動起動フォルダーに (Windows); コンピューターを再起動するとき、スクリプトはメインブランチに自動的に挿入されたすべてのデータについての統計を更新します。 <a name="link-22"></a> ### 🛠️ DevOps (CI/CD) <a name="link-23"></a> #### 公開サーバ データをレポートビルド用に公開するファイルをURLで公開することができます。その視覚化は、サイト上で利用可能なツールを使用することで行うことができます。 [assayo](https://assayo.online/). データがある場所のアドレスを、URLパラメータに入力してください。 ```dump```: ``` https://assayo.online/demo/?dump=//you_site.com/some/log.txt ``` <a name="link-24"></a> #### プライベートサーバー - ダウンロード [dockerイメージ](https://hub.docker.com/r/bakhirev/assayo); - ローカルネットワーク内で実行します。; - レポートの表示には、データが置かれている場所のアドレスがURLパラメータに入っていることを指定したウェブインターフェイスを使用します。 ```dump```: ``` http://assayo_url/?dump=//you_url/some/log.txt assayo_url - ポート80でリッスンしているassayoコンテナのURL; you_url - gitのログのコンテナーのURLアドレス; ``` デフォルトではイメージは以下のアドレスで起動します ```http://127.0.0.1:80/```. 問題が解決しない場合は、ポート80が開いているか確認してみてください。 <a name="link-25"></a> #### Dockerイメージの更新 - 次のコマンドを実行します ```npm run build-local``` - 次のコマンドを実行します ```docker build -t assayo .``` - 結果を確認する ```docker run --name assayo -p 80:80 -d assayo```; - 次のコマンドを実行します ```docker tag assayo bakhirev/assayo:latest```; - コンテナイメージをDocker Hubにアップロードする ```docker push bakhirev/assayo:latest```; <a name="link-26"></a> ### 🛠️ ️ About application <a name="link-27"></a> #### 📐 Architecture <img src="https://raw.githubusercontent.com/bakhirev/assayo-crawler/12af4410fc93384cafb108a4429e43f9a874dbaa/schema.svg" width="70%" /> 1. [Reports showcase UI](https://github.com/bakhirev/assayo-showcase) displays a list of available reports. Each report consists of a title, description, and a list of repositories. 2. [Crawler service](https://github.com/bakhirev/assayo-crawler) collects repository logs for the report. 3. [Log visualization UI](https://github.com/bakhirev/assayo) **(you here)** displays report. Needs a log file for work. <a name="link-28"></a> #### 🈯 半年ごとにリリースを行います。次は何でしょうか。 見て! [主なドキュメント](https://github.com/bakhirev/assayo/blob/main/documents/RU.md) <a name="link-29"></a> #### 🗺️ 翻訳を追加または編集するにはどうすればいいでしょうか。 新しい翻訳を追加するか、現在の翻訳を修正するために、以下のセクションでそれを行うことができます: ```ts/translations/```. [取扱説明書](https://github.com/firstcontributions/first-contributions) <a name="link-30"></a> #### 📧 願い、提案、コメント - telegramm [@bakhirev](https://t.me/bakhirev) (優先通信方式) - [alexey-bakhirev@yandex.ru](mailto:alexey-bakhirev@yandex.ru) - ウェブサイト [https://assayo.online/](https://assayo.online/?ref=github&lang=ja) <img src="https://mc.yandex.ru/watch/94903985" style="position:absolute; left:-9999px;" alt="" />