code-n-stitch
code-n-stitch copied to clipboard
Contributor Action
Description
Add a GitHub Action to add the contributor to the readme by invoking the @all-contributors bot 🤖. Only the new contributors should be added. The contributors should have a code and documentation attribute in the description. After this is done, It should automatically create a pull request for this change.
Technologies and Languages
- GitHub actions
Reference Link
Hey, can you please elaborate on the issue furthermore, because as I can see you already have all-contributors package configured for you in the README.md file.
The list of contributors goes on changing as a new contributor gets added after their PR is merged. I have to update the readme manually, but adding their name, their avatar URL, their list of commits as code and their PR as documentation.
I wanted if we can automate this process. I have installed the @all-contributors bot for this repo but I have to put the below comment on issues or PR to add that particular user in the contributor table in the readme.
@all-contributors please add <username> for <contributions>
So, all I want is once a new contributor's PR is merged, the GitHub bot should comment the above code and then @all-contributors bot will create a PR.
For more details go through the reference link.
@bislara
I could not determine your intention.
Basic usage: @all-contributors please add @someone for code, doc and infra
For other usages see the documentation
Got it, well till now I also haven't automated the process, have been using the same approach. Let me see if I can find a way to automate this manual process :-)
You need some time or should I assign it to you?
Basically, you have to create an action which will comment on a merged PR and the comment should contain the All contributor addition code.
Don't assign it to me now, once I will figure out how to trigger that task I will make the PR :-)
Okay cool