Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
xiphon
CCS Backend
Commits
036f74cd
Commit
036f74cd
authored
Feb 19, 2019
by
xiphon
Browse files
drop GITLAB_ACCESS_TOKEN requirement
parent
95260c71
Pipeline
#93
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.env.example
View file @
036f74cd
...
...
@@ -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
gitlab/Connection.php
View file @
036f74cd
...
...
@@ -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
}
readme.md
View file @
036f74cd
...
...
@@ -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
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment