Sha256: 89359010f20b7996185fb9c4fcdada956b67143d9918d1b25e39d4c7a2e9637b

Contents?: true

Size: 523 Bytes

Versions: 5

Compression:

Stored size: 523 Bytes

Contents

# typed: true

module CodeOwnership
  module Private
    module TeamPlugins
      class Github < Teams::Plugin
        extend T::Sig
        extend T::Helpers

        GithubStruct = Struct.new(:team, :do_not_add_to_codeowners_file)

        sig { returns(GithubStruct) }
        def github
          raw_github = @team.raw_hash['github'] || {}

          GithubStruct.new(
            raw_github['team'],
            raw_github['do_not_add_to_codeowners_file'] || false
          )
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
code_ownership-1.27.0 lib/code_ownership/private/team_plugins/github.rb
code_ownership-1.26.0 lib/code_ownership/private/team_plugins/github.rb
code_ownership-1.25.0 lib/code_ownership/private/team_plugins/github.rb
code_ownership-1.24.0 lib/code_ownership/private/team_plugins/github.rb
code_ownership-1.23.0 lib/code_ownership/private/team_plugins/github.rb