-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into investigate-che-20822
- Loading branch information
Showing
14 changed files
with
2,724 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# | ||
# Copyright (c) 2021 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
name: Release changelog | ||
|
||
on: | ||
push: | ||
tags: | ||
- '7.*' | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'The version that is going to be released. Should be in format 7.y.z' | ||
required: true | ||
default: '' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up GH checkout and tokens | ||
run: | | ||
git config --global user.name "Mykhailo Kuznietsov" | ||
git config --global user.email "mkuznets@redhat.com" | ||
git config --global push.default matching | ||
export GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }} | ||
export CHE_BOT_GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }} | ||
- name: Create changelog | ||
id: generate-release-changelog | ||
# wrapper for https://github.com/github-changelog-generator/github-changelog-generator | ||
uses: heinrichreimer/github-changelog-generator-action@v2.2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} | ||
CHANGELOG_GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} | ||
with: | ||
repo: eclipse/che | ||
# output: CHANGELOG-next.md | ||
dateFormat: "%Y-%m-%d" | ||
onlyLastTag: "true" | ||
stripHeaders: "true" | ||
stripGeneratorNotice: "true" | ||
maxIssues: 200 | ||
verbose: true | ||
releaseBranch: main # TODO: change to main | ||
dueTag: ${{ github.event.inputs.version }} # all issues up to the current release tag | ||
filterByMilestone: false # this requires that we get good at setting milestone when something is actually DONE rather than when we think it'll be done | ||
pullRequests: false # only include issues, not PRs, since PRs span multiple repos and are too noisy to include | ||
issuesWoLabels: false # no labels? no logged change | ||
issues: true | ||
# issueLineLabels: "ALL" # doesn't work - /usr/local/bundle/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/section.rb:52:in `get_string_for_issue': undefined method `line_labels_for' for #<GitHubChangelogGenerator::Section:0x00005608809a9988> (NoMethodError) | ||
compareLink: false | ||
unreleased: true # show unreleased, but closed items | ||
addSections: '{"sprint/current-sprint":{"prefix":"**Issues in Current Sprint:**","labels":["sprint/current-sprint"]}, "new¬eworthy":{"prefix":"**New and Noteworthy Issues:**","labels":["new¬eworthy"]}}' | ||
excludeTags: '' # comma,delimited,list,of,tags | ||
# includeLabels: '' | ||
excludeLabels: "kind/release" | ||
enhancementLabel: "Enhancements, Epics, and UX" | ||
enhancementLabels: "kind/enhancement,kind/epic,kind/ux" | ||
bugsLabel: "Bugs fixed" | ||
bugLabels: "kind/bug" | ||
token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} | ||
- name: Create GH Release | ||
id: create_release | ||
uses: ncipollo/release-action@v1.8.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} | ||
with: | ||
allowUpdates: true | ||
body: ${{ steps.generate-release-changelog.outputs.changelog }} | ||
draft: false | ||
name: Eclipse Che ${{ github.event.inputs.version }} | ||
omitBodyDuringUpdate: false | ||
omitNameDuringUpdate: false | ||
prerelease: false | ||
tag: ${{ github.event.inputs.version }} | ||
token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# Copyright (c) 2021 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
name: typescript-publish-next | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- 7.**.x | ||
paths: | ||
- 'tests/e2e/**' | ||
- '.github/workflows/typescript-publish.yml' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@eclipse-che' | ||
- name: Clone source code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.CHE_NPM_AUTH_TOKEN}} | ||
run: | | ||
if [[ ${GITHUB_REF##*/} == "7."**".x" ]]; then | ||
echo "[INFO] using ${GITHUB_REF##*/} tag" | ||
DIST_TAG=${GITHUB_REF##*/} | ||
else | ||
echo "[INFO] using "next" tag" | ||
DIST_TAG=next | ||
fi | ||
cd tests/e2e | ||
npm ci && npm run tsc | ||
SHORT_SHA1=$(git rev-parse --short=7 HEAD) | ||
CURRENT_VERSION=$(sed -r 's/(.*)-SNAPSHOT/\1/' ../../VERSION) | ||
NEW_VERSION="${CURRENT_VERSION}-dev-${SHORT_SHA1}" | ||
sed -i -r -e "s/(\"version\": )(\".*\")/\1\"$NEW_VERSION\"/" package.json | ||
npm publish --tag $DIST_TAG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.40.0-SNAPSHOT | ||
7.41.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.