obcode / glabs Goto Github PK
View Code? Open in Web Editor NEWManage GitLab for Labs from the Command Line
License: BSD 3-Clause "New" or "Revised" License
Manage GitLab for Labs from the Command Line
License: BSD 3-Clause "New" or "Revised" License
change default branch to main
Just a minor issue - but since it took me a while to find out what was going wrong, still reported here: Currently, specifying a course that does not exist does not lead to an error message:
$ ./glabs.sh check somecoursethatdoesnotexist
6:31AM | DEBUG | D:/Hochschule/Lehrveranstaltungen/Netzwerke 1/Uebung_WS2021/gitlab/glabs/gitlab/gitlab.go:14 > connecting to gitlab server gitlab.host=https://gitlab.lrz.de/
> checking usernames config of somecoursethatdoesnotexist
>> checking students
>> checking students in groups
>>> checking duplicates in groups
Instead, terminating with an error message complaining that "somecoursethatdoesnotexist" does not exist, would be helpful. (Thought that I had a problem in my groups listing, instead I had a typo in the group name... ;-) )
If two repos exist, e.g.,
search for project ID of grp00 gives an error:
error while generating project error="more than one project found"
logging only when debugging. Everything else should be nice output like in glabs check
glabs check algdati
should check students, groups, ...
glabs check algdati blatt1
should check the assignment blatt1 including groups or students
should do:
git clone --depth 0 ...
git commit --amend -m <initial commit message>
also var for initialCommitMessage
with default to Initial commit
I had put startercod
in the .yml which resulted in empty repositories. Would
it make sense to stop with an error if an unknwon key ist encountered?
e.g. to set to reporter once the deadline has been reached
If the path of (sub-)groups doesn't exist as specified in the config file, the error message
gitlab group for assignment does not exist error="no group found" assignment=
is not very helpful (or misleading) for an unexperienced user (like me)
If the config file is missing, one gets the following error message:
panic: fatal error config file: Config File "conffile" Not Found in
As the name of the missing file is conffile.yml, it might be clearer to use the name with extension in the error message.
It would be useful to have a way to list / filter active repositories, i.e., repositories that contain commits made by the students.
Use-case: there are n
student groups for which a repo is generated. Some student teams stopped working on the course but did not signal this. So only repositories with at least one commit (for empty repos) or more commits than in the startercode
could be listed or cloned.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.