typescript-github-action-template 0.2.50 → 0.2.51

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.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
3
3
  */
4
- export declare function graphql(source: '\n query ViewerLogin {\n viewer {\n login\n }\n }\n'): typeof import('./graphql.js').ViewerLoginDocument;
4
+ export declare function graphql(source: '\n query ViewerLogin {\n viewer {\n id\n login\n }\n }\n'): typeof import('./graphql.js').ViewerLoginDocument;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import * as types from './graphql.js';
3
3
  const documents = {
4
- '\n query ViewerLogin {\n viewer {\n login\n }\n }\n': types.ViewerLoginDocument,
4
+ '\n query ViewerLogin {\n viewer {\n id\n login\n }\n }\n': types.ViewerLoginDocument,
5
5
  };
6
6
  export function graphql(source) {
7
7
  var _a;
@@ -29295,9 +29295,15 @@ export type Team = MemberStatusable & Node & Subscribable & {
29295
29295
  url: Scalars['URI']['output'];
29296
29296
  /** Team is adminable by the viewer. */
29297
29297
  viewerCanAdminister: Scalars['Boolean']['output'];
29298
- /** Check if the viewer is able to change their subscription status for the repository. */
29298
+ /**
29299
+ * Check if the viewer is able to change their subscription status for the subscribable entity.
29300
+ * @deprecated `Team.viewerCanSubscribe` will be removed. Team notifications subscriptions are being deprecated. Removal on 2026-07-01 UTC.
29301
+ */
29299
29302
  viewerCanSubscribe: Scalars['Boolean']['output'];
29300
- /** Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. */
29303
+ /**
29304
+ * Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.
29305
+ * @deprecated `Team.viewerSubscription` will be removed. Team notifications subscriptions are being deprecated. Removal on 2026-07-01 UTC.
29306
+ */
29301
29307
  viewerSubscription?: Maybe<SubscriptionState>;
29302
29308
  };
29303
29309
  /** A team of users in an organization. */
@@ -33307,6 +33313,7 @@ export type ViewerLoginQuery = {
33307
33313
  __typename: 'Query';
33308
33314
  viewer: {
33309
33315
  __typename: 'User';
33316
+ id: string;
33310
33317
  login: string;
33311
33318
  };
33312
33319
  };
@@ -11,6 +11,7 @@ export class TypedDocumentString extends String {
11
11
  export const ViewerLoginDocument = new TypedDocumentString(`
12
12
  query ViewerLogin {
13
13
  viewer {
14
+ id
14
15
  login
15
16
  }
16
17
  }
package/dist/index.js CHANGED
@@ -13,14 +13,15 @@ import { getOctokit } from './getOctokit.js';
13
13
  const queryViewerLogin = graphql(`
14
14
  query ViewerLogin {
15
15
  viewer {
16
+ id
16
17
  login
17
18
  }
18
19
  }
19
- `).toString();
20
+ `);
20
21
  export function getLogin(githubToken) {
21
22
  return __awaiter(this, void 0, void 0, function* () {
22
23
  const octokit = getOctokit(githubToken);
23
- const { viewer: { login }, } = (yield octokit.graphql(queryViewerLogin, {}));
24
+ const { viewer: { login }, } = yield octokit.graphql(queryViewerLogin.toString(), {});
24
25
  return login;
25
26
  });
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-github-action-template",
3
- "version": "0.2.50",
3
+ "version": "0.2.51",
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",
@@ -29,17 +29,18 @@
29
29
  "devDependencies": {
30
30
  "@0no-co/graphqlsp": "^1.12.12",
31
31
  "@eslint/eslintrc": "^3.0.2",
32
- "@eslint/js": "^9.2.0",
32
+ "@eslint/js": "^10.0.1",
33
33
  "@graphql-codegen/cli": "6.1.1",
34
34
  "@graphql-codegen/near-operation-file-preset": "^4.0.0",
35
35
  "@graphql-codegen/typescript": "5.0.7",
36
36
  "@graphql-codegen/typescript-document-nodes": "5.0.7",
37
+ "@graphql-eslint/eslint-plugin": "^4.4.0",
37
38
  "@serverless-guru/prettier-plugin-import-order": "^0.4.2",
38
39
  "@types/node": "^25.0.0",
39
40
  "@typescript-eslint/eslint-plugin": "^8.0.0",
40
41
  "@typescript-eslint/parser": "^8.0.0",
41
42
  "@vercel/ncc": "^0.38.0",
42
- "eslint": "^9.0.0",
43
+ "eslint": "^10.0.0",
43
44
  "eslint-config-prettier": "^10.0.1",
44
45
  "eslint-plugin-prettier": "^5.0.0",
45
46
  "graphql": "^16.9.0",
@@ -54,6 +55,7 @@
54
55
  "dependencies": {
55
56
  "@actions/core": "^3.0.0",
56
57
  "@actions/github": "^9.0.0",
58
+ "@graphql-typed-document-node/core": "^3.2.0",
57
59
  "@octokit/plugin-retry": "^8.0.1",
58
60
  "@octokit/plugin-throttling": "^11.0.1"
59
61
  },