Skip to content
Snippets Groups Projects
Commit 036f74cd authored by xiphon's avatar xiphon
Browse files

drop GITLAB_ACCESS_TOKEN requirement

parent 95260c71
No related branches found
No related tags found
No related merge requests found
......@@ -45,4 +45,3 @@ RPC_URL=http://127.0.0.1:28080/json_rpc
WALLET_ADDRESS=
GITLAB_URL=https://repo.getmonero.org/api/v4/projects/54
GITLAB_ACCESS_TOKEN=
\ No newline at end of file
......@@ -18,14 +18,14 @@ class Connection
$url = env('GITLAB_URL') . '/merge_requests?scope=all&per_page=50&state='. $state;
$response = $this->client->request('GET', $url, ['headers' => ['Private-Token' => env('GITLAB_ACCESS_TOKEN')]]);
$response = $this->client->request('GET', $url);
return collect(json_decode($response->getBody()));
}
public function getNewFiles($merge_request_iid) {
$url = env('GITLAB_URL') . '/merge_requests/' . $merge_request_iid . '/changes';
$response = $this->client->request('GET', $url, ['headers' => ['Private-Token' => env('GITLAB_ACCESS_TOKEN')]]);
$response = $this->client->request('GET', $url);
$deserialized = collect(json_decode($response->getBody()));
$result = [];
......@@ -39,4 +39,4 @@ class Connection
}
}
\ No newline at end of file
}
......@@ -53,7 +53,6 @@ DB_PASSWORD=<DB_USER_PASSWORD>
RPC_URL=http://127.0.0.1:28080/json_rpc
GITLAB_URL=https://repo.getmonero.org/api/v4/projects/54
GITLAB_ACCESS_TOKEN=<GITLAB_API_KEY>
```
Initialize the system
......@@ -127,4 +126,4 @@ Instead of scheduling a cron job you can run the following commands in no partic
2. Generate static HTML files
```
jekyll build --source /var/www/html/ccs-front --destination /var/www/html/ccs-front/_site
```
\ No newline at end of file
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment