Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding copyright headers #4

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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