diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index f42c4cea..a222a181 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -432,7 +432,7 @@ jobs: user: lowlighter plugins_errors_fatal: yes if: ${{ success() || failure() }} - - name: ✨ Stargazers over last weeks - Using classic charts + - name: ✨ Stargazers - Using classic charts uses: lowlighter/metrics@master with: filename: metrics.plugin.stargazers.svg @@ -444,7 +444,7 @@ jobs: user: lowlighter plugins_errors_fatal: yes if: ${{ success() || failure() }} - - name: ✨ Stargazers over last weeks - Using chartist charts + - name: ✨ Stargazers - Using chartist charts uses: lowlighter/metrics@master with: filename: metrics.plugin.stargazers.chartist.svg @@ -457,7 +457,7 @@ jobs: user: lowlighter plugins_errors_fatal: yes if: ${{ success() || failure() }} - - name: ✨ Stargazers over last weeks - With worldmap + - name: ✨ Stargazers - With worldmap uses: lowlighter/metrics@master with: filename: metrics.plugin.stargazers.worldmap.svg @@ -597,7 +597,7 @@ jobs: user: lowlighter plugins_errors_fatal: yes if: ${{ success() || failure() }} - - name: 👨‍💻 Lines of code changed - Lines of code changed + - name: 👨‍💻 Lines of code changed - Compact display in base plugin uses: lowlighter/metrics@master with: filename: metrics.plugin.lines.svg @@ -609,6 +609,21 @@ jobs: user: lowlighter plugins_errors_fatal: yes if: ${{ success() || failure() }} + - name: 👨‍💻 Lines of code changed - Repositories and diff history + uses: lowlighter/metrics@master + with: + filename: metrics.plugin.lines.history.svg + token: ${{ secrets.METRICS_TOKEN }} + base: "" + plugin_lines: yes + plugin_lines_sections: repositories, history + plugin_lines_repositories_limit: 2 + plugin_lines_history_limit: 1 + output_action: none + delay: 120 + user: lowlighter + plugins_errors_fatal: yes + if: ${{ success() || failure() }} - name: 🧮 Repositories traffic - Repositories traffic uses: lowlighter/metrics@master with: diff --git a/tests/cases/lines.plugin.yml b/tests/cases/lines.plugin.yml index 7d171750..bc13cf0b 100644 --- a/tests/cases/lines.plugin.yml +++ b/tests/cases/lines.plugin.yml @@ -1,4 +1,4 @@ -- name: 👨‍💻 Lines of code changed - Lines of code changed +- name: 👨‍💻 Lines of code changed - Compact display in base plugin uses: lowlighter/metrics@latest with: token: MOCKED_TOKEN @@ -6,3 +6,13 @@ plugin_lines: 'yes' use_mocked_data: 'yes' verify: 'yes' +- name: 👨‍💻 Lines of code changed - Repositories and diff history + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + plugin_lines: 'yes' + plugin_lines_sections: repositories, history + plugin_lines_repositories_limit: 2 + plugin_lines_history_limit: 1 + use_mocked_data: 'yes' + verify: 'yes' diff --git a/tests/cases/stargazers.plugin.yml b/tests/cases/stargazers.plugin.yml index ed869474..f0e669f4 100644 --- a/tests/cases/stargazers.plugin.yml +++ b/tests/cases/stargazers.plugin.yml @@ -1,11 +1,11 @@ -- name: ✨ Stargazers over last weeks - Using classic charts +- name: ✨ Stargazers - Using classic charts uses: lowlighter/metrics@latest with: token: MOCKED_TOKEN plugin_stargazers: 'yes' use_mocked_data: 'yes' verify: 'yes' -- name: ✨ Stargazers over last weeks - Using chartist charts +- name: ✨ Stargazers - Using chartist charts uses: lowlighter/metrics@latest with: token: MOCKED_TOKEN @@ -13,7 +13,7 @@ plugin_stargazers_charts_type: chartist use_mocked_data: 'yes' verify: 'yes' -- name: ✨ Stargazers over last weeks - With worldmap +- name: ✨ Stargazers - With worldmap uses: lowlighter/metrics@latest with: token: MOCKED_TOKEN