Coder Social home page Coder Social logo

github / contributors Goto Github PK

View Code? Open in Web Editor NEW
81.0 88.0 13.0 318 KB

GitHub Action that given an organization or repository, produces information about the contributors over the specified time period.

Home Page: https://github.blog/2023-10-23-how-to-gain-insight-into-your-project-contributors/

License: MIT License

Dockerfile 2.21% Makefile 1.24% Python 96.55%
actions contributors github-actions ospo python hacktoberfest sponsors

contributors's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contributors's Issues

Rate limiting failure

Might look into opening a PR but it currently will fail and stop running on hitting a rate limit failure and does not create even a partial report.

feature: Allow for a list of repositories

If a user wants a contributor report on 3 repositories and they aren't the only 3 in the organization, They currently need to run the action 3 separate times. This could be fixed by allowing for a comma separated list of repositories to input instead of only taking one.

AttributeError: 'NoneType' object has no attribute 'lower' on sponsor_info

We got this error in the super-linter repo (https://github.com/super-linter/super-linter/actions/runs/6714831338/job/18248627198)

Traceback (most recent call last):
  File "/action/workspace/contributors.py", line 174, in <module>
    main()
  File "/action/workspace/contributors.py", line 23, in main
    ) = env.get_env_vars()
        ^^^^^^^^^^^^^^^^^^
  File "/action/workspace/env.py", line 56, in get_env_vars
    sponsor_info = sponsor_info.lower().strip()
                   ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'

@zkoppert can you kindly have a look? Thanks!

Monthly contributor report

Contributors

  • Date range for contributor list: 2023-10-01 to 2023-10-31
  • Repository: ['github/contributors']
Total Contributors Total Contributions % New Contributors
2 88 100.0%
Username Contribution Count New Contributor Sponsor URL Commits
zkoppert 87 True Sponsor Link https://github.com/github/contributors/commits?author=zkoppert&since=2023-10-01&until=2023-10-31
MikeMcQuaid 1 True Sponsor Link https://github.com/github/contributors/commits?author=MikeMcQuaid&since=2023-10-01&until=2023-10-31

this file was generated by the Contributors GitHub Action

Monthly contributor report

Contributors

  • Date range for contributor list: 2024-05-01 to 2024-05-31
  • Repository: ['github/contributors']
Total Contributors Total Contributions % New Contributors
2 201 0.0%
Username Contribution Count New Contributor Commits
@zkoppert 175 False https://github.com/github/contributors/commits?author=zkoppert&since=2024-05-01&until=2024-05-31
@jmeridth 26 False https://github.com/github/contributors/commits?author=jmeridth&since=2024-05-01&until=2024-05-31

this file was generated by the Contributors GitHub Action

Show the markdown output in the GitHub Action output

Is your feature request related to a problem?

No

Describe the solution you'd like

Utilize the GitHub Actions Job Summary feature we could output the markdown as GitHub friendly markdown in the GitHub Action output.

Describe alternatives you've considered

We currently allow pushing the result to a Discussion or Issue. We definitely need to keep this but we can also output to the GitHub Actions screen

Additional context

No response

Not showing up in contributors

Why are you seeing this issue?

This is a support escalation! You can find out more about expectations on communications and response times in the on-call docs. Thank you for doing your part to keep GitHub customers happy!

Severity

Note, for Sev1 issues always page the team first, using the PagerDuty information in the service catalog and the command .pager trigger <rotation> <reason>. Opening an issue for a Sev2 incident can come later (and can be done by the available Escalation Engineer).

  • sev1 - Engineering must respond, when paged, within their on-call SLO
  • sev2 - Engineering must respond to this issue within one business day
  • sev3 - EPD squad for the team must respond to this issue within one week

Service

contributors

Issue

A clear and concise description of what the issue is.

A customer is not sure why they are not showing up in the contributors.

I had them check the following but I'm not sure what steps to have them try next or what the issue might be.

Top 100 Contributors: The contributors graph only shows the top 100 contributors. If you're not one of the top 100 contributors, you won't appear in the graph.

Commit Branch: Your commits need to be merged into the default branch or the gh-pages branch (if the repository has project sites) to appear in the contributors graph. If all your commits are on non-default branches, they won't be included in the graph.

Email Address: The email address used to author the commits must be connected to your GitHub account. If it's not, your commits won't be linked to your account, and you won't appear in the contributors graph. You can check the email address used for a commit by adding .patch to the end of a commit URL.

Their response to the questions.

Hi Alex,

  1. I have selected the past month in the timeline graph but I still don't show up.

https://github.zendesk.com/attachments/token/BmlUNaBUzbGekV79wOPVtE3xT/?>name=Screen+Recording+2023-11-21+at+13.09.16.mov

  1. My commits are being merged into the master branch

Image

  1. Email address

Image

Customer Impact

  • Zendesk Ticket(s) - 2444619

