Skip to content

Commit

Permalink
Merge pull request #4 from Azure/risinh/copyrightheaders
Browse files Browse the repository at this point in the history
Adding copyright headers
  • Loading branch information
risinh authored Nov 15, 2024
2 parents cf5d11a + d0d01f2 commit f7340e5
Show file tree
Hide file tree
Showing 21 changed files with 71 additions and 28 deletions.
21 changes: 0 additions & 21 deletions LICENSE copy

This file was deleted.

3 changes: 3 additions & 0 deletions __tests__/config-loader.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { loadConfigFiles, validateConfigs } from '../src/config-loader'
import { ArgumentError, ParseError, ValidationError } from '../src/errors'

Expand Down
3 changes: 3 additions & 0 deletions __tests__/feature-flag-client.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import axios from 'axios'
import { DefaultAzureCredential } from '@azure/identity'
import {
Expand Down
3 changes: 3 additions & 0 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* Unit tests for the action's entrypoint, src/index.ts
*/
Expand Down
3 changes: 3 additions & 0 deletions __tests__/input.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import * as core from '@actions/core'
import { getActionInput } from '../src/input'

Expand Down
3 changes: 3 additions & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { run } from '../src/main'
import * as core from '@actions/core'
import { getActionInput } from '../src/input'
Expand Down
3 changes: 3 additions & 0 deletions __tests__/update-feature-flags.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import * as core from '@actions/core'
import { Input } from '../src/models/models'
import { FeatureListResponse } from '../src/models/api-response.models'
Expand Down
3 changes: 3 additions & 0 deletions __tests__/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { deepEqualCheck } from '../src/utils'

describe('deepEqual function', () => {
Expand Down
19 changes: 16 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/config-loader.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import * as core from '@actions/core'
import * as glob from '@actions/glob'
import { ArgumentError, ParseError, ValidationError } from './errors'
Expand Down
3 changes: 3 additions & 0 deletions src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* Custom error type used during input validation
*/
Expand Down
3 changes: 3 additions & 0 deletions src/feature-flag-client.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import axios from 'axios'
import { DefaultAzureCredential } from '@azure/identity'
import { ApiError } from './errors'
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* The entrypoint for the action.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { run } from './main'

// eslint-disable-next-line @typescript-eslint/no-floating-promises
Expand Down
3 changes: 3 additions & 0 deletions src/input.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { ArgumentError } from './errors'
import * as core from '@actions/core'
import { Input } from './models/models'
Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import * as core from '@actions/core'
import { getActionInput } from './input'
import { loadConfigFiles, validateConfigs } from './config-loader'
Expand Down
3 changes: 3 additions & 0 deletions src/models/api-response.models.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export interface FeatureListResponse {
items: FeatureFlagResponse[]
etag: string
Expand Down
3 changes: 3 additions & 0 deletions src/models/feature-flag.models.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
Expand Down
3 changes: 3 additions & 0 deletions src/models/models.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { FeatureFlag } from './feature-flag.models'

export interface FeatureManagementConfig {
Expand Down
3 changes: 3 additions & 0 deletions src/update-feature-flags.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import {
createOrUpdateFeatureFlag,
deleteFeatureFlag,
Expand Down
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export const deepEqualCheck = (obj1: any, obj2: any): boolean => {
if (obj1 === obj2) {
return true
Expand Down

0 comments on commit f7340e5

Please sign in to comment.