As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • idrozdov/gitlab-shell
  • mmj/gitlab-shell
2 results
Show changes
Commits on Source (1)
v5.11.1
- Add a 'create-hooks' command to gitlab-projects
v5.11.0
- Introduce a more-complete implementation of bin/authorized_keys (!178)
Loading
Loading
Loading
Loading
@@ -57,6 +57,9 @@ class GitlabProjects
create_tag
when 'add-project';
add_project
when 'create-hooks';
# To avoid confusion with self.class.create_hooks
create_project_hooks
when 'list-projects';
puts list_projects
when 'rm-project';
Loading
Loading
@@ -182,6 +185,10 @@ class GitlabProjects
system(*cmd) && self.class.create_hooks(full_path)
end
def create_project_hooks
self.class.create_hooks(full_path)
end
def list_projects
$logger.info 'Listing projects'
Dir.chdir(repos_path) do
Loading
Loading
Loading
Loading
@@ -55,6 +55,21 @@ describe GitlabProjects do
it { File.readlink(hooks_dir).should == target_hooks_dir }
end
context 'with command-line arguments' do
before do
FileUtils.mkdir_p repo_path
argv('create-hooks', tmp_repos_path, 'hook-test.git')
gl_projects = GitlabProjects.new
gl_projects.exec
end
after do
FileUtils.rm_f(repo_path)
end
it { File.readlink(hooks_dir).should == target_hooks_dir }
end
end
describe :initialize do
Loading
Loading