A Github Action is a feature where you can kickoff an action whenever an event happens in a Github repository. For example, you can set up an action that will send a message in Discord to someone whenever a new Pull Request is made, or run tests on a code whenever someone pushes to a repo.
For this repository, most PR's come from someone adding their bitmoji by adding a name.json file to the /bitmojis directory. I think it would be awesome if we could automatically label those PR's with a Github label called new-bitmoji (or something).
Thankfully, Github has an example Action that does this: https://github.com/actions/labeler
So, someone would have to do this:
- Fork this repository
- Using the example in the
actions/labeler repo linked above, add a "workflow" (e.g. .github/workflows/labeler.yml) to your forked repository.
- (optional) Test it in your forked repo. On github, create a new file in
/bitmojis, and choose "create a pull request" when prompted (instead of merging directly to master). Hopefully, when you make the PR, your Github Action/workflow should have been kicked off, and a label should be added to that PR
- Once it looks good on your repo, send a PR from your forked repo to this repo (
os-ucsd/bitmoji).
- We can merge it in, and it should work out! 🎉
If this is confusing at all, or if you get stuck or need to debug with someone, feel free to comment below/reach out to me on discord!
A Github Action is a feature where you can kickoff an action whenever an event happens in a Github repository. For example, you can set up an action that will send a message in Discord to someone whenever a new Pull Request is made, or run tests on a code whenever someone pushes to a repo.
For this repository, most PR's come from someone adding their bitmoji by adding a
name.jsonfile to the/bitmojisdirectory. I think it would be awesome if we could automatically label those PR's with a Github label callednew-bitmoji(or something).Thankfully, Github has an example Action that does this: https://github.com/actions/labeler
So, someone would have to do this:
actions/labelerrepo linked above, add a "workflow" (e.g..github/workflows/labeler.yml) to your forked repository./bitmojis, and choose "create a pull request" when prompted (instead of merging directly to master). Hopefully, when you make the PR, your Github Action/workflow should have been kicked off, and a label should be added to that PRos-ucsd/bitmoji).If this is confusing at all, or if you get stuck or need to debug with someone, feel free to comment below/reach out to me on discord!