NaomiProject / Naomi

The Naomi Project is an open source, technology agnostic platform for developing always-on, voice-controlled applications!
https://projectnaomi.com/
MIT License
267 stars 60 forks source link

Automatic Updating of Contributors Section via GitHub Action #430

Open SagarSharma101 opened 6 days ago

SagarSharma101 commented 6 days ago

I propose implementing a GitHub Action that automatically updates the "Contributors" section in the repository's README or CONTRIBUTORS file. This action would retrieve the latest list of contributors from the GitHub API and ensure the list is always current, minimizing manual maintenance efforts.

Detailed Description

Context

This change is important because maintaining an accurate list of contributors manually can be time-consuming and prone to errors, especially in large projects with frequent contributions. By automating this process, contributors will be consistently recognized for their efforts, enhancing project transparency and encouraging more contributions. Other users will benefit from having an up-to-date list of contributors, fostering a more inclusive and appreciative community.

Possible Implementation

A possible implementation could involve creating a GitHub Action workflow that:

Triggers on a defined schedule (e.g., weekly) or specific events (e.g., after a pull request is merged). Uses the GitHub API to fetch the current contributors. Updates the README or CONTRIBUTORS file with the latest contributor information. Optionally creates a pull request for review before merging changes to the main branch.

Your Environment

Version used: N/A (Feature Request) Environment name and version: N/A Server type and version: N/A Operating System and version: N/A Link to your project: [Your Project Repository URL]

aaronchantrill commented 6 days ago

@SagarSharma101 thank you for taking the time to create this issue.

There already is an update-authors.sh script in the root of Naomi for this purpose. If you want, you can run this program and make a pull request with the updated AUTHORS.md.

Thank you, Aaron

SagarSharma101 commented 5 days ago

@aaronchantrill actually i wanted to update the contributor section in readme of project automatically with help of github actions

image here is an example

aaronchantrill commented 4 days ago

That's interesting. It looks like you've already done it. What is the mechanism? Is this something that would run automatically every time a new pull request is merged?

SagarSharma101 commented 3 days ago

yes its using github action and we can change it whenever new contributor pushes changes to main branch