Skip to content

Commit

Permalink
Merge pull request #166 from eclipse-che/license_header
Browse files Browse the repository at this point in the history
feat: Add license header scripts to validate and add license to codebase
  • Loading branch information
flacatus authored Jun 9, 2021
2 parents 18eec93 + 58cfd70 commit 41c096f
Show file tree
Hide file tree
Showing 74 changed files with 349 additions and 162 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#
# Copyright (c) 2019-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
#
# Contributors:
# Red Hat, Inc. - initial API and implementation

version: 2
updates:
# Enable version updates for Docker
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2021 Red Hat, Inc.
# Copyright (c) 2019-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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh_actions_pr.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2020 Red Hat, Inc.
# Copyright (c) 2019-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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh_actions_push.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2020 Red Hat, Inc.
# Copyright (c) 2019-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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh_actions_unit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2020 Red Hat, Inc.
# Copyright (c) 2019-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/
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/license.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Copyright (c) 2019-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
#
# Contributors:
# Red Hat, Inc. - initial API and implementation

name: Che Machine Exec
on: [pull_request]

jobs:
run:
name: License
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Check Eclipse license headers
run: |
/bin/bash scripts/license.sh check
2 changes: 1 addition & 1 deletion .github/workflows/next-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2021 Red Hat, Inc.
# Copyright (c) 2019-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/
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#
# Copyright (c) 2019-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
#
# Contributors:
# Red Hat, Inc. - initial API and implementation

name: Release Che Machine Exec

on:
Expand Down
3 changes: 1 addition & 2 deletions activity/manager.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2020 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,7 +8,6 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package activity

Expand Down
5 changes: 2 additions & 3 deletions api/events/event_bus.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,12 +8,11 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package events

import (
"github.com/eclipse/che-go-jsonrpc"
jsonrpc "github.com/eclipse/che-go-jsonrpc"
"github.com/eclipse/che-go-jsonrpc/event"
"github.com/sirupsen/logrus"
)
Expand Down
6 changes: 3 additions & 3 deletions api/jsonrpc/handlers.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,12 +8,12 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package jsonrpc

import (
"errors"

"github.com/eclipse-che/che-machine-exec/auth"

"github.com/eclipse-che/che-machine-exec/api/events"
Expand All @@ -22,8 +22,8 @@ import (

"strconv"

"github.com/eclipse/che-go-jsonrpc"
"github.com/eclipse-che/che-machine-exec/exec"
jsonrpc "github.com/eclipse/che-go-jsonrpc"
)

const (
Expand Down
5 changes: 2 additions & 3 deletions api/jsonrpc/jsonrpc-api.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,13 +8,12 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package jsonrpc

import (
"github.com/eclipse/che-go-jsonrpc"
"github.com/eclipse-che/che-machine-exec/api/model"
jsonrpc "github.com/eclipse/che-go-jsonrpc"
)

// Constants that represent RPC methods identifiers.
Expand Down
5 changes: 2 additions & 3 deletions api/model/model_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,14 +8,13 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package model

import (
"github.com/eclipse/che-go-jsonrpc/event"
line_buffer "github.com/eclipse-che/che-machine-exec/output/line-buffer"
ws_conn "github.com/eclipse-che/che-machine-exec/ws-conn"
"github.com/eclipse/che-go-jsonrpc/event"
"k8s.io/client-go/tools/remotecommand"
)

Expand Down
6 changes: 3 additions & 3 deletions api/rest/activity.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2020 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,16 +8,16 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package rest

import (
"net/http"

"github.com/eclipse-che/che-machine-exec/activity"
"github.com/eclipse-che/che-machine-exec/auth"
restUtil "github.com/eclipse-che/che-machine-exec/common/rest"
"github.com/gin-gonic/gin"
"net/http"
)

func HandleActivityTick(c *gin.Context, manager activity.Manager) {
Expand Down
3 changes: 1 addition & 2 deletions api/rest/common.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,7 +8,6 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package rest

Expand Down
3 changes: 1 addition & 2 deletions api/rest/execInit.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,7 +8,6 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package rest

Expand Down
3 changes: 1 addition & 2 deletions api/rest/execKubeConfig.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,7 +8,6 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package rest

Expand Down
8 changes: 4 additions & 4 deletions api/websocket/attach.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,20 +8,20 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package websocket

import (
"errors"
"net/http"
"strconv"

"github.com/eclipse-che/che-machine-exec/auth"
"github.com/eclipse-che/che-machine-exec/common/rest"
"github.com/eclipse-che/che-machine-exec/exec"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
"github.com/sirupsen/logrus"
"net/http"
"strconv"
)

var (
Expand Down
7 changes: 3 additions & 4 deletions api/websocket/connect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2019 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,18 +8,17 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package websocket

import (
jsonrpc "github.com/eclipse/che-go-jsonrpc"
"github.com/eclipse/che-go-jsonrpc/jsonrpcws"
"github.com/eclipse-che/che-machine-exec/api/events"
execRpc "github.com/eclipse-che/che-machine-exec/api/jsonrpc"
"github.com/eclipse-che/che-machine-exec/api/model"
"github.com/eclipse-che/che-machine-exec/auth"
"github.com/eclipse-che/che-machine-exec/common/rest"
jsonrpc "github.com/eclipse/che-go-jsonrpc"
"github.com/eclipse/che-go-jsonrpc/jsonrpcws"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
)
Expand Down
6 changes: 3 additions & 3 deletions auth/auth.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2020 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,16 +8,16 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package auth

import (
"net/http"

"github.com/eclipse-che/che-machine-exec/cfg"
restUtil "github.com/eclipse-che/che-machine-exec/common/rest"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
"net/http"
)

func IsEnabled() bool {
Expand Down
3 changes: 1 addition & 2 deletions auth/token.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2012-2020 Red Hat, Inc.
// Copyright (c) 2019-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/
Expand All @@ -8,7 +8,6 @@
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//

package auth

Expand Down
Loading

0 comments on commit 41c096f

Please sign in to comment.