Skip to content

Commit 3b97105

Browse files
authored
Merge pull request #1 from numberly/rework_readme
readme: rewording and rework proposal
2 parents 6de429a + c9b6267 commit 3b97105

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

README.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
# gitlab2sentry
22

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!
44

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

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!
78

89
## Two-Steps process
910

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

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!
1314

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)
1516

1617

1718
## Run locally
1819

19-
You can install all requirements for this project with
20+
You can install all requirements for this project with:
2021

21-
```
22+
```bash
2223
python3 -m venv venv
2324
pip3 install -r requirements.txt
2425
source venv/bin/activate
2526
```
2627

2728
After the installation of all requirements you have to:
2829

29-
```
30+
```bash
3031
export SENTRY_URL=<your sentry's url>
3132
export SENTRY_TOKEN=<your sentry token>
3233
export SENTRY_ENV=<your environment - default production>
@@ -41,7 +42,7 @@ We prefer to deploy and manage ```gitlab2sentry``` with ```helm```. Inside ```he
4142
4243
You can upgrade your deployment with:
4344
44-
```
45+
```bash
4546
make upgrade
4647
```
4748
@@ -51,10 +52,11 @@ make upgrade
5152
5253
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:
5354
54-
```
55+
```yaml
5556
sentry:
5657
# Sentry configuration.
5758
slug: <your sentry organization>
59+
5860
gitlab:
5961
# DSN PR configuration.
6062
dsn_mr:
@@ -67,6 +69,7 @@ gitlab:
6769
description: <your description in the DSN PR>
6870
branch_name: <default dsn branch name>
6971
title: <default title of the dsn mr>
72+
7073
# Sentryclirc PR configuration.
7174
sentryclirc_mr:
7275
# Default values for .sentryclirc (1st) pull request configuration.
@@ -79,6 +82,7 @@ gitlab:
7982
filepath: .sentryclirc
8083
commit_message: <commit message>
8184
title: <default title of the sentryclirc mr>
85+
8286
# Gitlab configuration.
8387
config:
8488
author:
@@ -109,4 +113,11 @@ gitlab:
109113
110114
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```.
111115
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!
123+

0 commit comments

Comments
 (0)