Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pullapprove config file #8

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .pullapprove.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 3

# The following line breaks the yml - 404 page not found error
# extends: https://api.github.com/repos/example/pullapprove-config/contents/.pullapprove.yml

# If this conditions are not met, it will throw the 'unmet_status'.
pullapprove_conditions:
- condition: "'*travis*' in statuses.successful"
unmet_status: failure
explanation: "Travis CI tests must pass before review starts"

notifications:
- when: pull_request.opened
comment: |
Please @lauraclarke @mcourtot @clairerye assess this PR and contact the proper people.
- when: pull_request.opened
if: "base.ref != 'dev'"
comment: |
@{{ author }}, please make sure the PR was created against the 'dev' branch. No PR must be merged directly into
master unless specified by the admin of the repository.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ ADD src ./src
COPY package*.json ./

RUN npm install
CMD ["node", "./src/server.js"]

CMD ["tail", "-f", "./src/app.js"]