You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-11Lines changed: 22 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,33 @@
1
1
# gitlab2sentry
2
2
3
-
This project aims to automate Sentry project creation. Moreover it aims to create a sentry project for every gitlab team's project.
3
+
Getting a Sentry project for each of your Gitlab repositories is just one MR merge away!
4
4
5
-
The script aims to add sentry for every new project you have created.
5
+
Gitlab2Sentry will create a Sentry project associated to each of your Gitlab repositories using a Merge Request based automated workflow.
6
6
7
+
Any new Gitlab repository you create will be offered a Sentry project if you accept (merge the proposal MR) it with respect to the Gitlab group owning it!
7
8
8
9
## Two-Steps process
9
10
10
-
1. After creating your new project, in your gitlab, ```gitlab2sentry``` will create the first Pull Request. This pull request will contain the creation of the```.sentryclirc``` file. Although, it will not contain the ```DSN``` for this project and no project will be created to ```sentry```
11
+
1. After creating your new project on Gitlab, ```gitlab2sentry``` will create a first Merge Request asking if you want it to create an associated Sentry project for it. This Merge Request will contain the creation of a```.sentryclirc``` file which, if you merge it, will be contributed back the newly created Sentry project ```DSN``` for this project.
11
12
12
-
2.Once the user has merged the first Pull request, ```gitlab2sentry``` will create the second Pull Request. This pull request will update the newly created ```.sentryclirc``` file with the ```DSN``` of the sentry project. Moreover, after the merge of the first Pull Request ```gitlabsentry``` will create a new ```sentry project```, update its rate limit and save the ```DSN``` inside ```.sentryclirc```. Once the user has merged the second pull request everything will be set up.
13
+
2.If you merged the first Merge Request, ```gitlab2sentry``` will create a second one to update the newly created ```.sentryclirc``` file with the ```DSN``` of the sentry project. Moreover, after the merge of the first Merge Request ```gitlabsentry``` will create a new ```sentry project```, update its rate limit and save the ```DSN``` inside ```.sentryclirc```. Once you have merged this second Merge Request everything will be set up!
13
14
14
-
**NOTE**: ```Gitlab2Sentry``` looks only for group projects and searches for PRs having specific keyword inside (check "Configuration" section)
15
+
**NOTE**: ```Gitlab2Sentry``` looks only for group projects and searches for MRs having specific keyword inside (check "Configuration" section)
15
16
16
17
17
18
## Run locally
18
19
19
-
You can install all requirements for this project with
20
+
You can install all requirements for this project with:
20
21
21
-
```
22
+
```bash
22
23
python3 -m venv venv
23
24
pip3 install -r requirements.txt
24
25
source venv/bin/activate
25
26
```
26
27
27
28
After the installation of all requirements you have to:
@@ -41,7 +42,7 @@ We prefer to deploy and manage ```gitlab2sentry``` with ```helm```. Inside ```he
41
42
42
43
You can upgrade your deployment with:
43
44
44
-
```
45
+
```bash
45
46
make upgrade
46
47
```
47
48
@@ -51,10 +52,11 @@ make upgrade
51
52
52
53
1. First of all you have to configure the ```g2s.yaml``` file where everything is configured for the ```gitlab2sentry``` service. Here you can find a description for every field:
53
54
54
-
```
55
+
```yaml
55
56
sentry:
56
57
# Sentry configuration.
57
58
slug: <your sentry organization>
59
+
58
60
gitlab:
59
61
# DSN PR configuration.
60
62
dsn_mr:
@@ -67,6 +69,7 @@ gitlab:
67
69
description: <your description in the DSN PR>
68
70
branch_name: <default dsn branch name>
69
71
title: <default title of the dsn mr>
72
+
70
73
# Sentryclirc PR configuration.
71
74
sentryclirc_mr:
72
75
# Default values for .sentryclirc (1st) pull request configuration.
@@ -79,6 +82,7 @@ gitlab:
79
82
filepath: .sentryclirc
80
83
commit_message: <commit message>
81
84
title: <default title of the sentryclirc mr>
85
+
82
86
# Gitlab configuration.
83
87
config:
84
88
author:
@@ -109,4 +113,11 @@ gitlab:
109
113
110
114
2. If you want to follow the ```helm``` deployment process you will have to fill your details into the ```helm/values-production.yaml``` and ```helm/Chart.yaml```.
111
115
112
-
3. You can update ```REG ?= your-registry``` and ```NS ?= your-namespace``` values inside ```Makefile```.
116
+
3. You can update ```REG ?= your-registry``` and ```NS ?= your-namespace``` values inside ```Makefile```.
117
+
118
+
## Contributions & comments welcomed
119
+
120
+
Numberly decided to Open Source this project because it saves a lot of time internally to all our developers and helped foster the mass adoption of Sentry in all our Tech teams. We hope this project can benefit someone else.
121
+
122
+
Feel free to ask questions, suggest improvements and of course contribute features or fixes you might need!
0 commit comments