diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a6c41b4a7..fd33301d8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,16 +12,16 @@ Please note that this project is released with a [Contributor Code of Conduct][c ## Submitting a pull request 1. [Fork][fork] and clone the repository -1. Configure and install the dependencies: `npm install` -1. Make sure the tests pass on your machine: `npm test`, note: these tests also apply the linter, so no need to lint seperately +1. Configure and install the dependencies: `yarn install` +1. Make sure the tests pass on your machine: `yarn test`, note: these tests also apply the linter, so no need to lint seperately 1. Create a new branch: `git checkout -b my-branch-name` -1. Make your change, add tests, and make sure the tests still pass +1. Make your change, add tests, build with `yarn prettier && yarn lint --fix && yarn build` and make sure the tests still pass 1. Push to your fork and [submit a pull request][pr] 1. Give yourself a high five, and wait for your pull request to be reviewed and merged. Here are a few things you can do that will increase the likelihood of your pull request being accepted: -- Follow the [style guide][style] which is using standard. Any linting errors should be shown when running `npm test` +- Follow the [style guide][style] which is using standard. Any linting errors should be shown when running `yarn test` - Write and update tests. - Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests. - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). diff --git a/dist/index.js b/dist/index.js index 69cb54a37..89b28a994 100644 --- a/dist/index.js +++ b/dist/index.js @@ -41,6 +41,7 @@ module.exports = (app, { getRouter }) => { 'pull_request.opened', 'pull_request.reopened', 'pull_request.synchronize', + 'pull_request.edited', ], async (context) => { const { disableAutolabeler } = getInput() diff --git a/index.js b/index.js index 75813873e..3ffe0aa9a 100644 --- a/index.js +++ b/index.js @@ -27,6 +27,7 @@ module.exports = (app, { getRouter }) => { 'pull_request.opened', 'pull_request.reopened', 'pull_request.synchronize', + 'pull_request.edited', ], async (context) => { const { disableAutolabeler } = getInput()