Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Debian Blends Team
website
Compare revisions
abda6e492c7e8dafa9ceceffbe52c53e969e8d45 to 17f7b6d41dc62857080f8f857524749abe09e0ad
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
blends-team/website
Select target project
No results found
17f7b6d41dc62857080f8f857524749abe09e0ad
Select Git revision
Swap
Target
blends-team/website
Select target project
gber/website
parodper/website
sunilmohan/website
pabs/blends-website
blends-team/website
moeller/website
jcristau/blends-website
7 results
abda6e492c7e8dafa9ceceffbe52c53e969e8d45
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Avoid failures for empty list
· 460575c3
Andreas Tille
authored
6 years ago
460575c3
Use python3-gitlab to fetch machine readable data from salsa: 1st step - get relevant blends groups
· 17f7b6d4
Andreas Tille
authored
6 years ago
17f7b6d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc/machine_readable/fetch-machine-readable_salsa
+7
-5
7 additions, 5 deletions
misc/machine_readable/fetch-machine-readable_salsa
misc/machine_readable/fetch-machine-readable_salsa.py
+46
-0
46 additions, 0 deletions
misc/machine_readable/fetch-machine-readable_salsa.py
with
53 additions
and
5 deletions
misc/machine_readable/fetch-machine-readable_salsa
View file @
17f7b6d4
...
...
@@ -47,11 +47,13 @@ list_salsa_projects () {
TOTAL_PAGES
=
$(
grep
^X-Total-Pages:
$HEADERS_FILE
)
TOTAL_PAGES
=
${
TOTAL_PAGES
#*
:
}
while
[
$PAGENO
-lt
$TOTAL_PAGES
]
do
PAGENO
=
$((
PAGENO+1
))
get_one_page
done
if
[
"
$TOTAL_PAGES
"
!=
""
]
;
then
while
[
$PAGENO
-lt
$TOTAL_PAGES
]
do
PAGENO
=
$((
PAGENO+1
))
get_one_page
done
fi
}
mkdir
-p
$TARGETDIR
...
...
This diff is collapsed.
Click to expand it.
misc/machine_readable/fetch-machine-readable_salsa.py
0 → 100755
View file @
17f7b6d4
#!/usr/bin/python3
import
gitlab
import
os
PER_PAGE
=
99
BLENDSGROUPS
=
[
'
Debian 3D Printing Team
'
,
'
Debian Accessibility Team
'
,
'
Debian Astro Team
'
,
'
Debian Edu Packaging Team
'
,
'
Debian Electronics
'
,
'
Debian Games
'
,
'
Debian GIS Project
'
,
'
Debian Hamradio Maintainers
'
,
'
Debian IoT
'
,
'
Debian Med
'
,
'
Debian Multimedia Team
'
,
'
Debian PhotoTools Team
'
,
'
Debian R Packages Maintainers
'
,
'
Debian Science Team
'
,
'
Debichem
'
]
def
get_blends_groups
():
blends_groups
=
[]
groups
=
gl
.
groups
.
list
(
all
=
True
)
for
group
in
groups
:
# print(group.attributes['name'])
if
group
.
attributes
[
'
name
'
]
in
BLENDSGROUPS
:
blends_groups
.
append
(
group
.
attributes
)
return
blends_groups
# SALSA_TOKEN=os.environ['SALSA_TOKEN']
gl
=
gitlab
.
Gitlab
(
"
https://salsa.debian.org
"
)
# , private_token=SALSA_TOKEN) # anonymous access is fine
blends_groups
=
get_blends_groups
()
for
group
in
blends_groups
:
print
(
group
[
'
name
'
],
group
[
'
id
'
],
group
[
'
path
'
],
group
[
'
description
'
],
group
[
'
full_name
'
])
#for project in git.getall(git.getprojects):
# print(project['name'], project['path_with_namespace'], project['id'])
# getrawfile(project['id'], 'master', 'debian/changelog')
# getfile(project['id'], 'debian/changelog', 'master')
\ No newline at end of file
This diff is collapsed.
Click to expand it.