mirror of
https://github.com/elastic/logstash.git
synced 2025-06-27 17:08:55 -04:00
rename references of master branch to main branch (#13301)
This commit is contained in:
parent
55e7a26416
commit
4919286e42
22 changed files with 31 additions and 31 deletions
|
@ -54,7 +54,7 @@ def main():
|
|||
help="Assume yes. Warning: discards local changes.")
|
||||
parser.add_argument("--continue", action="store_true",
|
||||
help="Continue after fixing merging errors.")
|
||||
parser.add_argument("--from_branch", default="master",
|
||||
parser.add_argument("--from_branch", default="main",
|
||||
help="From branch")
|
||||
parser.add_argument("--diff", action="store_true",
|
||||
help="Display the diff before pushing the PR")
|
||||
|
|
|
@ -17,7 +17,7 @@ usage = """
|
|||
|
||||
This script does the following:
|
||||
* cleanups local_branch (warning: drops local changes)
|
||||
* rebases the branch against master
|
||||
* rebases the branch against main
|
||||
* it will attempt to create a PR for you using the GitHub API, but requires
|
||||
the GitHub token, with the public_repo scope, available in `~/.elastic/github.token`.
|
||||
Keep in mind this token has to also be authorized to the Elastic organization as
|
||||
|
@ -38,7 +38,7 @@ def main():
|
|||
epilog=usage)
|
||||
parser.add_argument("local_branch",
|
||||
help="Branch to Create a PR for")
|
||||
parser.add_argument("--to_branch", default="master",
|
||||
parser.add_argument("--to_branch", default="main",
|
||||
help="Which remote to push the backport branch to")
|
||||
parser.add_argument("--yes", action="store_true",
|
||||
help="Assume yes. Warning: discards local changes.")
|
||||
|
|
|
@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
|
|||
|
||||
It is more important to the community that you are able to contribute.
|
||||
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/main/CONTRIBUTING.md) file.
|
||||
|
|
|
@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
|
|||
|
||||
It is more important to the community that you are able to contribute.
|
||||
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/main/CONTRIBUTING.md) file.
|
||||
|
|
|
@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
|
|||
|
||||
It is more important to the community that you are able to contribute.
|
||||
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/main/CONTRIBUTING.md) file.
|
||||
|
|
|
@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
|
|||
|
||||
It is more important to the community that you are able to contribute.
|
||||
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
||||
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/main/CONTRIBUTING.md) file.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
# The version of logstash core plugin api gem.
|
||||
#
|
||||
# sourced from a copy of the master versions.yml file, see logstash-core/logstash-core.gemspec
|
||||
# sourced from a copy of the main versions.yml file, see logstash-core/logstash-core.gemspec
|
||||
if !defined?(ALL_VERSIONS)
|
||||
require 'yaml'
|
||||
ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import org.yaml.snakeyaml.Yaml
|
||||
|
||||
// fetch version from Logstash's master versions.yml file
|
||||
// fetch version from Logstash's main versions.yml file
|
||||
def versionMap = (Map) (new Yaml()).load(new File("$projectDir/../../versions.yml").text)
|
||||
|
||||
description = """Logstash Core Java Benchmarks"""
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.nio.file.Files
|
|||
import java.nio.file.Paths
|
||||
import org.yaml.snakeyaml.Yaml
|
||||
|
||||
// fetch version from Logstash's master versions.yml file
|
||||
// fetch version from Logstash's main versions.yml file
|
||||
def versionMap = (Map) (new Yaml()).load(new File("$projectDir/../versions.yml").text)
|
||||
|
||||
description = """Logstash Core Java"""
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
# The version of logstash core gem.
|
||||
#
|
||||
# sourced from a copy of the master versions.yml file, see logstash-core/logstash-core.gemspec
|
||||
# sourced from a copy of the main versions.yml file, see logstash-core/logstash-core.gemspec
|
||||
if !defined?(ALL_VERSIONS)
|
||||
require 'yaml'
|
||||
ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
# The version of the logstash package (not the logstash-core gem version).
|
||||
#
|
||||
# sourced from a copy of the master versions.yml file, see logstash-core/logstash-core.gemspec
|
||||
# sourced from a copy of the main versions.yml file, see logstash-core/logstash-core.gemspec
|
||||
if !defined?(ALL_VERSIONS)
|
||||
require 'yaml'
|
||||
ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
|
||||
|
|
|
@ -31,7 +31,7 @@ Option Description
|
|||
'ab1cfe8cf7e20114df58bcc6c996abcb2b0650d7',
|
||||
'user-
|
||||
name#ab1cfe8cf7e20114df58bcc6c996abcb2b0650d7'
|
||||
or 'master'
|
||||
or 'main'
|
||||
--local-path <String> Path to the root of a local Logstash
|
||||
distribution.
|
||||
E.g. `/opt/logstash`
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import org.yaml.snakeyaml.Yaml
|
||||
|
||||
// fetch version from Logstash's master versions.yml file
|
||||
// fetch version from Logstash's main versions.yml file
|
||||
def versionMap = (Map) (new Yaml()).load(new File("$projectDir/../../versions.yml").text)
|
||||
|
||||
description = """Logstash End to End Benchmarking Utility"""
|
||||
|
|
|
@ -86,7 +86,7 @@ public final class UserInput {
|
|||
"Either a git tree (tag/branch or commit hash), optionally prefixed by a Github username,",
|
||||
"if ran against forks.",
|
||||
"E.g. 'ab1cfe8cf7e20114df58bcc6c996abcb2b0650d7',",
|
||||
"'user-name#ab1cfe8cf7e20114df58bcc6c996abcb2b0650d7' or 'master'"
|
||||
"'user-name#ab1cfe8cf7e20114df58bcc6c996abcb2b0650d7' or 'main'"
|
||||
);
|
||||
|
||||
public static final String LOCAL_VERSION_PARAM = "local-path";
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class MainTest {
|
|||
public void downloadsDependenciesForGithub() throws Exception {
|
||||
final File pwd = temp.newFolder();
|
||||
Main.main(String.format("--workdir=%s", pwd.getAbsolutePath()));
|
||||
final Path logstash = pwd.toPath().resolve("logstash").resolve("logstash-master");
|
||||
final Path logstash = pwd.toPath().resolve("logstash").resolve("logstash-main");
|
||||
assertThat(logstash.toFile().exists(), is(true));
|
||||
final File jruby = pwd.toPath().resolve("jruby").toFile();
|
||||
assertThat(jruby.exists(), is(true));
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
The dependency audit tool automates the verification of the following criteria for all
|
||||
third-party dependencies that are shipped as part of either Logstash core or the [default Logstash
|
||||
plugins](https://github.com/elastic/logstash/blob/master/rakelib/plugins-metadata.json):
|
||||
* The dependency has been added to the [dependency list file](https://github.com/elastic/logstash/blob/master/tools/dependencies-report/src/main/resources/licenseMapping.csv)
|
||||
plugins](https://github.com/elastic/logstash/blob/main/rakelib/plugins-metadata.json):
|
||||
* The dependency has been added to the [dependency list file](https://github.com/elastic/logstash/blob/main/tools/dependencies-report/src/main/resources/licenseMapping.csv)
|
||||
with an appropriate project URL and [SPDX license identifier](https://spdx.org/licenses/).
|
||||
* The license for the dependency is among those [approved for distribution](https://github.com/elastic/logstash/blob/master/tools/dependencies-report/src/main/resources/acceptableLicenses.csv).
|
||||
* There is a corresponding `NOTICE.txt` file in the [notices folder](https://github.com/elastic/logstash/tree/master/tools/dependencies-report/src/main/resources/notices)
|
||||
* The license for the dependency is among those [approved for distribution](https://github.com/elastic/logstash/blob/main/tools/dependencies-report/src/main/resources/acceptableLicenses.csv).
|
||||
* There is a corresponding `NOTICE.txt` file in the [notices folder](https://github.com/elastic/logstash/tree/main/tools/dependencies-report/src/main/resources/notices)
|
||||
containing the appropriate notices or license information for the dependency. These individual
|
||||
notice files will be combined to form the notice file shipped with Logstash.
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import org.yaml.snakeyaml.Yaml
|
||||
|
||||
// fetch version from Logstash's master versions.yml file
|
||||
// fetch version from Logstash's main versions.yml file
|
||||
def versionMap = (Map) (new Yaml()).load(new File("$projectDir/../../versions.yml").text)
|
||||
|
||||
description = """Logstash Dependency Reporting Utility"""
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import org.yaml.snakeyaml.Yaml
|
||||
|
||||
// fetch version from Logstash's master versions.yml file
|
||||
// fetch version from Logstash's main versions.yml file
|
||||
def versionMap = (Map) (new Yaml()).load(new File("$projectDir/../../versions.yml").text)
|
||||
|
||||
description = """Ingest JSON to Logstash Grok Config Converter"""
|
||||
|
|
|
@ -33,7 +33,7 @@ you can interrupt the process and it will output the current errors before exiti
|
|||
|
||||
## Generating the documentation for all the plugins from the organization
|
||||
|
||||
You can now generate the documentation from master for all the plugin in the *logstash-plugins* organization.
|
||||
You can now generate the documentation from main for all the plugin in the *logstash-plugins* organization.
|
||||
|
||||
*prerequisite*
|
||||
|
||||
|
@ -47,7 +47,7 @@ You can now generate the documentation from master for all the plugin in the *lo
|
|||
bundle install
|
||||
```
|
||||
|
||||
You can use the the `bin/logstash-docgen` command to generate any plugin that you want, this executable can generate all the plugins or specific one from their master branch.
|
||||
You can use the the `bin/logstash-docgen` command to generate any plugin that you want, this executable can generate all the plugins or specific one from their main branch.
|
||||
|
||||
Usages:
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ module LogStash module Docgen
|
|||
g = Git.init(path)
|
||||
g.reset
|
||||
g.fetch
|
||||
g.merge("origin/master")
|
||||
g.merge("origin/main")
|
||||
else
|
||||
g = Git.clone(repository, path, :depth => 1 )
|
||||
end
|
||||
|
|
|
@ -30,14 +30,14 @@ module LogStash module Docgen
|
|||
|
||||
class << self
|
||||
def default_plugins_list
|
||||
@default_plugins_list ||= from_master_json
|
||||
@default_plugins_list ||= from_main_json
|
||||
end
|
||||
|
||||
def include?(name)
|
||||
default_plugins_list.include?(name)
|
||||
end
|
||||
|
||||
def from_master_json
|
||||
def from_main_json
|
||||
response = open(DEFAULT_PLUGINS_LIST_JSON)
|
||||
JSON.parse(response.read).select { |_, values| values["default-plugins"] == true }.keys
|
||||
end
|
||||
|
@ -150,8 +150,8 @@ module LogStash module Docgen
|
|||
alias_method :sorted_attributes, :config
|
||||
|
||||
def changelog_url
|
||||
# https://github.com/logstash-plugins/logstash-input-beats/blob/master/CHANGELOG.md#310beta3
|
||||
"#{LOGSTASH_PLUGINS_ORGANIZATION}/#{canonical_name}/blob/master/CHANGELOG.md##{anchor_version}"
|
||||
# https://github.com/logstash-plugins/logstash-input-beats/blob/main/CHANGELOG.md#310beta3
|
||||
"#{LOGSTASH_PLUGINS_ORGANIZATION}/#{canonical_name}/blob/main/CHANGELOG.md##{anchor_version}"
|
||||
end
|
||||
|
||||
def anchor_version
|
||||
|
|
|
@ -82,7 +82,7 @@ describe LogStash::Filters::Geoip do
|
|||
"name" => filename,
|
||||
"provider" => "maxmind",
|
||||
"updated" => 1609891257,
|
||||
"url" => "https://github.com/logstash-plugins/logstash-filter-geoip/archive/master.zip"
|
||||
"url" => "https://github.com/logstash-plugins/logstash-filter-geoip/archive/main.zip"
|
||||
}
|
||||
end
|
||||
let(:md5_hash) { SecureRandom.hex }
|
||||
|
@ -223,4 +223,4 @@ describe LogStash::Filters::Geoip do
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue