#47 Adding the ability to request suffixed side tags
Merged 3 months ago by carlwgeorge. Opened 3 months ago by mohanboddu.
centos/ mohanboddu/centpkg gated-side-tags  into  develop

file modified
+14

@@ -37,6 +37,7 @@ 

  

      def setup_centos_subparsers(self):

          self.register_do_fork()

+         self.register_request_gated_side_tag()

  

      def register_do_fork(self):

          help_msg = 'Create a new fork of the current repository'

@@ -118,3 +119,16 @@ 

          else:

              msg = "Remote with name '{0}' already exists."

          self.log.info(msg.format(remote_name))

+ 

+     def register_request_gated_side_tag(self):

+         """Register command line parser for subcommand request-gated-side-tag"""

+         parser = self.subparsers.add_parser(

+             "request-gated-side-tag",

+             help="Create a new dynamic gated side tag",

+         )

+         parser.add_argument("--base-tag", help="name of base tag")

+         parser.set_defaults(command=self.request_gated_side_tag)

+ 

+     def request_gated_side_tag(self):

+         self.args.suffix = "stack-gate"

+         super(centpkgClient, self).request_side_tag()

Pull-Request has been merged by carlwgeorge

3 months ago
Metadata