How to get accurate metrics #1102
-
I encounter two weird things in my profile repo. I give name: Metrics
on:
schedule: [{cron: "0 3,15 * * *"}]
workflow_dispatch:
push: {branches: ["master", "main"]}
jobs:
github-metrics:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: lowlighter/metrics@latest
with:
token: ${{ secrets.METRICS_TOKEN }}
# Options
user: CHN-ChenYi
template: classic
base: header, activity, community, repositories, metadata
config_display: large
config_timezone: Asia/Shanghai
repositories: 200
repositories_affiliations: owner, collaborator, organization_member
repositories_forks: true
commits_authoring: [email protected], [email protected]
plugin_languages: yes
plugin_languages_analysis_timeout: 15
plugin_languages_categories: markup, programming
plugin_languages_colors: github, renderscript:#dea584
plugin_languages_details: bytes-size, percentage, lines
plugin_languages_ignored: tcl, vhdl, coq
plugin_languages_aliases: renderscript:Rust
plugin_languages_indepth: yes
plugin_languages_limit: 8
plugin_languages_recent_categories: markup, programming
plugin_languages_recent_days: 180
plugin_languages_sections: most-used, recently-used
plugin_languages_threshold: 0%
plugin_achievements: yes
plugin_achievements_display: detailed
plugin_achievements_secrets: yes
plugin_achievements_threshold: C Edit: I double-checked the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi 👋 ! Concerning the issue that not all of your commits are taken into account, it may be related to #1072 Concerning the As for the inspirer achievement, if it's organization, you'll probably need to extends metrics/source/plugins/achievements/list/users.mjs Lines 202 to 204 in 552c2a2 If you change the above constraints though, some others stats may also be impacted too Hope this helps ! |
Beta Was this translation helpful? Give feedback.
Hi 👋 !
Concerning the issue that not all of your commits are taken into account, it may be related to #1072
Concerning the
commit_authoring
option, if it's signed off in the commit body (which may be the case if using-s
option when commiting), it may be why they aren't displayed. It's planned to be integrated with #857, but it has not been done yet but will eventually be implementedAs for the inspirer achievement, if it's organization, you'll probably need to extends
repositories_affiliations
, this is unlocked based on the repositories fetched by thebase
plugin (data.user.repositories.nodes
):metrics/source/plugins/achievements/list/users.mjs
Lines 202 to 204 in 552c2a2