Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
9d6d4cad
Commit
9d6d4cad
authored
Jun 01, 2021
by
Timo Koch
Browse files
[ci] Only search for merge commits with git
parent
8358d93b
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci/getpipelineinfo.py
View file @
9d6d4cad
...
...
@@ -105,8 +105,8 @@ elif args['look_for'] == 'latest':
elif
args
[
'look_for'
]
==
'latest-merge'
:
count
=
args
[
'max_tree_depth'
]
commits
=
filter
(
None
,
runCommand
(
f
'git rev-list HEAD --max-count=
{
count
}
'
).
split
(
'
\n
'
))
pipeLine
=
findPipeline
(
filter
(
lambda
c
:
isMergeCommit
(
c
)),
commits
)
commits
=
filter
(
None
,
runCommand
(
f
'git rev-list HEAD
--merges
--max-count=
{
count
}
'
).
split
(
'
\n
'
))
pipeLine
=
findPipeline
(
commits
)
if
pipeLine
is
not
None
:
if
args
[
'print_format'
]
==
'pipeline-id'
:
...
...
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