code-n-stitch icon indicating copy to clipboard operation
code-n-stitch copied to clipboard

Contributor Action

Open bislara opened this issue 5 years ago • 7 comments

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

All Contributors bot

bislara avatar Sep 28 '20 08:09 bislara

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.

hariom1625 avatar Sep 28 '20 09:09 hariom1625

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 avatar Sep 28 '20 09:09 bislara

@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

allcontributors[bot] avatar Sep 28 '20 09:09 allcontributors[bot]

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 :-)

hariom1625 avatar Sep 28 '20 09:09 hariom1625

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.

bislara avatar Sep 28 '20 10:09 bislara

Don't assign it to me now, once I will figure out how to trigger that task I will make the PR :-)

hariom1625 avatar Sep 29 '20 06:09 hariom1625

Okay cool

bislara avatar Sep 29 '20 07:09 bislara