Skip to content

fix: use committer name and email if set in glabs.yaml#66

Merged
obcode merged 2 commits intomainfrom
feature/committer
Apr 30, 2026
Merged

fix: use committer name and email if set in glabs.yaml#66
obcode merged 2 commits intomainfrom
feature/committer

Conversation

@obcode
Copy link
Copy Markdown
Owner

@obcode obcode commented Apr 30, 2026

No description provided.

@github-actions
Copy link
Copy Markdown

Coverage

github.com/obcode/glabs/v2/cmd/archive.go:12:		init						100.0%
github.com/obcode/glabs/v2/cmd/check.go:10:		init						100.0%
github.com/obcode/glabs/v2/cmd/clone.go:45:		init						100.0%
github.com/obcode/glabs/v2/cmd/delete.go:12:		init						100.0%
github.com/obcode/glabs/v2/cmd/generate.go:12:		init						100.0%
github.com/obcode/glabs/v2/cmd/protect.go:12:		init						100.0%
github.com/obcode/glabs/v2/cmd/push.go:35:		init						100.0%
github.com/obcode/glabs/v2/cmd/report.go:14:		init						100.0%
github.com/obcode/glabs/v2/cmd/root.go:39:		Execute						0.0%
github.com/obcode/glabs/v2/cmd/root.go:43:		init						100.0%
github.com/obcode/glabs/v2/cmd/root.go:51:		er						0.0%
github.com/obcode/glabs/v2/cmd/root.go:56:		initConfig					0.0%
github.com/obcode/glabs/v2/cmd/setaccess.go:12:		init						100.0%
github.com/obcode/glabs/v2/cmd/show.go:8:		init						100.0%
github.com/obcode/glabs/v2/cmd/update.go:12:		init						100.0%
github.com/obcode/glabs/v2/cmd/urls.go:22:		init						100.0%
github.com/obcode/glabs/v2/cmd/version.go:10:		init						100.0%
github.com/obcode/glabs/v2/config/assignment.go:12:	GetAssignmentConfig				50.0%
github.com/obcode/glabs/v2/config/assignment.go:111:	RepoSuffix					100.0%
github.com/obcode/glabs/v2/config/assignment.go:130:	RepoBaseName					100.0%
github.com/obcode/glabs/v2/config/assignment.go:138:	RepoNameWithSuffix				100.0%
github.com/obcode/glabs/v2/config/assignment.go:142:	RepoNameForStudent				100.0%
github.com/obcode/glabs/v2/config/assignment.go:146:	RepoNameForGroup				100.0%
github.com/obcode/glabs/v2/config/assignment.go:150:	assignmentPath					100.0%
github.com/obcode/glabs/v2/config/assignment.go:164:	per						100.0%
github.com/obcode/glabs/v2/config/assignment.go:171:	description					100.0%
github.com/obcode/glabs/v2/config/assignment.go:181:	mergeRequest					83.3%
github.com/obcode/glabs/v2/config/assignment.go:216:	mergeRequestApprovals				85.7%
github.com/obcode/glabs/v2/config/assignment.go:296:	extractMergeRequestApprovalRulesRaw		80.0%
github.com/obcode/glabs/v2/config/assignment.go:309:	containsLegacyApprovalUsersKey			56.2%
github.com/obcode/glabs/v2/config/assignment.go:340:	mergeRequestApprovalSettings			91.7%
github.com/obcode/glabs/v2/config/assignment.go:388:	normalizeMergeRequestApprovalConfigKeys		75.0%
github.com/obcode/glabs/v2/config/course.go:14:		GetCourseConfig					50.0%
github.com/obcode/glabs/v2/config/release.go:8:		release						100.0%
github.com/obcode/glabs/v2/config/release.go:22:	releaseMergeRequest				100.0%
github.com/obcode/glabs/v2/config/release.go:46:	dockerImages					100.0%
github.com/obcode/glabs/v2/config/repo.go:11:		startercode					87.5%
github.com/obcode/glabs/v2/config/repo.go:45:		branches					91.5%
github.com/obcode/glabs/v2/config/repo.go:126:		normalizeBranchRuleConfigKeys			76.5%
github.com/obcode/glabs/v2/config/repo.go:157:		defaultBranch					37.5%
github.com/obcode/glabs/v2/config/repo.go:172:		issues						100.0%
github.com/obcode/glabs/v2/config/repo.go:193:		clone						100.0%
github.com/obcode/glabs/v2/config/repo.go:215:		SetBranch					100.0%
github.com/obcode/glabs/v2/config/repo.go:219:		SetProtectToBranch				88.9%
github.com/obcode/glabs/v2/config/repo.go:237:		SetLocalpath					100.0%
github.com/obcode/glabs/v2/config/repo.go:241:		SetForce					100.0%
github.com/obcode/glabs/v2/config/seeder.go:15:		seeder						53.8%
github.com/obcode/glabs/v2/config/show.go:10:		Show						93.4%
github.com/obcode/glabs/v2/config/students.go:14:	SetAccessLevel					100.0%
github.com/obcode/glabs/v2/config/students.go:28:	accessLevel					100.0%
github.com/obcode/glabs/v2/config/students.go:43:	students					100.0%
github.com/obcode/glabs/v2/config/students.go:75:	mkStudents					94.4%
github.com/obcode/glabs/v2/config/students.go:108:	groups						100.0%
github.com/obcode/glabs/v2/config/types.go:5:		String						100.0%
github.com/obcode/glabs/v2/config/urls.go:5:		Urls						100.0%
github.com/obcode/glabs/v2/git/auth.go:11:		GetAuth						90.0%
github.com/obcode/glabs/v2/git/clone.go:18:		Clone						80.0%
github.com/obcode/glabs/v2/git/clone.go:38:		ProjectRepoUrl					100.0%
github.com/obcode/glabs/v2/git/clone.go:44:		localpath					100.0%
github.com/obcode/glabs/v2/git/clone.go:48:		clone						36.1%
github.com/obcode/glabs/v2/git/push.go:21:		CloneBranch					0.0%
github.com/obcode/glabs/v2/git/push.go:230:		PushBranch					0.0%
github.com/obcode/glabs/v2/git/starterrepo.go:21:	PrepareSourceRepo				0.0%
github.com/obcode/glabs/v2/gitlab/approvals.go:15:	applyMergeRequestApprovalRules			100.0%
github.com/obcode/glabs/v2/gitlab/approvals.go:19:	applyMergeRequestApprovalRulesForMemberCount	80.7%
github.com/obcode/glabs/v2/gitlab/approvals.go:222:	applyMergeRequestApprovalSettings		73.8%
github.com/obcode/glabs/v2/gitlab/approvals.go:285:	approvalRuleName				60.0%
github.com/obcode/glabs/v2/gitlab/approvals.go:295:	approvalRuleAppliesForMemberCount		100.0%
github.com/obcode/glabs/v2/gitlab/approvals.go:305:	resolveApprovalUsernames			77.8%
github.com/obcode/glabs/v2/gitlab/approvals.go:337:	resolveApprovalGroupIDs				75.0%
github.com/obcode/glabs/v2/gitlab/approvals.go:364:	isNumericIdentifier				75.0%
github.com/obcode/glabs/v2/gitlab/archive.go:14:	Archive						77.8%
github.com/obcode/glabs/v2/gitlab/archive.go:32:	archivePerStudent				90.9%
github.com/obcode/glabs/v2/gitlab/archive.go:54:	archivePerGroup					90.9%
github.com/obcode/glabs/v2/gitlab/archive.go:76:	archive						75.6%
github.com/obcode/glabs/v2/gitlab/branches.go:11:	syncConfiguredBranches				50.0%
github.com/obcode/glabs/v2/gitlab/branches.go:47:	defaultBranchName				37.5%
github.com/obcode/glabs/v2/gitlab/branches.go:65:	isBranchAlreadyExistsError			0.0%
github.com/obcode/glabs/v2/gitlab/check.go:9:		CheckCourse					90.6%
github.com/obcode/glabs/v2/gitlab/check.go:67:		checkStudent					100.0%
github.com/obcode/glabs/v2/gitlab/check.go:89:		checkDupsInGroups				100.0%
github.com/obcode/glabs/v2/gitlab/delete.go:11:		Delete						77.8%
github.com/obcode/glabs/v2/gitlab/delete.go:29:		deletePerStudent				100.0%
github.com/obcode/glabs/v2/gitlab/delete.go:40:		deletePerGroup					100.0%
github.com/obcode/glabs/v2/gitlab/delete.go:51:		delete						92.9%
github.com/obcode/glabs/v2/gitlab/generate.go:14:	Generate					38.9%
github.com/obcode/glabs/v2/gitlab/generate.go:51:	generate					0.0%
github.com/obcode/glabs/v2/gitlab/generate.go:227:	generatePerStudent				0.0%
github.com/obcode/glabs/v2/gitlab/generate.go:240:	generatePerGroup				0.0%
github.com/obcode/glabs/v2/gitlab/gitlab.go:13:		NewClient					80.0%
github.com/obcode/glabs/v2/gitlab/groups.go:12:		getGroupIDByFullPath				100.0%
github.com/obcode/glabs/v2/gitlab/groups.go:33:		getGroupID					100.0%
github.com/obcode/glabs/v2/gitlab/groups.go:46:		createGroup					83.3%
github.com/obcode/glabs/v2/gitlab/issues.go:14:		getStartercodeProject				100.0%
github.com/obcode/glabs/v2/gitlab/issues.go:58:		replicateIssue					100.0%
github.com/obcode/glabs/v2/gitlab/projects.go:12:	generateProject					77.5%
github.com/obcode/glabs/v2/gitlab/projects.go:97:	getProjectByName				80.0%
github.com/obcode/glabs/v2/gitlab/protect.go:15:	ProtectToBranch					77.8%
github.com/obcode/glabs/v2/gitlab/protect.go:33:	protectBranch					100.0%
github.com/obcode/glabs/v2/gitlab/protect.go:37:	protectBranchForMemberCount			71.8%
github.com/obcode/glabs/v2/gitlab/protect.go:119:	hasProtectedBranches				100.0%
github.com/obcode/glabs/v2/gitlab/protect.go:129:	hasMergeRequestApprovalConfig			100.0%
github.com/obcode/glabs/v2/gitlab/protect.go:137:	protectSingleBranch				72.2%
github.com/obcode/glabs/v2/gitlab/protect.go:191:	recreateProtectedBranch				80.0%
github.com/obcode/glabs/v2/gitlab/protect.go:229:	replaceBranchPermissions			88.9%
github.com/obcode/glabs/v2/gitlab/protect.go:245:	isProtectedBranchNotFoundError			75.0%
github.com/obcode/glabs/v2/gitlab/protect.go:254:	protectToBranchPerStudent			90.9%
github.com/obcode/glabs/v2/gitlab/protect.go:276:	protectToBranchPerGroup				72.7%
github.com/obcode/glabs/v2/gitlab/push.go:10:		Push						0.0%
github.com/obcode/glabs/v2/gitlab/report.go:14:		Report						78.9%
github.com/obcode/glabs/v2/gitlab/report.go:51:		ReportHTML					73.7%
github.com/obcode/glabs/v2/gitlab/report.go:86:		ReportJSON					77.8%
github.com/obcode/glabs/v2/gitlab/report_helper.go:17:	report						82.5%
github.com/obcode/glabs/v2/gitlab/report_helper.go:135:	projectReport					85.9%
github.com/obcode/glabs/v2/gitlab/seeder.go:21:		localpath					0.0%
github.com/obcode/glabs/v2/gitlab/seeder.go:25:		runSeeder					0.0%
github.com/obcode/glabs/v2/gitlab/seeder.go:100:	addAndCommit					0.0%
github.com/obcode/glabs/v2/gitlab/seeder.go:121:	push						0.0%
github.com/obcode/glabs/v2/gitlab/setaccess.go:14:	Setaccess					77.8%
github.com/obcode/glabs/v2/gitlab/setaccess.go:32:	setaccess					41.5%
github.com/obcode/glabs/v2/gitlab/setaccess.go:140:	inviteByEmail					100.0%
github.com/obcode/glabs/v2/gitlab/setaccess.go:155:	setaccessPerStudent				100.0%
github.com/obcode/glabs/v2/gitlab/setaccess.go:175:	setaccessPerGroup				80.0%
github.com/obcode/glabs/v2/gitlab/starterrepo.go:14:	pushStartercode					0.0%
github.com/obcode/glabs/v2/gitlab/update.go:15:		Update						60.0%
github.com/obcode/glabs/v2/gitlab/update.go:44:		update						31.6%
github.com/obcode/glabs/v2/gitlab/update.go:91:		updatePerStudent				100.0%
github.com/obcode/glabs/v2/gitlab/update.go:111:	updatePerGroup					100.0%
github.com/obcode/glabs/v2/gitlab/users.go:12:		getUser						95.0%
github.com/obcode/glabs/v2/gitlab/users.go:49:		getUserID					100.0%
github.com/obcode/glabs/v2/gitlab/users.go:63:		addMember					94.1%
github.com/obcode/glabs/v2/main.go:19:			main						0.0%
total:							(statements)					64.8%

@obcode obcode merged commit d6879d7 into main Apr 30, 2026
8 checks passed
@obcode obcode deleted the feature/committer branch April 30, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant