Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CCS Backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syai
CCS Backend
Commits
036f74cd
Commit
036f74cd
authored
6 years ago
by
xiphon
Browse files
Options
Downloads
Patches
Plain Diff
drop GITLAB_ACCESS_TOKEN requirement
parent
95260c71
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.example
+0
-1
0 additions, 1 deletion
.env.example
gitlab/Connection.php
+3
-3
3 additions, 3 deletions
gitlab/Connection.php
readme.md
+1
-2
1 addition, 2 deletions
readme.md
with
4 additions
and
6 deletions
.env.example
+
0
−
1
View file @
036f74cd
...
@@ -45,4 +45,3 @@ RPC_URL=http://127.0.0.1:28080/json_rpc
...
@@ -45,4 +45,3 @@ RPC_URL=http://127.0.0.1:28080/json_rpc
WALLET_ADDRESS=
WALLET_ADDRESS=
GITLAB_URL=https://repo.getmonero.org/api/v4/projects/54
GITLAB_URL=https://repo.getmonero.org/api/v4/projects/54
GITLAB_ACCESS_TOKEN=
\ No newline at end of file
This diff is collapsed.
Click to expand it.
gitlab/Connection.php
+
3
−
3
View file @
036f74cd
...
@@ -18,14 +18,14 @@ class Connection
...
@@ -18,14 +18,14 @@ class Connection
$url
=
env
(
'GITLAB_URL'
)
.
'/merge_requests?scope=all&per_page=50&state='
.
$state
;
$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
()));
return
collect
(
json_decode
(
$response
->
getBody
()));
}
}
public
function
getNewFiles
(
$merge_request_iid
)
{
public
function
getNewFiles
(
$merge_request_iid
)
{
$url
=
env
(
'GITLAB_URL'
)
.
'/merge_requests/'
.
$merge_request_iid
.
'/changes'
;
$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
()));
$deserialized
=
collect
(
json_decode
(
$response
->
getBody
()));
$result
=
[];
$result
=
[];
...
@@ -39,4 +39,4 @@ class Connection
...
@@ -39,4 +39,4 @@ class Connection
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
readme.md
+
1
−
2
View file @
036f74cd
...
@@ -53,7 +53,6 @@ DB_PASSWORD=<DB_USER_PASSWORD>
...
@@ -53,7 +53,6 @@ DB_PASSWORD=<DB_USER_PASSWORD>
RPC_URL=http://127.0.0.1:28080/json_rpc
RPC_URL=http://127.0.0.1:28080/json_rpc
GITLAB_URL=https://repo.getmonero.org/api/v4/projects/54
GITLAB_URL=https://repo.getmonero.org/api/v4/projects/54
GITLAB_ACCESS_TOKEN=<GITLAB_API_KEY>
```
```
Initialize the system
Initialize the system
...
@@ -127,4 +126,4 @@ Instead of scheduling a cron job you can run the following commands in no partic
...
@@ -127,4 +126,4 @@ Instead of scheduling a cron job you can run the following commands in no partic
2.
Generate static HTML files
2.
Generate static HTML files
```
```
jekyll build --source /var/www/html/ccs-front --destination /var/www/html/ccs-front/_site
jekyll build --source /var/www/html/ccs-front --destination /var/www/html/ccs-front/_site
```
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment