@firestartr/cli 2.5.0 → 2.6.0-snapshot-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,8 @@ import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/au
4
4
  import { encryptRepoSecret, getRepoPublicKey } from './src/encrypt';
5
5
  import type { RepoSecretsSection } from './src/encrypt';
6
6
  import type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary } from './src/workflow';
7
+ import { withProfile } from './src/with_profile';
8
+ import { createProfile } from './src/profile';
7
9
  declare const _default: {
8
10
  org: {
9
11
  getRepositoryList: typeof import("./src/organization").getRepositoryList;
@@ -71,11 +73,11 @@ declare const _default: {
71
73
  }) => Promise<any>;
72
74
  };
73
75
  issues: {
74
- create: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
75
- update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[]) => Promise<any>;
76
- close: (owner: string, repo: string, issue_number: number) => Promise<any>;
77
- filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string) => Promise<any>;
78
- upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
76
+ create: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
77
+ update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
78
+ close: (owner: string, repo: string, issue_number: number, octokit?: any) => Promise<any>;
79
+ filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string, octokit?: any) => Promise<any>;
80
+ upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
79
81
  };
80
82
  branches: {
81
83
  listBranches: typeof import("./src/branches").listBranches;
@@ -98,7 +100,9 @@ declare const _default: {
98
100
  encryptRepoSecret: typeof encryptRepoSecret;
99
101
  getRepoPublicKey: typeof getRepoPublicKey;
100
102
  };
103
+ withProfile: typeof withProfile;
104
+ createProfile: typeof createProfile;
101
105
  };
102
106
  export default _default;
103
- export { RepoSecretsSection };
107
+ export { RepoSecretsSection, createProfile };
104
108
  export type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary, };
@@ -3,11 +3,14 @@ import type { Api } from '@octokit/plugin-rest-endpoint-methods/dist-types/types
3
3
  import type { PaginateInterface } from '@octokit/plugin-paginate-rest/dist-types/types';
4
4
  import type { paginateGraphQLInterface } from '@octokit/plugin-paginate-graphql/dist-types/index.js';
5
5
  export declare const generateGithubAppToken: (config: any) => Promise<string>;
6
+ type GithubAuthConfig = import('./config_resolver').GithubAuthConfig;
7
+ export declare function getGithubAppTokenWithConfig(config: GithubAuthConfig, genGithubAppToken?: any): Promise<string>;
6
8
  export declare function getGithubAppToken(org: string, genGithubAppToken?: any): Promise<string>;
7
9
  type ExtendedOctokit = Octokit & Api & {
8
10
  paginate: PaginateInterface;
9
11
  } & paginateGraphQLInterface;
10
12
  export { ExtendedOctokit };
13
+ export declare function getOctokitForOrgWithConfig(org: string, config: GithubAuthConfig, paginated?: boolean, genGithubAppToken?: any): Promise<ExtendedOctokit>;
11
14
  export declare function getOctokitForOrg(org: string, paginated?: boolean, genGithubAppToken?: any): Promise<ExtendedOctokit>;
12
15
  export declare function getOctokitFromPat(envVar: string): Promise<ExtendedOctokit>;
13
16
  declare const _default: {
@@ -1,2 +1,3 @@
1
+ export declare function getInstallationIDWithConfig(org: string, config: any): Promise<any>;
1
2
  export declare function getInstallationID(org?: string): Promise<any>;
2
3
  export declare function checkIfInstalledForOrg(org?: string): Promise<boolean>;