Skip to content

Commit

Permalink
fix: gitlab rails script
Browse files Browse the repository at this point in the history
  • Loading branch information
omri2001 committed Dec 6, 2024
1 parent 62ac8f5 commit 8eeca89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/gitlab-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ data:
#add user to group
g.add_member(u, :owner)
g.save!
u.save!
#create new project
project = g.projects.create(name: "piper-e2e-test", path: "piper-e2e-test", creator:u, organization:g.organization)
project = g.projects.create(name: "piper-e2e-test", path: "piper-e2e-test", creator:u, organization:g.organization, namespace: n, visibility_level: 20)
project.create_repository
project.add_member(u, :owner)
project.save!
g.save!
Expand All @@ -43,7 +46,7 @@ data:
bot.confirm
# Add the bot to the group with the required role.
g.add_member(bot, :maintainer)
g.add_member(bot, :owner)
token = bot.personal_access_tokens.create(scopes:[:read_api, :write_repository, :api], name: 'g-token', expires_at: 365.days.from_now)
# Get the token value.
Expand Down

0 comments on commit 8eeca89

Please sign in to comment.