Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 1031e2e

Browse files
authored
refactor: Update master branch mentioning to main (#1147)
* refactor: Update 'master' branch mentioning to 'main' Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
1 parent 909e697 commit 1031e2e

18 files changed

Lines changed: 39 additions & 39 deletions

File tree

.github/workflows/build-publish-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name: Build & Publish `next`
1212
on:
1313
push:
1414
branches:
15-
- master
15+
- main
1616

1717
jobs:
1818
build:

.github/workflows/publish-built-in-extension-report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name: publish
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ main ]
1717
schedule:
1818
- cron: '0 1 * * *'
1919
jobs:

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ In this section we are going to start a new workspace to work on che-theia. The
6161
The devfile could be started using `chectl`:
6262

6363
```
64-
chectl workspace:start -f https://raw.githubusercontent.com/eclipse-che/che-theia/master/devfiles/che-theia-all.devfile.yaml
64+
chectl workspace:start -f https://raw.githubusercontent.com/eclipse-che/che-theia/main/devfiles/che-theia-all.devfile.yaml
6565
```
6666
At workspace start, Che will clone Theia and Che-theia.
6767

@@ -78,7 +78,7 @@ $ che-theia init --dev
7878

7979
This command will checkout all extensions in `/projects/theia/che` folder and create symbolic link into `/projects/theia/packages` folder.
8080

81-
By default, extensions list is retrieved from https://github.com/eclipse-che/che-theia/blob/master/che-theia-init-sources.yml
81+
By default, extensions list is retrieved from https://github.com/eclipse-che/che-theia/blob/main/che-theia-init-sources.yml
8282

8383
### Step 3: Code che-theia extensions
8484
At this point you can code on che-theia extensions inside `/projects/theia/che/che-theia/extensions` folder. Extensions changes would be taken into account in the next step.
@@ -143,7 +143,7 @@ and run these plugins with the existing che-theia app:
143143

144144
## Che-Theia development on che.openshift.io
145145

146-
There is a [devfile](https://github.com/eclipse-che/che-theia/blob/master/devfiles/hosted-che-dogfooding.devfile.yaml) to develop Che-Theia on [che.openshift.io](https://che.openshift.io)
146+
There is a [devfile](https://github.com/eclipse-che/che-theia/blob/main/devfiles/hosted-che-dogfooding.devfile.yaml) to develop Che-Theia on [che.openshift.io](https://che.openshift.io)
147147

148148
Projects directory which is a Persistent Volume on [che.openshift.io](https://che.openshift.io) is limited to 1 gigabyte. It's not enough to build Che-Theia.
149149
The main idea is to use `/tmp/theia` directotry. Amount for this directory is limited to 3 gigabytes, which is enough to build Che-Theia and run.
@@ -153,7 +153,7 @@ In comparing with `/projects`, temporary directory is not persisted and is clear
153153

154154
Use the badge to create a workspace using factory
155155

156-
[![Try it on che.openshift.io](https://img.shields.io/static/v1?label=che&message=openshift.io&color=orange)](https://che.openshift.io/f?url=https://raw.githubusercontent.com/eclipse-che/che-theia/master/devfiles/hosted-che-dogfooding.devfile.yaml)
156+
[![Try it on che.openshift.io](https://img.shields.io/static/v1?label=che&message=openshift.io&color=orange)](https://che.openshift.io/f?url=https://raw.githubusercontent.com/eclipse-che/che-theia/main/devfiles/hosted-che-dogfooding.devfile.yaml)
157157

158158
### Step 1: Initialize Che-Theia in `/tmp/theia` directory
159159

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<br/>
22
<div id="che-theia-logo" align="center" style="vertical-align: middle">
33

4-
<img src="https://raw.githubusercontent.com/eclipse-che/che-theia/master/extensions/eclipse-che-theia-about/src/browser/style/che-logo-light.svg?sanitize=true" alt="Che Logo" width="200" height="60" />
4+
<img src="https://raw.githubusercontent.com/eclipse-che/che-theia/main/extensions/eclipse-che-theia-about/src/browser/style/che-logo-light.svg?sanitize=true" alt="Che Logo" width="200" height="60" />
55

66
<img src="https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia-logo.svg?sanitize=true" alt="Theia Logo" width="150" height="60"/>
77

@@ -22,7 +22,7 @@
2222

2323
<div style='margin:0 auto;width:80%;'>
2424

25-
![Che-Theia](https://raw.githubusercontent.com/eclipse-che/che-theia/master/che-theia-screenshot.png)
25+
![Che-Theia](https://raw.githubusercontent.com/eclipse-che/che-theia/main/che-theia-screenshot.png)
2626

2727
</div>
2828

@@ -80,15 +80,15 @@ The che-plugin of this editor is defined in the plugin registry https://github.c
8080
# Contributing
8181

8282
## Contribute to Che-theia
83-
Contributing to che-theia section is cover in [CONTRIBUTING.md](https://github.com/eclipse-che/che-theia/blob/master/CONTRIBUTING.md)
83+
Contributing to che-theia section is cover in [CONTRIBUTING.md](https://github.com/eclipse-che/che-theia/blob/main/CONTRIBUTING.md)
8484

8585

8686
## Build container images
8787

8888
Building images is required only if you make some changes on `Dockerfile`s inside `dockerfiles` folder.
89-
If it is about testing che-theia extensions or plugins, please refere to [CONTRIBUTING.md](https://github.com/eclipse-che/che-theia/blob/master/CONTRIBUTING.md).
89+
If it is about testing che-theia extensions or plugins, please refere to [CONTRIBUTING.md](https://github.com/eclipse-che/che-theia/blob/main/CONTRIBUTING.md).
9090

91-
To build che-theia docker images, please follow [dockerfiles/theia/README.md](https://github.com/eclipse-che/che-theia/blob/master/dockerfiles/theia/README.md) instructions.
91+
To build che-theia docker images, please follow [dockerfiles/theia/README.md](https://github.com/eclipse-che/che-theia/blob/main/dockerfiles/theia/README.md) instructions.
9292

9393

9494
# License

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ To make another bugfix release of Che-Theia with the upstream Theia patch includ
2626
### Include a diff file
2727
It's also possible to use a diff file to patch the Theia while releasing Che-Theia:
2828
- prepare a `*.patch` file
29-
- put it into the [`patches`](https://github.com/eclipse-che/che-theia/tree/master/dockerfiles/theia/src/patches) folder and a sub-folder which name corresponds to the [`THEIA_VERSION`](https://github.com/eclipse-che/che-theia/blob/7.27.x/build.include#L15) value, e.g. `master`
29+
- put it into the [`patches`](https://github.com/eclipse-che/che-theia/tree/main/dockerfiles/theia/src/patches) folder and a sub-folder which name corresponds to the [`THEIA_VERSION`](https://github.com/eclipse-che/che-theia/blob/7.27.x/build.include#L15) value, e.g. `master`
3030
- continue the release process as usual

che-theia-init-sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ sources:
3333
- plugins/telemetry-plugin
3434
- plugins/github-auth-plugin
3535
- plugins/recommendations-plugin
36-
checkoutTo: master
36+
checkoutTo: main

devfiles/hosted-che-dogfooding.devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ projects:
2727
source:
2828
location: 'https://github.com/eclipse-che/che-theia.git'
2929
type: git
30-
branch: master
30+
branch: main
3131

3232
components:
3333
- id: eclipse/che-theia/latest

dockerfiles/theia/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ CI generates several tags of [docker images](https://quay.io/repository/eclipse/
6969

7070
- `eclipse/che-theia:next`
7171
- theia branch: [master](https://github.com/theia-ide/theia/)
72-
- che-theia branch: [master](https://github.com/eclipse-che/che-theia)
72+
- che-theia branch: [main](https://github.com/eclipse-che/che-theia)
7373
- CI [build job](https://ci.centos.org/view/Devtools/job/devtools-che-theia-che-build-master/)
7474
- CI [nightly build job](https://ci.centos.org/view/Devtools/job/devtools-che-theia-che-nightly/)
7575

generator/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ Also you can provide custom `yaml` with your extension set, by using `-c` or `--
5353

5454
`che-theia init -c ./path/to/custom/che-theia-init-sources.yaml`
5555

56-
The sample of `che-theia-init-sources.yaml` can be found [there](https://github.com/eclipse-che/che-theia/blob/master/che-theia-init-sources.yml)
56+
The sample of `che-theia-init-sources.yaml` can be found [there](https://github.com/eclipse-che/che-theia/blob/main/che-theia-init-sources.yml)
5757

5858
### Dev mode
5959

60-
Dev mode is the way to use all new extensions from `master` branch:
60+
Dev mode is the way to use all new extensions from `main` branch:
6161

6262
`che-theia init -d`
6363

64-
And `che-theia` will use `master` branch for all extensions and plugins, regardless of provided configuration
64+
And `che-theia` will use `main` branch for all extensions and plugins, regardless of provided configuration
6565

6666
### Development life-cycle
6767
Che-Theia should be built from root directory only (Root directory of Che-Theia is the directory into which Theia was clonned and `che-theia init` was executed there). In case of building from subdirectories it will mess up dependencies, don't do it.

generator/src/init-sources.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class InitSources {
3232
public static readonly PREFIX_PACKAGES_EXTENSIONS = '@che-';
3333

3434
public static readonly DEFAULT_EXTENSIONS_URI =
35-
'https://raw.githubusercontent.com/eclipse-che/che-theia/master/che-theia-init-sources.yml';
35+
'https://raw.githubusercontent.com/eclipse-che/che-theia/master-main/che-theia-init-sources.yml';
3636
static argBuilder = (theYargs: yargs.Argv) =>
3737
theYargs
3838
.option('config', {
@@ -41,7 +41,7 @@ export class InitSources {
4141
})
4242
.option('dev', {
4343
description:
44-
'Initialize current Theia with Che/Theia extensions from "master" branch instead of provided branches',
44+
'Initialize current Theia with Che/Theia extensions from "main" branch instead of provided branches',
4545
alias: 'd',
4646
type: 'boolean',
4747
default: false,
@@ -105,7 +105,7 @@ export class InitSources {
105105
await Promise.all(
106106
extensionsYaml.sources.map(async (extension: ISource) => {
107107
if (isDevMode) {
108-
extension.checkoutTo = 'master';
108+
extension.checkoutTo = 'main';
109109
}
110110
await this.addExtension(extension);
111111
this.extensions.push(extension);

0 commit comments

Comments
 (0)