We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb9526 commit 800822dCopy full SHA for 800822d
accessManagement.rb
@@ -0,0 +1,18 @@
1
+urls = [
2
+ "https://glabInstance:glabPort/XXXX,
3
4
5
+ "https://glabInstance:glabPort/XXXX
6
+]
7
+
8
9
+user = User.find_by(username: "toufa7")
10
11
+urls.each do |link|
12
+ project = Project.find_by_full_path(link)
13
+ if project
14
+ project.add_member(user, Gitlab::Access::DEVELOPER, expires_at: 2.weeks.from_now.to_date)
15
+ else
16
+ puts "Project not found for URL: #{link}"
17
+ end
18
+end
0 commit comments