typescript-github-action-template 0.2.51 → 0.2.53
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.
- package/README.md +0 -1
- package/dist/__graphql__/graphql.d.ts +32 -0
- package/dist/getOctokit.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -8,4 +8,3 @@ The following secrets need to be set up before you can use workflows already def
|
|
|
8
8
|
|
|
9
9
|
- **`CHECK_GIT_STATUS_BOT_APP_ID`** and **`CHECK_GIT_STATUS_BOT_APP_PRIVATE_KEY`**: Used by the [`Build` workflow](https://github.com/CatChen/typescript-github-action-template/blob/main/.github/workflows/build.yml). If you don't want to set up a bot you can remove the `actions/create-github-app-token` step and remove all references to `steps.get-github-app-token.outputs.token`.
|
|
10
10
|
- **`ACCEPT_TO_SHIP_BOT_APP_ID`** and **`ACCEPT_TO_SHIP_BOT_APP_PRIVATE_KEY`**: Used by the [`Ship` workflow](https://github.com/CatChen/typescript-github-action-template/blob/main/.github/workflows/ship.yml). If you don't want to set up a bot you can remove the two `actions/create-github-app-token` steps and remove all references to `steps.get-github-app-token.outputs.token`.
|
|
11
|
-
- **`NPM_TOKEN`**: Used by the [`Release` workflow](https://github.com/CatChen/typescript-github-action-template/blob/main/.github/workflows/release.yml). This is necessary for publishing the NPM package to NPM. If you don't want to publish to NPM you can remove the `publish` job.
|
|
@@ -4269,6 +4269,8 @@ export type CreateRepositoryCustomPropertyInput = {
|
|
|
4269
4269
|
propertyName: Scalars['String']['input'];
|
|
4270
4270
|
/** The regex pattern that the value of the custom property must match, if the `value_type` is `string`. */
|
|
4271
4271
|
regex?: InputMaybe<Scalars['String']['input']>;
|
|
4272
|
+
/** Whether this repository custom property requires explicit values. */
|
|
4273
|
+
requireExplicitValues?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4272
4274
|
/** Whether the custom property is required. */
|
|
4273
4275
|
required?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4274
4276
|
/** The global relay id of the source in which a new custom property should be created in. */
|
|
@@ -9608,6 +9610,10 @@ export type IssueTimelineItemsItemType =
|
|
|
9608
9610
|
| 'DISCONNECTED_EVENT'
|
|
9609
9611
|
/** Represents a comment on an Issue. */
|
|
9610
9612
|
| 'ISSUE_COMMENT'
|
|
9613
|
+
/** Represents a 'issue_comment_pinned' event on a given issue. */
|
|
9614
|
+
| 'ISSUE_COMMENT_PINNED_EVENT'
|
|
9615
|
+
/** Represents a 'issue_comment_unpinned' event on a given issue. */
|
|
9616
|
+
| 'ISSUE_COMMENT_UNPINNED_EVENT'
|
|
9611
9617
|
/** Represents a 'issue_field_added' event on a given issue. */
|
|
9612
9618
|
| 'ISSUE_FIELD_ADDED_EVENT'
|
|
9613
9619
|
/** Represents a 'issue_field_changed' event on a given issue. */
|
|
@@ -20363,6 +20369,12 @@ export type PullRequestContributionsByRepositoryContributionsArgs = {
|
|
|
20363
20369
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
20364
20370
|
orderBy?: InputMaybe<ContributionOrder>;
|
|
20365
20371
|
};
|
|
20372
|
+
/** The policy controlling who can create pull requests in a repository. */
|
|
20373
|
+
export type PullRequestCreationPolicy =
|
|
20374
|
+
/** Anyone can create pull requests. */
|
|
20375
|
+
'ALL'
|
|
20376
|
+
/** Only collaborators can create pull requests. */
|
|
20377
|
+
| 'COLLABORATORS_ONLY';
|
|
20366
20378
|
/** An edge in a connection. */
|
|
20367
20379
|
export type PullRequestEdge = {
|
|
20368
20380
|
__typename: 'PullRequestEdge';
|
|
@@ -21043,6 +21055,10 @@ export type PullRequestTimelineItemsItemType =
|
|
|
21043
21055
|
| 'HEAD_REF_RESTORED_EVENT'
|
|
21044
21056
|
/** Represents a comment on an Issue. */
|
|
21045
21057
|
| 'ISSUE_COMMENT'
|
|
21058
|
+
/** Represents a 'issue_comment_pinned' event on a given issue. */
|
|
21059
|
+
| 'ISSUE_COMMENT_PINNED_EVENT'
|
|
21060
|
+
/** Represents a 'issue_comment_unpinned' event on a given issue. */
|
|
21061
|
+
| 'ISSUE_COMMENT_UNPINNED_EVENT'
|
|
21046
21062
|
/** Represents a 'issue_field_added' event on a given issue. */
|
|
21047
21063
|
| 'ISSUE_FIELD_ADDED_EVENT'
|
|
21048
21064
|
/** Represents a 'issue_field_changed' event on a given issue. */
|
|
@@ -24481,6 +24497,8 @@ export type Repository = Node & PackageOwner & ProjectOwner & ProjectV2Recent &
|
|
|
24481
24497
|
hasIssuesEnabled: Scalars['Boolean']['output'];
|
|
24482
24498
|
/** Indicates if the repository has the Projects feature enabled. */
|
|
24483
24499
|
hasProjectsEnabled: Scalars['Boolean']['output'];
|
|
24500
|
+
/** Indicates if the repository has the pull requests feature enabled. */
|
|
24501
|
+
hasPullRequestsEnabled: Scalars['Boolean']['output'];
|
|
24484
24502
|
/** Indicates if the repository displays a Sponsor button for financial contributions. */
|
|
24485
24503
|
hasSponsorshipsEnabled: Scalars['Boolean']['output'];
|
|
24486
24504
|
/** Whether vulnerability alerts are enabled for the repository. */
|
|
@@ -24601,6 +24619,8 @@ export type Repository = Node & PackageOwner & ProjectOwner & ProjectV2Recent &
|
|
|
24601
24619
|
projectsV2: ProjectV2Connection;
|
|
24602
24620
|
/** Returns a single pull request from the current repository by number. */
|
|
24603
24621
|
pullRequest?: Maybe<PullRequest>;
|
|
24622
|
+
/** The policy controlling who can create pull requests in this repository. */
|
|
24623
|
+
pullRequestCreationPolicy?: Maybe<PullRequestCreationPolicy>;
|
|
24604
24624
|
/** Returns a list of pull request templates associated to the repository */
|
|
24605
24625
|
pullRequestTemplates?: Maybe<Array<PullRequestTemplate>>;
|
|
24606
24626
|
/** A list of pull requests that have been opened in the repository. */
|
|
@@ -25220,6 +25240,8 @@ export type RepositoryCustomProperty = Node & {
|
|
|
25220
25240
|
propertyName: Scalars['String']['output'];
|
|
25221
25241
|
/** The regex pattern that the value of the custom property must match, if the `value_type` is `string`. */
|
|
25222
25242
|
regex?: Maybe<Scalars['String']['output']>;
|
|
25243
|
+
/** Whether this repository custom property requires explicit values. */
|
|
25244
|
+
requireExplicitValues?: Maybe<Scalars['Boolean']['output']>;
|
|
25223
25245
|
/** Whether the custom property is required. */
|
|
25224
25246
|
required?: Maybe<Scalars['Boolean']['output']>;
|
|
25225
25247
|
/** The source type of the custom property. */
|
|
@@ -25350,6 +25372,8 @@ export type RepositoryInfo = {
|
|
|
25350
25372
|
hasIssuesEnabled: Scalars['Boolean']['output'];
|
|
25351
25373
|
/** Indicates if the repository has the Projects feature enabled. */
|
|
25352
25374
|
hasProjectsEnabled: Scalars['Boolean']['output'];
|
|
25375
|
+
/** Indicates if the repository has the pull requests feature enabled. */
|
|
25376
|
+
hasPullRequestsEnabled: Scalars['Boolean']['output'];
|
|
25353
25377
|
/** Indicates if the repository displays a Sponsor button for financial contributions. */
|
|
25354
25378
|
hasSponsorshipsEnabled: Scalars['Boolean']['output'];
|
|
25355
25379
|
/** Indicates if the repository has wiki feature enabled. */
|
|
@@ -25384,6 +25408,8 @@ export type RepositoryInfo = {
|
|
|
25384
25408
|
openGraphImageUrl: Scalars['URI']['output'];
|
|
25385
25409
|
/** The User owner of the repository. */
|
|
25386
25410
|
owner: RepositoryOwner;
|
|
25411
|
+
/** The policy controlling who can create pull requests in this repository. */
|
|
25412
|
+
pullRequestCreationPolicy?: Maybe<PullRequestCreationPolicy>;
|
|
25387
25413
|
/** Identifies the date and time when the repository was last pushed to. */
|
|
25388
25414
|
pushedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
25389
25415
|
/** The HTTP path for this repository */
|
|
@@ -31895,6 +31921,8 @@ export type UpdateRepositoryCustomPropertyInput = {
|
|
|
31895
31921
|
regex?: InputMaybe<Scalars['String']['input']>;
|
|
31896
31922
|
/** The global relay id of the source of the custom property. */
|
|
31897
31923
|
repositoryCustomPropertyId: Scalars['ID']['input'];
|
|
31924
|
+
/** Whether this repository custom property requires explicit values. */
|
|
31925
|
+
requireExplicitValues?: InputMaybe<Scalars['Boolean']['input']>;
|
|
31898
31926
|
/** Whether the updated custom property is required. */
|
|
31899
31927
|
required?: InputMaybe<Scalars['Boolean']['input']>;
|
|
31900
31928
|
/** The updated actors who can edit the values of the custom property. */
|
|
@@ -31920,6 +31948,8 @@ export type UpdateRepositoryInput = {
|
|
|
31920
31948
|
hasIssuesEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
31921
31949
|
/** Indicates if the repository should have the project boards feature enabled. */
|
|
31922
31950
|
hasProjectsEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
31951
|
+
/** Indicates if the repository should have the pull requests feature enabled. */
|
|
31952
|
+
hasPullRequestsEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
31923
31953
|
/** Indicates if the repository displays a Sponsor button for financial contributions. */
|
|
31924
31954
|
hasSponsorshipsEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
31925
31955
|
/** Indicates if the repository should have the wiki feature enabled. */
|
|
@@ -31928,6 +31958,8 @@ export type UpdateRepositoryInput = {
|
|
|
31928
31958
|
homepageUrl?: InputMaybe<Scalars['URI']['input']>;
|
|
31929
31959
|
/** The new name of the repository. */
|
|
31930
31960
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
31961
|
+
/** The policy controlling who can create pull requests in this repository. */
|
|
31962
|
+
pullRequestCreationPolicy?: InputMaybe<PullRequestCreationPolicy>;
|
|
31931
31963
|
/** The ID of the repository to update. */
|
|
31932
31964
|
repositoryId: Scalars['ID']['input'];
|
|
31933
31965
|
/**
|
package/dist/getOctokit.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typescript-github-action-template",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.53",
|
|
4
4
|
"description": "A template to create custom GitHub Action with TypeScript/JavaScript.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"codegen": "rm -rf src/__graphql__ && graphql-codegen-esm --config codegen.ts",
|
|
10
10
|
"build": "rm -rf dist && yarn tsc",
|
|
11
|
-
"bundle": "rm -rf bundle && yarn ncc build src/index.ts --
|
|
11
|
+
"bundle": "rm -rf bundle && yarn ncc build src/index.ts --source-map --license licenses.txt --out bundle",
|
|
12
12
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
13
|
"lint": "eslint -c eslint.config.js",
|
|
14
14
|
"prepublishOnly": "pinst --disable && yarn build",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@0no-co/graphqlsp": "^1.12.12",
|
|
31
31
|
"@eslint/eslintrc": "^3.0.2",
|
|
32
32
|
"@eslint/js": "^10.0.1",
|
|
33
|
-
"@graphql-codegen/cli": "6.1.
|
|
33
|
+
"@graphql-codegen/cli": "6.1.2",
|
|
34
34
|
"@graphql-codegen/near-operation-file-preset": "^4.0.0",
|
|
35
|
-
"@graphql-codegen/typescript": "5.0.
|
|
36
|
-
"@graphql-codegen/typescript-document-nodes": "5.0.
|
|
35
|
+
"@graphql-codegen/typescript": "5.0.8",
|
|
36
|
+
"@graphql-codegen/typescript-document-nodes": "5.0.8",
|
|
37
37
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
38
38
|
"@serverless-guru/prettier-plugin-import-order": "^0.4.2",
|
|
39
39
|
"@types/node": "^25.0.0",
|