Skip to content

Commit 634753c

Browse files
authored
Merge pull request #66 from kentaro-m/add-support-github-actions
Add Dockerfile to support for GitHub Actions
2 parents 7334ee0 + ca7f112 commit 634753c

File tree

4 files changed

+43
-9
lines changed

4 files changed

+43
-9
lines changed

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:10
2+
3+
LABEL "com.github.actions.name"="Auto Assign"
4+
LABEL "com.github.actions.description"="Add reviewers/assignees to pull requests when pull requests are opened."
5+
LABEL "com.github.actions.icon"="user-plus"
6+
LABEL "com.github.actions.color"="blue"
7+
8+
LABEL "repository"="https://github.com/kentaro-m/auto-assign"
9+
LABEL "homepage"="https://probot.github.io/apps/auto-assign/"
10+
LABEL "maintainer"="Kentaro Matsushita"
11+
12+
ENV PATH=$PATH:/app/node_modules/.bin
13+
WORKDIR /app
14+
COPY . .
15+
RUN npm install --production && npm run build
16+
17+
ENTRYPOINT ["probot", "receive"]
18+
CMD ["/app/lib/index.js"]

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,21 @@ WEBHOOK_SECRET=development
9595
PRIVATE_KEY_PATH=.data/private-key.pem
9696
```
9797

98+
### GitHub Actions
99+
Add `.github/main.workflow` to the repository you want to run the app.
100+
101+
```hcl
102+
workflow "Add reviewers/assignees to Pull Requests" {
103+
on = "pull_request"
104+
resolves = "Auto Assign"
105+
}
106+
107+
action "Auto Assign" {
108+
uses = "kentaro-m/auto-assign@master"
109+
secrets = ["GITHUB_TOKEN"]
110+
}
111+
```
112+
98113
## Contributing
99114

100115
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.

package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"ts-jest": "^24.0.0",
3838
"tslint": "^5.11.0",
3939
"tslint-config-prettier": "^1.13.0",
40-
"tslint-config-standard": "^7.1.0"
40+
"tslint-config-standard": "^7.1.0",
41+
"tslint-eslint-rules": "^5.4.0"
4142
},
4243
"engines": {
4344
"node": ">= 8.3.0"

0 commit comments

Comments
 (0)