Skip to content

Commit

Permalink
Merge pull request #49 from philip-gai/develop
Browse files Browse the repository at this point in the history
Update dependencies and dist
  • Loading branch information
philip-gai authored Sep 6, 2021
1 parent 187c3fe commit 65f869e
Show file tree
Hide file tree
Showing 11 changed files with 22,214 additions and 22,145 deletions.
11 changes: 8 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": ["jest", "@typescript-eslint"],
"plugins": ["jest", "@typescript-eslint", "filenames", "i18n-text"],
"extends": ["plugin:github/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down Expand Up @@ -43,11 +43,16 @@
"@typescript-eslint/restrict-plus-operands": "error",
"semi": 2,
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
"@typescript-eslint/unbound-method": "error",
"filenames/match-regex": 0,
"filenames/match-exported": 2,
"filenames/no-index": 2,
"i18n-text/no-en": 0
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
}
}
}

43,184 changes: 21,607 additions & 21,577 deletions dist/index.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1,127 changes: 580 additions & 547 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"package": "ncc build --source-map --license licenses.txt",
"test": "jest",
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
Expand All @@ -26,22 +27,22 @@
"url": "git+https://github.com/philip-gai/github-ado-chatops.git"
},
"dependencies": {
"@actions/core": "^1.4.0",
"@actions/core": "^1.5.0",
"@actions/github": "^5.0.0",
"@octokit/rest": "^18.10.0",
"@octokit/webhooks-definitions": "^3.67.3",
"azure-devops-node-api": "^11.0.1"
},
"devDependencies": {
"@types/node": "^16.3.3",
"@types/node": "^16.7.10",
"@typescript-eslint/parser": "^4.30.0",
"@vercel/ncc": "^0.29.0",
"eslint": "^7.32.0",
"eslint-plugin-github": "^4.1.1",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-github": "^4.2.0",
"eslint-plugin-jest": "^24.4.0",
"jest": "^27.0.6",
"js-yaml": "^4.1.0",
"prettier": "2.2.1",
"prettier": "2.3.2",
"ts-jest": "^27.0.3",
"typescript": "^4.1.3"
}
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/azureDevOpsClient.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as core from '@actions/core';
import * as azdev from 'azure-devops-node-api';
import { IGitApi } from 'azure-devops-node-api/GitApi';
import { GitRepository, GitRefUpdate, GitRefUpdateResult } from 'azure-devops-node-api/interfaces/GitInterfaces';
import * as core from '@actions/core';
import { AppConfig, ConfigService } from './configService';
import { GitRefUpdate, GitRefUpdateResult, GitRepository } from 'azure-devops-node-api/interfaces/GitInterfaces';
import { CreateBranchOptions } from './azureDevOpsService';
import { ConfigService, AppConfig } from './configService';
import { IGitApi } from 'azure-devops-node-api/GitApi';

export class AzureDevOpsClient {
private _appConfig: AppConfig = ConfigService.defaultAppConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/azureDevOpsService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as core from '@actions/core';
import { ConfigService, AppConfig } from './configService';
import { AppConfig, ConfigService } from './configService';
import { AzureDevOpsClient } from './azureDevOpsClient';

export interface CreateBranchOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/chatOpService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChatOpCommand, ChatOpParam, chatOps, chatOpInfo, ParamValueMap } from './ChatOps';
import { ChatOpCommand, ChatOpParam, ParamValueMap, chatOpInfo, chatOps } from './chatOps';

export class ChatOpService {
private constructor() {}
Expand Down
1 change: 0 additions & 1 deletion src/ChatOps.ts → src/chatOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export interface ChatOpInfo {
export type ChatOpCommand = '/create-branch-ado' | '/cb-ado' | 'None';
export type ChatOpParam = '-username' | '-branch' | 'None';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export type ParamValueMap = { [_ in ChatOpParam]?: string };

const createBranchChatOpInfo: ChatOpInfo = {
Expand Down
11 changes: 6 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import * as core from '@actions/core';
import * as github from '@actions/github';
import { context } from '@actions/github/lib/utils';
import { ChatOpCommand, ChatOpParam, ParamValueMap } from './chatOps';
import { ActionEvent } from './actionEvent';
import { AzureDevOpsService } from './azureDevOpsService';
import { ChatOpService } from './chatOpService';
import { ConfigService } from './configService';
// eslint-disable-next-line import/no-unresolved
import { IssueCommentEvent } from '@octokit/webhooks-definitions/schema';
import { ActionEvent } from './ActionEvent';
import { ChatOpCommand, ChatOpParam, ParamValueMap } from './ChatOps';
import { AzureDevOpsService } from './azureDevOpsService';
import { Octokit } from '@octokit/rest';
import { ConfigService } from './configService';
import { context } from '@actions/github/lib/utils';

async function run(): Promise<void> {
try {
Expand Down

0 comments on commit 65f869e

Please sign in to comment.