Issue bot for the GTA V Chaos Mod
Handles posting issue comments to inform users of when their effect / feature / bug report might have an issue, or does not follow a template. ex:
- Framework
- Testing
npm i
to get the dependencies installed- Run the local build with
npm run serve
! (alternativelyserve:watch
will run with nodemon)
You will need a properly configured IAM user, role, and policy in order to deploy.
- Generate a valid IAM policy with
npm run generate-policy -- --stage={{STAGE}}
where{{STAGE}}
is your deployment stage, typicallyproduction
ordev
(defaultdev
). Configure this as a new IAM policy. - Create a role for your deployment stage, that matches your
AWS_ROLE
entry in the.env
, plus prefix. For example, if you setAWS_ROLE=chaos-bot
, for production, create achaos-bot-production
role - Repeat step 2 for your
AWS_PROFILE
, creating an IAM user with your chosen profile, plus suffix. I.e.,AWS_PROFILE=chaos
.would bechaos-production
for production deployments. Remember to save your access key and secret to your~/.aws/credentials
file. - Attach your IAM policy from step 1 to your role and your profile if not already done.
- Set your profile, role, aws id, and github token in a
.env
file (note:role
is minus the environment. See step 2 of IAM setup) - Run
npm run deploy
to deploy to a dev stage, ornpm run deploy:production
to deploy to production.
- Personal preference. I find Jest clunky in comparison, but it has its merits. Feel free to swap it out.
- I like clean code, and personally it forces me to write more readable code. The style is automagically enforced by Prettier anyways.