Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shelf/gh-sdk

Package Overview
Dependencies
Maintainers
11
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shelf/gh-sdk - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

lib/prs/get-pr.d.ts

8

lib/index.d.ts

@@ -1,2 +0,3 @@

import { Octokit } from '@octokit/rest';
import { PullsCreateReviewResponseData, PullsMergeResponseData } from '@octokit/types';
import { PullsMergeResponse405Data, PullsMergeResponse409Data } from '@octokit/types/dist-types/generated/Endpoints';
export { listOpenPRs } from './prs/list-open-prs';

@@ -7,2 +8,3 @@ export { listOrgRepos } from './repos/list-org-repos';

export { createReleasePR } from './prs/create-release-pr';
export { getPR } from './prs/get-pr';
export { createReleaseBranch } from './repos/create-release-branch';

@@ -15,4 +17,4 @@ export { getLatestBranchCommit, getLatestDevelopCommit, getLatestDevelopCommitSHA } from './repos/get-latest-branch-commit';

}
export declare function approvePR(params: ApprovePRParams): Promise<Octokit.PullsCreateReviewResponse>;
export declare function mergePR(params: ApprovePRParams): Promise<Octokit.PullsMergeResponse>;
export declare function approvePR(params: ApprovePRParams): Promise<PullsCreateReviewResponseData>;
export declare function mergePR(params: ApprovePRParams): Promise<PullsMergeResponseData | PullsMergeResponse405Data | PullsMergeResponse409Data>;
export declare function getUserOrgs(): Promise<string[]>;

@@ -51,2 +51,8 @@ "use strict";

});
Object.defineProperty(exports, "getPR", {
enumerable: true,
get: function () {
return _getPr.getPR;
}
});
Object.defineProperty(exports, "createReleaseBranch", {

@@ -89,2 +95,4 @@ enumerable: true,

var _getPr = require("./prs/get-pr");
var _createReleaseBranch = require("./repos/create-release-branch");

@@ -91,0 +99,0 @@

@@ -1,2 +0,2 @@

import { Octokit } from '@octokit/rest';
import { PullsCreateResponseData } from '@octokit/types';
export declare function createReleasePR({ owner, repo, version, releaseTitle }: {

@@ -7,2 +7,2 @@ owner: string;

releaseTitle: string;
}): Promise<Octokit.PullsCreateResponse>;
}): Promise<PullsCreateResponseData>;

@@ -1,2 +0,2 @@

import { Octokit } from '@octokit/rest';
import { SearchIssuesAndPullRequestsResponseData } from '@octokit/types';
interface ListPRsParams {

@@ -6,3 +6,3 @@ owner: string;

}
export declare function listOpenPRs(params: ListPRsParams): Promise<Octokit.SearchIssuesAndPullRequestsResponseItemsItem[]>;
export declare function listOpenPRs(params: ListPRsParams): Promise<SearchIssuesAndPullRequestsResponseData['items']>;
export {};

@@ -1,2 +0,2 @@

import { Octokit } from '@octokit/rest';
import { GitCreateRefResponseData } from '@octokit/types';
export declare function createReleaseBranch({ owner, repo, version, sha }: {

@@ -7,2 +7,2 @@ owner: string;

sha: string;
}): Promise<Octokit.GitCreateRefResponse>;
}): Promise<GitCreateRefResponseData>;

@@ -1,2 +0,3 @@

import { Octokit } from '@octokit/rest';
export declare function deleteBranch({ owner, repo, ref }: Octokit.GitDeleteRefParams): Promise<Octokit.AnyResponse>;
import { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods';
import { OctokitResponse } from '@octokit/types';
export declare function deleteBranch({ owner, repo, ref }: RestEndpointMethodTypes['git']['deleteRef']['parameters']): Promise<OctokitResponse<any>>;

@@ -1,2 +0,2 @@

import { Octokit } from '@octokit/rest';
import { getRepoBranch } from './get-repo-branches';
declare type LatestBranchCommit = {

@@ -24,5 +24,5 @@ author: {

url: string;
commit?: object;
commit?: Record<string, unknown>;
};
export declare function getLatestBranchCommit({ owner, repo, branch }: Octokit.ReposGetBranchParams): Promise<LatestBranchCommit>;
export declare function getLatestBranchCommit({ owner, repo, branch }: Parameters<typeof getRepoBranch>[0]): Promise<LatestBranchCommit>;
export declare function getLatestDevelopCommit({ owner, repo }: {

@@ -29,0 +29,0 @@ owner: string;

@@ -1,4 +0,5 @@

import { Octokit } from '@octokit/rest';
export declare function getRepoBranch({ owner, repo, branch }: Octokit.ReposGetBranchParams): Promise<Octokit.ReposGetBranchResponse>;
export declare function getRepoBranches({ owner, repo }: Octokit.ReposListBranchesParams): Promise<Octokit.ReposListBranchesResponse>;
import { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods';
import { ReposGetBranchResponseData, ReposListBranchesResponseData } from '@octokit/types';
export declare function getRepoBranch({ owner, repo, branch }: RestEndpointMethodTypes['repos']['getBranch']['parameters']): Promise<ReposGetBranchResponseData>;
export declare function getRepoBranches({ owner, repo }: RestEndpointMethodTypes['repos']['listBranches']['parameters']): Promise<ReposListBranchesResponseData>;
export declare function getRepoBranchesNames({ owner, repo }: {

@@ -5,0 +6,0 @@ owner: string;

@@ -1,2 +0,2 @@

import { Octokit } from '@octokit/rest';
export declare function listOrgRepos(org: string): Promise<Octokit.ReposListForOrgResponseItem[]>;
import { ReposListForOrgResponseData } from '@octokit/types';
export declare function listOrgRepos(org: string): Promise<ReposListForOrgResponseData>;
{
"name": "@shelf/gh-sdk",
"version": "0.2.3",
"version": "0.3.0",
"description": "Convenient wrapper for GitHub API for automation tasks",

@@ -48,21 +48,21 @@ "license": "MIT",

"dependencies": {
"@octokit/rest": "16.43.1",
"lodash": "4.17.15"
"@octokit/rest": "18.0.6",
"lodash": "4.17.20"
},
"devDependencies": {
"@babel/cli": "7.8.4",
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"@babel/preset-typescript": "7.9.0",
"@shelf/eslint-config": "0.19.0",
"@babel/cli": "7.12.1",
"@babel/core": "7.12.3",
"@babel/preset-env": "7.12.1",
"@babel/preset-typescript": "7.12.1",
"@shelf/eslint-config": "0.23.1",
"@shelf/prettier-config": "0.0.7",
"@types/jest": "26.0.9",
"@types/jest": "26.0.15",
"@types/node": "12.12.31",
"babel-jest": "26.2.2",
"eslint": "7.1.0",
"husky": "4.2.5",
"jest": "26.2.2",
"lint-staged": "10.2.6",
"prettier": "2.0.5",
"typescript": "3.9.3"
"babel-jest": "26.6.0",
"eslint": "7.11.0",
"husky": "4.3.0",
"jest": "26.6.0",
"lint-staged": "10.4.2",
"prettier": "2.1.2",
"typescript": "4.0.3"
},

@@ -69,0 +69,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc