Skip to content

Commit

Permalink
Merge pull request #66 from kentaro-m/add-support-github-actions
Browse files Browse the repository at this point in the history
Add Dockerfile to support for GitHub Actions
  • Loading branch information
kentaro-m authored Feb 23, 2019
2 parents 7334ee0 + ca7f112 commit 634753c
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:10

LABEL "com.github.actions.name"="Auto Assign"
LABEL "com.github.actions.description"="Add reviewers/assignees to pull requests when pull requests are opened."
LABEL "com.github.actions.icon"="user-plus"
LABEL "com.github.actions.color"="blue"

LABEL "repository"="https://github.com/kentaro-m/auto-assign"
LABEL "homepage"="https://probot.github.io/apps/auto-assign/"
LABEL "maintainer"="Kentaro Matsushita"

ENV PATH=$PATH:/app/node_modules/.bin
WORKDIR /app
COPY . .
RUN npm install --production && npm run build

ENTRYPOINT ["probot", "receive"]
CMD ["/app/lib/index.js"]
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,21 @@ WEBHOOK_SECRET=development
PRIVATE_KEY_PATH=.data/private-key.pem
```

### GitHub Actions
Add `.github/main.workflow` to the repository you want to run the app.

```hcl
workflow "Add reviewers/assignees to Pull Requests" {
on = "pull_request"
resolves = "Auto Assign"
}
action "Auto Assign" {
uses = "kentaro-m/auto-assign@master"
secrets = ["GITHUB_TOKEN"]
}
```

## Contributing

If you have suggestions for how `auto-assign` could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"ts-jest": "^24.0.0",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.13.0",
"tslint-config-standard": "^7.1.0"
"tslint-config-standard": "^7.1.0",
"tslint-eslint-rules": "^5.4.0"
},
"engines": {
"node": ">= 8.3.0"
Expand Down

0 comments on commit 634753c

Please sign in to comment.