CodingTrain / website-archive

Archive of the Coding Train website (first version)
https://codingtrain.github.io/website-archive/
MIT License
5.72k stars 5.66k forks source link

Automating repetitive tasks with GitHub Actions #1894

Open anuraghazra opened 4 years ago

anuraghazra commented 4 years ago

(these are only my ideas)

By considering how powerful GitHub actions are maybe we could automate some tasks like merging community contributions.

Here's how it can be done :-

Step 1

In the PR template we can check to make sure that the issue is about CC. We could test if the contributor checked the [x] is it a community contribution field in the description.

We could also add labels.

Step 2

We can see if the PR passes all other checks with GithubChecksAPI, then we will merge the PR.

After that, automatically appreciate the contributor for his/her contribution.

Step 3

If any of the checks fails then we will ask for manual review.


here's all of the events that github actions supports https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows

GypsyDangerous commented 4 years ago

I really like this idea, the only issue I see is that since the automated system would merge and there wouldn't be a human in the loop, it would possible for contributions that break the code of conduct, like containing vulgar language could get through. contributions like that are rarely submitted so it wouldn't be a big issue, but its something to think about.