Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
8c4c3e8b
Commit
8c4c3e8b
authored
5 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
[changelog] check if bob.devtools is not already in there.
parent
35535739
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/scripts/changelog.py
+5
-3
5 additions, 3 deletions
bob/devtools/scripts/changelog.py
with
5 additions
and
3 deletions
bob/devtools/scripts/changelog.py
+
5
−
3
View file @
8c4c3e8b
...
@@ -131,15 +131,17 @@ def changelog(target, changelog, group, mode, since):
...
@@ -131,15 +131,17 @@ def changelog(target, changelog, group, mode, since):
# Since tagging packages requires bob.devtools to be tagged first. Add that to the
# Since tagging packages requires bob.devtools to be tagged first. Add that to the
# list as well if bob.devtools has changed. Note that bob.devtools can release
# list as well if bob.devtools has changed. Note that bob.devtools can release
# itself.
# itself.
bob_devtools
=
"
bob/bob.devtools
"
def
bdt_has_changes
():
def
bdt_has_changes
():
gitpkg
=
gl
.
projects
.
get
(
"
bob
/bob.
devtools
"
)
gitpkg
=
gl
.
projects
.
get
(
bob
_
devtools
)
tag
=
get_last_tag
(
gitpkg
)
tag
=
get_last_tag
(
gitpkg
)
last_tag_date
=
parse_date
(
tag
.
commit
[
"
committed_date
"
])
last_tag_date
=
parse_date
(
tag
.
commit
[
"
committed_date
"
])
_
,
_
,
commits
=
get_changes_since
(
gitpkg
,
last_tag_date
)
_
,
_
,
commits
=
get_changes_since
(
gitpkg
,
last_tag_date
)
return
len
(
commits
)
return
len
(
commits
)
if
bdt_has_changes
():
if
bob_devtools
not
in
packages
and
bdt_has_changes
():
packages
.
insert
(
0
,
"
bob
/bob.
devtools
"
)
packages
.
insert
(
0
,
bob
_
devtools
)
# iterates over the packages and dumps required information
# iterates over the packages and dumps required information
for
package
in
packages
:
for
package
in
packages
:
...
...
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