question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I am unable to get anything in Notable Contribution.

See original GitHub issue

pic

Workflow:


name: Metrics
on:
  # Schedule updates (each hour)
  
  schedule: [{cron: "0 * * * *"}]
  # Lines below let you run workflow manually and on each commit
  workflow_dispatch:
  push: {branches: ["master", "main"]}
jobs:
  github-metrics:
    runs-on: ubuntu-latest
    steps:
      - name: display_information_1
        uses: lowlighter/metrics@latest
        with:
          # Your GitHub token
          token: ${{ secrets.METRICS_TOKEN }}
          user: ninjakx
          # template
          template: classic
          # base
          base: activity, community, repositories, metadata
          # timezone
          config_timezone: Asia/Kolkata
          # filename
          filename: github-metrics.svg
          # programming language
          plugin_languages: yes
          plugin_languages_ignored: html, css
          plugin_languages_skipped: my-testing-repo
          plugin_languages_details: percentage
          plugin_languages_threshold: 2%
          plugin_languages_limit: 15
          plugin_languages_sections: most-used, recently-used
          plugin_languages_indepth: no
          plugin_languages_recent_load: 500
          plugin_languages_recent_days: 7
          commits_authoring: ninjakx
          # coding habits
          plugin_habits: yes
          plugin_habits_from: 200
          plugin_habits_facts: yes
          plugin_habits_charts: yes
          plugin_habits_trim: yes
          # line of code changed
          plugin_lines: yes
          # topics
          plugin_topics: yes
          plugin_topics_sort: stars
          plugin_topics_mode: mastered
          plugin_topics_limit: 0
          # recent activity
          plugin_activity: yes
          plugin_activity_limit: 5
          plugin_activity_days: 14
          plugin_activity_filter: all
          # notable contrib
          plugin_notable: yes
          plugin_notable_filter: stars:>500
          plugin_notable_repositories: no

      #achievements
      - name: display_achievement
        uses: lowlighter/metrics@latest
        with:
          filename: achievements-metrics.svg
          token: ${{ secrets.METRICS_TOKEN }}
          base: ""
          plugin_achievements: yes
          plugin_achievements_display: compact
          config_display: large
          
      # notable contrib
      - name: display_contribution
        uses: lowlighter/metrics@latest
        with:
          filename: contribution.svg
          token: ${{ secrets.METRICS_TOKEN }}
          base: metadata
          repositories_batch: 5
          plugin_notable: yes
          config_padding: 0, 8 + 1%

Token Settings:

public_repo, read:org, read:user

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lowlightercommented, Sep 3, 2021

So I checked but it doesn’t seem possible to get past one year without using execessively expansive API requests.

I also tried to use the commitContributionsByRepository which seemed promising, but it’s limited to 100 repositories without any cursor.

query NotableContributions {
  user(login: "ninjakx") {
    contributionsCollection {
      totalRepositoriesWithContributedCommits
      commitContributionsByRepository(maxRepositories: 100) {
        repository {
          nameWithOwner
        }
      }
    }
  }
}

And I couldn’t found any mention the repository you mentioned in it though, the only one reported were:

  • ninjakx/Coding-practice
  • ninjakx/ninjakx
  • ninjakx/youtube-video2ppt
  • ninjakx/covid_dash
  • ninjakx/Restaurant-billing-app

So current implementation seems to be better given that.

I don’t think it’s really fixable (it’s more an API limitation), #516 will display an empty message to say that no recent contribution in organization were found instead of displaying en empty section like you got, it’ll at least be more explicit 🙂

1reaction
lowlightercommented, Aug 28, 2021

@ninjakx Yeah I think it’s highly probable that only last year is taken in account.

Will check if it’s possible to edit the GraphQL query to load all years

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Am I Unable to Concentrate? - Healthline
A number of medical conditions may contribute to or cause an inability to ... or having difficulty remembering where things are; inability to...
Read more >
Adjustment disorders - Symptoms and causes - Mayo Clinic
Adjustment disorders are stress-related conditions where you feel overwhelmed and have a hard time adjusting to a stressful event or change.
Read more >
'I Don't Care About Anything': Why You Might Feel This Way
If you feel like you don't care about anything, it can be a sign that something is wrong. Learn what causes this feeling...
Read more >
Strategies for Learning from Failure - Harvard Business Review
The wisdom of learning from failure is incontrovertible. Yet organizations that do it well are extraordinarily rare. This gap is not due to...
Read more >
Why You Procrastinate (It Has Nothing to Do With Self-Control)
“It doesn't make sense to do something you know is going to have ... because of an inability to manage negative moods around...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found