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

Gitlab pr bot #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions pr-review-bot-gitlab/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
# .env
5 changes: 5 additions & 0 deletions pr-review-bot-gitlab/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.env
dist
!*.d.ts
.DS_Store
3 changes: 3 additions & 0 deletions pr-review-bot-gitlab/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
node_modules
6 changes: 6 additions & 0 deletions pr-review-bot-gitlab/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
10 changes: 10 additions & 0 deletions pr-review-bot-gitlab/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM --platform=linux/amd64 node:20-alpine3.17
RUN apk add --no-cache git
RUN mkdir -p /usr/app
WORKDIR /usr/app
ENV NODE_OPTIONS=--max_old_space_size=16384
EXPOSE 3000
COPY package.json .
RUN npm i --quiet
COPY . .
CMD ["npm", "start"]
18 changes: 18 additions & 0 deletions pr-review-bot-gitlab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Greiptile GitLab PR bot



## Set up
- Index your repo at greptile
- Set up personal access token for GitLab if you have not
- Configure GitLab Webhook URL
In you project, click Settings -> Webhooks -> Add new webhook
Add the webhook URL: abc

- Edit the webhook, include your personal access token in Secret token part

## Start the project
```
docker build -t pr-bot . && docker run -p 3000:3000 pr-bot
```

Loading