gitea-client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 33b5240a586da262af061839660d5fc9b2f062aa5d41748c1a3f3b18557fba2e
4
+ data.tar.gz: f8a356016bb0bc6d9f4d9811ddb09491fddb4ccd6df1e3e149e8a05cc5fe8848
5
+ SHA512:
6
+ metadata.gz: 7517a190b3c7d9cd21ddb0408a1dbe8cd2798dc82f47c61146eb2510b53b4ce2731759ecad399774cca871c5a0f0bf28c4a6b937031e13f121ed30e6f5f08802
7
+ data.tar.gz: 118fb8e4b1d98fee9254cdb0e94e66ac693aa6f2a9128d9dd7b62876ee1b861ce3dc8bc327f12824edf125383904067e0c3eb5f10514aec2ffb22056d3295f12
data/.standard.yml ADDED
@@ -0,0 +1,2 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/testdouble/standard
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-05-05
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at yystopf@163.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://gems.ruby-china.com'
2
+
3
+ # Specify your gem's dependencies in gitea-client.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 13.0"
7
+
8
+ gem "standard", "~> 1.3"
9
+
10
+ gem 'rest-client'
data/Gemfile.lock ADDED
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gitea-client (0.1.0)
5
+
6
+ GEM
7
+ remote: https://gems.ruby-china.com/
8
+ specs:
9
+ ast (2.4.2)
10
+ domain_name (0.5.20190701)
11
+ unf (>= 0.0.5, < 1.0.0)
12
+ http-accept (1.7.0)
13
+ http-cookie (1.0.4)
14
+ domain_name (~> 0.5)
15
+ mime-types (3.4.1)
16
+ mime-types-data (~> 3.2015)
17
+ mime-types-data (3.2022.0105)
18
+ netrc (0.11.0)
19
+ parallel (1.22.1)
20
+ parser (3.1.2.0)
21
+ ast (~> 2.4.1)
22
+ rainbow (3.1.1)
23
+ rake (13.0.6)
24
+ regexp_parser (2.3.1)
25
+ rest-client (2.1.0)
26
+ http-accept (>= 1.7.0, < 2.0)
27
+ http-cookie (>= 1.0.2, < 2.0)
28
+ mime-types (>= 1.16, < 4.0)
29
+ netrc (~> 0.8)
30
+ rexml (3.2.5)
31
+ rubocop (1.28.2)
32
+ parallel (~> 1.10)
33
+ parser (>= 3.1.0.0)
34
+ rainbow (>= 2.2.2, < 4.0)
35
+ regexp_parser (>= 1.8, < 3.0)
36
+ rexml
37
+ rubocop-ast (>= 1.17.0, < 2.0)
38
+ ruby-progressbar (~> 1.7)
39
+ unicode-display_width (>= 1.4.0, < 3.0)
40
+ rubocop-ast (1.17.0)
41
+ parser (>= 3.1.1.0)
42
+ rubocop-performance (1.13.3)
43
+ rubocop (>= 1.7.0, < 2.0)
44
+ rubocop-ast (>= 0.4.0)
45
+ ruby-progressbar (1.11.0)
46
+ standard (1.11.0)
47
+ rubocop (= 1.28.2)
48
+ rubocop-performance (= 1.13.3)
49
+ unf (0.1.4)
50
+ unf_ext
51
+ unf_ext (0.0.8.1)
52
+ unicode-display_width (2.1.0)
53
+
54
+ PLATFORMS
55
+ x86_64-darwin-20
56
+
57
+ DEPENDENCIES
58
+ gitea-client!
59
+ rake (~> 13.0)
60
+ rest-client
61
+ standard (~> 1.3)
62
+
63
+ BUNDLED WITH
64
+ 2.2.19
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 viletyy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # Gitea::Client
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gitea`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'gitea-client'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install gitea-client
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ require 'gitea-client'
27
+
28
+ client = Gitea::Api::Client.new({domain: YOUR_GITEA_SERVER_DOMAIN, base_url: YOUR_GITEA_API_BASE_URL, token: YOUR_TOKRN, username: YOUR_USERNAME, password: YOUR_PASSWORD})
29
+
30
+ client.get_users_search({query: {q: 'viletyy'}})
31
+
32
+ ```
33
+
34
+ ## Development
35
+
36
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
37
+
38
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39
+
40
+ ## Contributing
41
+
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/viletyy/gitea-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/viletyy/gitea-client/blob/master/CODE_OF_CONDUCT.md).
43
+
44
+ ## License
45
+
46
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
47
+
48
+ ## Code of Conduct
49
+
50
+ Everyone interacting in the Gitea::Client project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/viletyy/gitea-client/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "standard/rake"
5
+
6
+ task default: :standard
data/bin/giteaclient ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require 'rest-client'
6
+ require './lib/gitea/api'
7
+ require './lib/gitea/version'
8
+
9
+ # You can add fixtures and/or initialization code here to make experimenting
10
+ # with your gem easier. You can also use a different console, if you like.
11
+
12
+ # (If you use this, don't forget to add pry to your Gemfile!)
13
+ # require "pry"
14
+ # Pry.start
15
+
16
+ require "irb"
17
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/gitea/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "gitea-client"
7
+ spec.version = Gitea::VERSION
8
+ spec.authors = ["viletyy"]
9
+ spec.email = ["yystopf@163.com"]
10
+
11
+ spec.summary = "Gitea API 库"
12
+ spec.description = ""
13
+ spec.homepage = "https://github.com/viletyy/gitea-client"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/viletyy/gitea-client"
19
+ spec.metadata["changelog_uri"] = "https://github.com/viletyy/gitea-client"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ # spec.add_dependency "example-gem", "~> 1.0"
34
+
35
+ # For more information and examples about making a new gem, checkout our
36
+ # guide at: https://bundler.io/guides/creating_gem.html
37
+ end
@@ -0,0 +1,61 @@
1
+ module Gitea
2
+ module Api
3
+ module Admin
4
+ def get_admin_cron(opt={})
5
+ @http.get("/admin/cron", opt)
6
+ end
7
+
8
+ def post_admin_cron_by_task(task, opt={})
9
+ @http.post("/admin/cron/#{task}", opt)
10
+ end
11
+
12
+ def get_admin_orgs(opt={})
13
+ @http.get("/admin/orgs", opt)
14
+ end
15
+
16
+ def get_admin_unadopted(opt={})
17
+ @http.get("/admin/unadopted", opt)
18
+ end
19
+
20
+ def post_admin_unadopted_by_owner_repo(owner, repo, opt={})
21
+ @http.post("/admin/unadopted/#{owner}/#{repo}", opt)
22
+ end
23
+
24
+ def delete_admin_unadopted_by_owner_repo(owner, repo, opt={})
25
+ @http.delete("/admin/unadopted/#{owner}/#{repo}", opt)
26
+ end
27
+
28
+ def get_admin_users(opt={})
29
+ @http.get("/admin/users", opt)
30
+ end
31
+
32
+ def post_admin_users(opt={})
33
+ @http.post("/admin/users", opt)
34
+ end
35
+
36
+ def delete_admin_users_by_username(username, opt={})
37
+ @http.delete("/admin/users/#{username}", opt)
38
+ end
39
+
40
+ def patch_admin_users_by_username(username, opt={})
41
+ @http.patch("/admin/users/#{username}", opt)
42
+ end
43
+
44
+ def post_admin_users_keys_by_username(username, opt={})
45
+ @http.post("/admin/users/#{username}/keys", opt)
46
+ end
47
+
48
+ def delete_admin_users_keys_by_username_id(username, id, opt={})
49
+ @http.delete("/admin/users/#{username}/keys/#{id}", opt)
50
+ end
51
+
52
+ def post_admin_users_orgs_by_username(username, opt={})
53
+ @http.post("/admin/users/#{username}/orgs", opt)
54
+ end
55
+
56
+ def post_admin_users_repos_by_username(username, opt={})
57
+ @http.post("/admin/users/#{username}/repos", opt)
58
+ end
59
+ end # Admin
60
+ end # Api
61
+ end # Gitea
@@ -0,0 +1,29 @@
1
+ module Gitea
2
+ module Api
3
+ class Client
4
+
5
+ # 构造Api client,用于操作Api数据
6
+ # @param opts [Hash] 构造client时的参数选项
7
+ # @option opts [string] domain [必填] gitea服务地址
8
+ # @option opts [string] base_url [必填] api相对路径
9
+ # @option opts [string] admin_username [必填] 管理员账号
10
+ # @option opts [string] admin_password [必填] 管理员密码
11
+ # @option opts [string] username [选填] 用户账号
12
+ # @option opts [string] password [选填] 用户密码
13
+ # @option opts [string] gitea_token [选填] 用户token
14
+ def initialize(opts)
15
+ @config = Config.new(opts)
16
+ @http = Http.new(@config)
17
+ end
18
+
19
+ include Gitea::Api::Issue
20
+ include Gitea::Api::Repository
21
+ include Gitea::Api::Settings
22
+ include Gitea::Api::User
23
+ include Gitea::Api::Organization
24
+ include Gitea::Api::Notification
25
+ include Gitea::Api::Miscellaneous
26
+ include Gitea::Api::Admin
27
+ end
28
+ end # User
29
+ end # Gitea
@@ -0,0 +1,34 @@
1
+ module Gitea
2
+ module Api
3
+
4
+ class Config < Common::Struct::Base
5
+ attrs :domain, :base_url, :username, :password, :token, :open_timeout, :read_timeout
6
+
7
+ def initialize(opts = {})
8
+ super(opts)
9
+
10
+ valid!
11
+ normalize_domain
12
+ end
13
+
14
+ private
15
+ def valid!
16
+ if @domain.nil? || @base_url.nil?
17
+ fail Exception, "@domain, @base_url not permit blank."
18
+ end
19
+ end
20
+
21
+ def normalize_domain
22
+ uri = URI.parse(domain)
23
+ uri = URI.parse(domain)
24
+ uri = URI.parse("http://#{domain}") unless uri.scheme
25
+
26
+ if uri.scheme != 'http' and uri.scheme != 'https'
27
+ fail ClientError, "Only HTTP and HTTPS domain are accepted."
28
+ end
29
+
30
+ @domain = uri
31
+ end
32
+ end
33
+ end # Common
34
+ end # Gitea
@@ -0,0 +1,25 @@
1
+ module Gitea
2
+ module Api
3
+ class ServerError < Common::Exception
4
+ attr_reader :http_code, :error_code, :message
5
+
6
+ def initialize(response)
7
+ @http_code = response.code
8
+
9
+ puts response
10
+ end
11
+
12
+ def to_s
13
+ @attrs.merge({'HTTPCode' => @http_code}).map do |k, v|
14
+ [k, v].join(": ")
15
+ end.join(", ")
16
+ end
17
+ end
18
+
19
+ class CallBackError < ServerError
20
+ end # CallBackError
21
+
22
+ class ClientError < Common::Exception
23
+ end # ClientError
24
+ end # Api
25
+ end # Git
@@ -0,0 +1,111 @@
1
+ require 'base64'
2
+
3
+ module Gitea
4
+ module Api
5
+ class Http
6
+ DEFAULT_CONTENT_TYPE = 'application/json'
7
+ TOKEN_HEADER = 'Authorization'
8
+ OPEN_TIMEOUT = 10
9
+ READ_TIMEOUT = 120
10
+
11
+ include Common::Logging
12
+
13
+ def initialize(config)
14
+ @config = config
15
+ end
16
+
17
+ def get_request_url(api_url)
18
+ url = @config.domain.dup
19
+ url.query = nil
20
+ url.fragment = nil
21
+ [url.to_s, @config.base_url, api_url].join('')
22
+ end
23
+
24
+ def get(api_url = '', http_options = {}, &block)
25
+ do_request('GET', api_url, http_options, &block)
26
+ end
27
+
28
+ def put(api_url = '', http_options = {}, &block)
29
+ do_request('PUT', api_url, http_options, &block)
30
+ end
31
+
32
+ def post(api_url = '', http_options = {}, &block)
33
+ do_request('POST', api_url, http_options, &block)
34
+ end
35
+
36
+ def delete(api_url = '', http_options = {}, &block)
37
+ do_request('DELETE', api_url, http_options, &block)
38
+ end
39
+
40
+ def head(api_url = '', http_options = {}, &block)
41
+ do_request('HEAD', api_url, http_options, &block)
42
+ end
43
+
44
+ def options(api_url = '', http_options = {}, &block)
45
+ do_request('OPTIONS', api_url, http_options, &block)
46
+ end
47
+
48
+ private
49
+ # Do Http request
50
+ def do_request(verb, api_url, http_options = {}, &block)
51
+
52
+ headers = http_options[:headers] || {}
53
+ headers['user-agent'] = get_user_agent
54
+ headers['date'] = Time.now.httpdate
55
+ headers['content-type'] ||= DEFAULT_CONTENT_TYPE
56
+
57
+ if @config.username and @config.password
58
+ headers[TOKEN_HEADER] = 'Basic ' + Base64::encode64(@config.username + ":" + @config.password)
59
+ end
60
+
61
+ headers[:params] = http_options[:query] || {}
62
+ headers[:params].merge!({access_token: @config.token}) if @config.token
63
+ logger.debug("Send HTTP request, verb: #{verb}, http_options: #{http_options}")
64
+
65
+ request = RestClient::Request.new(
66
+ :method => verb,
67
+ :url => get_request_url(api_url),
68
+ :headers => headers,
69
+ :payload => http_options[:body],
70
+ :open_timeout => @config.open_timeout || OPEN_TIMEOUT,
71
+ :read_timeout => @config.read_timeout || READ_TIMEOUT
72
+ )
73
+
74
+
75
+ response = request.execute do |resp, &blk|
76
+ if resp.code >= 300
77
+ e = ServerError.new(resp)
78
+ logger.error(e.to_s)
79
+ raise e
80
+ else
81
+ resp.return!(&blk)
82
+ end
83
+ end
84
+
85
+ # If streaming read_body is used, we need to create the
86
+ # RestClient::Response ourselves
87
+ unless response.is_a?(RestClient::Response)
88
+ if response.code.to_i >= 300
89
+ body = response.body
90
+ if RestClient::version < '2.1.0'
91
+ body = RestClient::Request.decode(response['content-encoding'], response.body)
92
+ end
93
+ response = RestClient::Response.create(body, response, request)
94
+ e = ServerError.new(response)
95
+ logger.error(e.to_s)
96
+ raise e
97
+ end
98
+ response = RestClient::Response.create(nil, response, request)
99
+ response.return!
100
+ end
101
+
102
+ response
103
+ end
104
+
105
+ def get_user_agent
106
+ "gitea-client/#{VERSION}"
107
+ end
108
+
109
+ end
110
+ end # Common
111
+ end # Gitea