Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-api
Commits
7287b8f7
Commit
7287b8f7
authored
Nov 04, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event_name
parent
e9815c4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pipeline.js
app/controller/pipeline.js
+3
-3
PipeLine.js
app/model/mongo/qa_api/PipeLine.js
+1
-1
No files found.
app/controller/pipeline.js
View file @
7287b8f7
...
@@ -54,9 +54,9 @@ const webhooks = async function (ctx) {
...
@@ -54,9 +54,9 @@ const webhooks = async function (ctx) {
logger
.
info
(
'
webhooks
'
,
req
)
logger
.
info
(
'
webhooks
'
,
req
)
// user_add_to_team之类的操作
// user_add_to_team之类的操作
if
(
req
.
e
n
ent_name
!==
'
push
'
)
{
if
(
req
.
e
v
ent_name
!==
'
push
'
)
{
logger
.
info
(
`e
nent_name 是
${
req
.
en
ent_name
}
`
)
logger
.
info
(
`e
vent_name 是
${
req
.
ev
ent_name
}
`
)
ctx
.
body
=
ctx
.
ok
(
`e
nent_name 是
${
req
.
en
ent_name
}
`
)
ctx
.
body
=
ctx
.
ok
(
`e
vent_name 是
${
req
.
ev
ent_name
}
`
)
return
return
}
}
...
...
app/model/mongo/qa_api/PipeLine.js
View file @
7287b8f7
...
@@ -23,7 +23,7 @@ const schema = new Schema({
...
@@ -23,7 +23,7 @@ const schema = new Schema({
})
})
schema
.
statics
.
savePipes
=
function
(
doc
)
{
schema
.
statics
.
savePipes
=
function
(
doc
)
{
if
(
doc
.
_id
)
{
if
(
doc
.
_id
)
{
return
this
.
update
({
return
this
.
update
One
({
_id
:
doc
.
_id
,
_id
:
doc
.
_id
,
},
doc
)
},
doc
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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