Customer is not seeing himself show up on the one below. The other 2 he does.

Image

Image

Image

GitHub Product(s) Impacted (check appropriate boxes and provide GHES version if applicable)

  • GitHub.com (including GHEC)
  • GitHub Enterprise Server.
    If GHES, please list the version of GHES the customer is on here:
  • GHAE

To Reproduce

Steps to reproduce the behavior:
N/A

Expected behavior

He wants to see himself as a contributor. In 2 repos he does but 1 he doesn't (see screenshots above).

Screenshots

See above.

Additional context

The customer is unity3d.

cc:
@github/ospo
@product_manager

Support Squad(s): @github/support-squad-

Monthly contributor report

Contributors

  • Date range for contributor list: 2024-04-01 to 2024-04-30
  • Repository: ['github/contributors']
Total Contributors Total Contributions % New Contributors
2 178 0.0%
Username Contribution Count New Contributor Commits
@zkoppert 165 False https://github.com/github/contributors/commits?author=zkoppert&since=2024-04-01&until=2024-04-30
@jmeridth 13 False https://github.com/github/contributors/commits?author=jmeridth&since=2024-04-01&until=2024-04-30

this file was generated by the Contributors GitHub Action

Organization stats fail if any repo is empty

When checking an organization, any empty repo will cause the action to fail. Simply bad timing could mean a user creates a repo as the action is running.

Actual:
Exits with

Expected status_code 200 but got 204
Error getting contributors for repository: foo/bar
No more repositories will be processed. Please delete the (empty?) repository and try again.
204 [No message]

Expected;
Continues, perhaps logging

Error getting contributors for repository: foo/bar. It may be empty.

Monthly contributor report

Contributors

  • Date range for contributor list: 2024-02-01 to 2024-02-29
  • Repository: ['github/contributors']
Total Contributors Total Contributions % New Contributors
2 158 50.0%
Username Contribution Count New Contributor Sponsor URL Commits
zkoppert 157 False Sponsor Link https://github.com/github/contributors/commits?author=zkoppert&since=2024-02-01&until=2024-02-29
ashleywolf 1 True not sponsorable https://github.com/github/contributors/commits?author=ashleywolf&since=2024-02-01&until=2024-02-29

this file was generated by the Contributors GitHub Action

Monthly contributor report

Contributors

  • Date range for contributor list: 2023-09-01 to 2023-09-30
  • Repository: github/contributors
Total Contributors Total Contributions % New Contributors
0 0 0%
Username Contribution Count New Contributor Sponsor URL Commits

this file was generated by the Contributors GitHub Action

AttributeError: 'NoneType' object has no attribute 'lower'

It seems that there is no check on the sponsor info variable

$ ORGANIZATION=scaleway REPOSITORY=scaleway-cli GH_TOKEN=$GITHUB_COM_TOKEN python3 ./contributors.py
Traceback (most recent call last):
  File "/Users/rleone/workspace/contributors/./contributors.py", line 176, in <module>
    main()
  File "/Users/rleone/workspace/contributors/./contributors.py", line 24, in main
    ) = env.get_env_vars()
        ^^^^^^^^^^^^^^^^^^
  File "/Users/rleone/workspace/contributors/env.py", line 56, in get_env_vars
    sponsor_info = sponsor_info.lower().strip()
                   ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'

contributors.md file location

When run as an action, what is the full(er) path to the contributors.md file that needs to get read and added to an Issue?

Add Issue Templates

To simplify user interaction with this repository we want to add GitHub Issue Templates.

  • bug report
  • feature request
  • config
    • link to discussions
    • link to github-ospo repo for overall OSPO GitHub Action issues

Monthly contributor report

Contributors

  • Date range for contributor list: 2024-03-01 to 2024-03-31
  • Repository: ['github/contributors']
Total Contributors Total Contributions % New Contributors
2 164 50.0%
Username Contribution Count New Contributor Commits
@zkoppert 163 False https://github.com/github/contributors/commits?author=zkoppert&since=2024-03-01&until=2024-03-31
@jmeridth 1 True https://github.com/github/contributors/commits?author=jmeridth&since=2024-03-01&until=2024-03-31

this file was generated by the Contributors GitHub Action

Monthly contributor report

Contributors

  • Date range for contributor list: 2024-01-01 to 2024-01-31
  • Repository: ['github/contributors']
Total Contributors Total Contributions % New Contributors
2 153 50.0%
Username Contribution Count New Contributor Sponsor URL Commits
@zkoppert 151 False Sponsor Link https://github.com/github/contributors/commits?author=zkoppert&since=2024-01-01&until=2024-01-31
@jellllly420 2 True not sponsorable https://github.com/github/contributors/commits?author=jellllly420&since=2024-01-01&until=2024-01-31

this file was generated by the Contributors GitHub Action

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.