Compare commits

..

130 Commits

Author SHA1 Message Date
Ian Sanders
31b3f3ccdc Merge pull request #338 from saravanan30erd/fix-url-match
Allow projects outside github.com
2023-04-03 10:36:57 -04:00
Saravanan Palanisamy
039f00e4e1 Merge pull request #1 from iansan5653/fix-url-match
Resolve conflicts & invert test assertion
2023-04-01 01:26:04 +04:00
Ian Sanders
74235d0976 Invert test that rejected non-github.com URLs 2023-03-31 19:43:22 +00:00
Ian Sanders
5d4ef34b4c Merge branch 'main' of https://github.com/actions/add-to-project into fix-url-match 2023-03-31 19:36:16 +00:00
Saravanan Palanisamy
38a0adc233 fix dist check 2023-03-30 21:54:08 +04:00
Saravanan Palanisamy
90818bfeba fix test - throws an error when url isn't a valid project url 2023-03-30 21:36:17 +04:00
Ian Sanders
2a9da7be76 Update src/add-to-project.ts 2023-03-30 12:36:53 -04:00
Saravanan Palanisamy
07c29ba779 remove TODO comment and update error message 2023-03-30 20:21:09 +04:00
Matthew Costabile
5b64707bb3 Merge pull request #352 from actions/dependabot/npm_and_yarn/concurrently-8.0.1
build(deps-dev): bump concurrently from 7.6.0 to 8.0.1
2023-03-30 10:33:32 -04:00
Matthew Costabile
321b7eb9bf Merge pull request #351 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.7.0
build(deps-dev): bump eslint-plugin-github from 4.6.1 to 4.7.0
2023-03-30 10:32:55 -04:00
Matthew Costabile
83244eb733 update 2023-03-30 14:31:28 +00:00
Matthew Costabile
fdae002f2c update 2023-03-30 14:29:56 +00:00
Matthew Costabile
c475ba7265 checkin licensed 2023-03-30 14:29:06 +00:00
dependabot[bot]
7a13e6eeb9 build(deps-dev): bump concurrently from 7.6.0 to 8.0.1
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.6.0 to 8.0.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.6.0...v8.0.1)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 14:02:45 +00:00
dependabot[bot]
7a13494c05 build(deps-dev): bump eslint-plugin-github from 4.6.1 to 4.7.0
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.6.1 to 4.7.0.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.6.1...v4.7.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 14:02:01 +00:00
Omer Bensaadon
a6e07cb1e4 Merge pull request #350 from actions/dependabot/npm_and_yarn/types/node-16.18.23
build(deps-dev): bump @types/node from 16.18.14 to 16.18.23
2023-03-30 09:41:39 -04:00
dependabot[bot]
9e340dd475 build(deps-dev): bump @types/node from 16.18.14 to 16.18.23
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.14 to 16.18.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 13:41:30 +00:00
Omer Bensaadon
0893101300 Merge pull request #348 from actions/dependabot/npm_and_yarn/eslint-8.37.0
build(deps-dev): bump eslint from 8.35.0 to 8.37.0
2023-03-30 09:41:15 -04:00
dependabot[bot]
2250fd41d0 build(deps-dev): bump eslint from 8.35.0 to 8.37.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.35.0 to 8.37.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.35.0...v8.37.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 13:41:02 +00:00
Omer Bensaadon
8a14d78fcf Merge pull request #346 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.57.0
build(deps-dev): bump @typescript-eslint/parser from 5.54.1 to 5.57.0
2023-03-30 09:40:45 -04:00
Omer Bensaadon
a3544f542a Merge pull request #340 from actions/dependabot/npm_and_yarn/prettier-2.8.7
build(deps-dev): bump prettier from 2.8.5 to 2.8.7
2023-03-30 09:40:19 -04:00
dependabot[bot]
39569f9b7d build(deps-dev): bump @typescript-eslint/parser from 5.54.1 to 5.57.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.54.1 to 5.57.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 13:39:57 +00:00
dependabot[bot]
15db5ef38c build(deps-dev): bump prettier from 2.8.5 to 2.8.7
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.5 to 2.8.7.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.5...2.8.7)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 13:39:31 +00:00
Omer Bensaadon
f6bbaa9eb7 Merge pull request #226 from actions/dependabot/npm_and_yarn/actions/github-5.1.1
build(deps): bump @actions/github from 5.0.3 to 5.1.1
2023-03-30 09:38:47 -04:00
Omer Bensaadon
88d0700668 Merge branch 'main' into dependabot/npm_and_yarn/actions/github-5.1.1 2023-03-30 09:38:38 -04:00
Saravanan Palanisamy
399442f46a change regex to support non-github.com URLs 2023-03-23 16:34:09 +04:00
dependabot[bot]
e78e561fec build(deps-dev): bump prettier from 2.8.4 to 2.8.5 (#334)
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.4 to 2.8.5.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.4...2.8.5)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 11:13:39 -03:00
Matthew Costabile
097fa0553b Merge pull request #329 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.54.1
build(deps-dev): bump @typescript-eslint/parser from 5.53.0 to 5.54.1
2023-03-10 08:31:52 -05:00
Matthew Costabile
703deace27 Merge pull request #326 from actions/dependabot/npm_and_yarn/eslint-8.35.0
build(deps-dev): bump eslint from 8.34.0 to 8.35.0
2023-03-10 08:31:38 -05:00
dependabot[bot]
895720c423 build(deps-dev): bump @typescript-eslint/parser from 5.53.0 to 5.54.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.53.0 to 5.54.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-10 13:30:18 +00:00
dependabot[bot]
b433768232 build(deps-dev): bump eslint from 8.34.0 to 8.35.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.34.0 to 8.35.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.34.0...v8.35.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-10 13:30:02 +00:00
Matthew Costabile
22caa11a6d Merge pull request #330 from rootulp/patch-1
typo: repo -> project
2023-03-10 08:29:41 -05:00
Matthew Costabile
16df187cf9 Merge pull request #328 from actions/dependabot/npm_and_yarn/types/node-16.18.14
build(deps-dev): bump @types/node from 16.18.12 to 16.18.14
2023-03-10 08:29:18 -05:00
Rootul P
ad9efdf1e6 typo: repo -> project
I think this is a typo because the line following the comment doesn't reference a repo, it references a project.
2023-03-08 14:02:48 -05:00
dependabot[bot]
777245737e build(deps-dev): bump @types/node from 16.18.12 to 16.18.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.12 to 16.18.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 14:15:18 +00:00
dependabot[bot]
5f4850959b build(deps): bump @actions/github from 5.0.3 to 5.1.1
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 5.0.3 to 5.1.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 13:28:08 +00:00
Matthew Costabile
4756e6330f Merge pull request #324 from actions/mattcosta7/patch-1
Mattcosta7/patch 1
2023-02-27 08:27:15 -05:00
Matthew Costabile
9f96b16f44 debug log for issue labels 2023-02-27 13:21:54 +00:00
Matthew Costabile
5f0c606906 enable un unchecked indexed access 2023-02-27 13:15:25 +00:00
Ian Sanders
11ef9e1e8d Merge pull request #319 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.53.0
build(deps-dev): bump @typescript-eslint/parser from 5.52.0 to 5.53.0
2023-02-21 09:48:27 -05:00
dependabot[bot]
a28950b59e build(deps-dev): bump @typescript-eslint/parser from 5.52.0 to 5.53.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.52.0 to 5.53.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.53.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 14:00:46 +00:00
Matthew Costabile
5b15b1a619 Merge pull request #317 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.6.1
build(deps-dev): bump eslint-plugin-github from 4.6.0 to 4.6.1
2023-02-15 09:03:26 -05:00
dependabot[bot]
10934d1d3d build(deps-dev): bump eslint-plugin-github from 4.6.0 to 4.6.1
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.6.0...v4.6.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-15 14:00:36 +00:00
Matthew Costabile
8434539ee2 Merge pull request #316 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.52.0
build(deps-dev): bump @typescript-eslint/parser from 5.51.0 to 5.52.0
2023-02-14 22:37:23 -05:00
dependabot[bot]
83567abcd1 build(deps-dev): bump @typescript-eslint/parser from 5.51.0 to 5.52.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.51.0 to 5.52.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.52.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 14:00:57 +00:00
Matthew Costabile
ba4c19ddac Merge pull request #315 from actions/dependabot/npm_and_yarn/eslint-8.34.0
build(deps-dev): bump eslint from 8.33.0 to 8.34.0
2023-02-13 15:08:00 -05:00
dependabot[bot]
2547408f6f build(deps-dev): bump eslint from 8.33.0 to 8.34.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.33.0 to 8.34.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.34.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 14:14:33 +00:00
Matthew Costabile
28a69b27b6 Merge pull request #313 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.51.0
build(deps-dev): bump @typescript-eslint/parser from 5.50.0 to 5.51.0
2023-02-08 08:15:28 -05:00
Matthew Costabile
ecb32ed323 Merge pull request #314 from actions/dependabot/npm_and_yarn/prettier-2.8.4
build(deps-dev): bump prettier from 2.8.3 to 2.8.4
2023-02-08 08:14:50 -05:00
dependabot[bot]
03c85cc34a build(deps-dev): bump prettier from 2.8.3 to 2.8.4
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.3 to 2.8.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.3...2.8.4)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-08 13:06:10 +00:00
dependabot[bot]
70264bb4d1 build(deps-dev): bump @typescript-eslint/parser from 5.50.0 to 5.51.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.50.0 to 5.51.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.51.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-07 13:07:32 +00:00
dependabot[bot]
5a55c0cba5 build(deps-dev): bump @types/node from 16.18.11 to 16.18.12 (#312)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.11 to 16.18.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 10:27:37 -04:00
Matthew Costabile
09abe09dcd Merge pull request #309 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.50.0
build(deps-dev): bump @typescript-eslint/parser from 5.49.0 to 5.50.0
2023-01-31 10:14:44 -05:00
Matthew Costabile
ed88cdc97d Merge pull request #308 from actions/dependabot/npm_and_yarn/eslint-8.33.0
build(deps-dev): bump eslint from 8.32.0 to 8.33.0
2023-01-31 10:14:28 -05:00
dependabot[bot]
a173cb1610 build(deps-dev): bump @typescript-eslint/parser from 5.49.0 to 5.50.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.49.0 to 5.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 15:10:06 +00:00
dependabot[bot]
b6a9b6ff3a build(deps-dev): bump eslint from 8.32.0 to 8.33.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.32.0 to 8.33.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.32.0...v8.33.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 15:09:56 +00:00
Matthew Costabile
3f557757a9 Merge pull request #307 from actions/dependabot/npm_and_yarn/vercel/ncc-0.36.1
build(deps-dev): bump @vercel/ncc from 0.36.0 to 0.36.1
2023-01-31 10:08:49 -05:00
Matthew Costabile
36391c5bc3 Merge pull request #310 from actions/dependabot/npm_and_yarn/typescript-4.9.5
build(deps-dev): bump typescript from 4.9.4 to 4.9.5
2023-01-31 10:08:29 -05:00
dependabot[bot]
b4ca87ff52 build(deps-dev): bump typescript from 4.9.4 to 4.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.4 to 4.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 13:07:03 +00:00
dependabot[bot]
1fdfb8c67e build(deps-dev): bump @vercel/ncc from 0.36.0 to 0.36.1
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.36.0 to 0.36.1.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.36.0...0.36.1)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-26 13:06:35 +00:00
Matthew Costabile
add81c33d2 Merge pull request #305 from actions/dependabot/npm_and_yarn/prettier-2.8.3
build(deps-dev): bump prettier from 2.8.1 to 2.8.3
2023-01-25 08:12:49 -05:00
dependabot[bot]
f760b9f1a0 build(deps-dev): bump prettier from 2.8.1 to 2.8.3
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.1...2.8.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-25 13:07:40 +00:00
Matthew Costabile
bcf48a5d57 Merge pull request #297 from actions/dependabot/npm_and_yarn/json5-1.0.2
build(deps): bump json5 from 1.0.1 to 1.0.2
2023-01-24 08:36:08 -05:00
Matthew Costabile
80b1710843 Merge pull request #298 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-27.2.1
build(deps-dev): bump eslint-plugin-jest from 27.1.7 to 27.2.1
2023-01-24 08:35:53 -05:00
Matthew Costabile
547a49eea1 Merge pull request #302 from actions/dependabot/npm_and_yarn/eslint-8.32.0
build(deps-dev): bump eslint from 8.30.0 to 8.32.0
2023-01-24 08:35:27 -05:00
Matthew Costabile
91b8ba84c0 Merge pull request #304 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.49.0
build(deps-dev): bump @typescript-eslint/parser from 5.47.1 to 5.49.0
2023-01-24 08:35:08 -05:00
dependabot[bot]
247085562b build(deps-dev): bump @typescript-eslint/parser from 5.47.1 to 5.49.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.47.1 to 5.49.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.49.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-24 13:08:18 +00:00
dependabot[bot]
99b54d5e6f build(deps-dev): bump eslint from 8.30.0 to 8.32.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.30.0 to 8.32.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.30.0...v8.32.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 13:13:53 +00:00
dependabot[bot]
e92b0df91d build(deps-dev): bump eslint-plugin-jest from 27.1.7 to 27.2.1
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.1.7 to 27.2.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v27.1.7...v27.2.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 13:15:27 +00:00
dependabot[bot]
6bf5cd2100 build(deps): bump json5 from 1.0.1 to 1.0.2
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-07 20:11:12 +00:00
Matthew Costabile
aebf7de9ea Merge pull request #292 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.47.1
build(deps-dev): bump @typescript-eslint/parser from 5.47.0 to 5.47.1
2022-12-27 10:32:49 -05:00
dependabot[bot]
e83ada4abb build(deps-dev): bump @typescript-eslint/parser from 5.47.0 to 5.47.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.47.0 to 5.47.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-27 15:24:03 +00:00
Matthew Costabile
f52b6e4974 Merge pull request #291 from actions/dependabot/npm_and_yarn/types/node-16.18.11
build(deps-dev): bump @types/node from 16.18.10 to 16.18.11
2022-12-27 10:09:53 -05:00
dependabot[bot]
60ba784944 build(deps-dev): bump @types/node from 16.18.10 to 16.18.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.10 to 16.18.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-27 13:07:06 +00:00
Matthew Costabile
00f7bf6e9b Merge pull request #290 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.47.0
build(deps-dev): bump @typescript-eslint/parser from 5.46.1 to 5.47.0
2022-12-20 09:38:50 -05:00
dependabot[bot]
41f5c1fa85 build(deps-dev): bump @typescript-eslint/parser from 5.46.1 to 5.47.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.46.1 to 5.47.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-20 13:15:01 +00:00
Matthew Costabile
f64617d938 Merge pull request #288 from actions/dependabot/npm_and_yarn/eslint-8.30.0
build(deps-dev): bump eslint from 8.29.0 to 8.30.0
2022-12-19 10:45:42 -05:00
Matthew Costabile
26739f107e Merge pull request #287 from actions/dependabot/npm_and_yarn/types/node-16.18.10
build(deps-dev): bump @types/node from 16.18.9 to 16.18.10
2022-12-19 10:45:28 -05:00
dependabot[bot]
383f6dfeb4 build(deps-dev): bump eslint from 8.29.0 to 8.30.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.29.0 to 8.30.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.29.0...v8.30.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-19 13:12:57 +00:00
dependabot[bot]
ce1983ff4e build(deps-dev): bump @types/node from 16.18.9 to 16.18.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.9 to 16.18.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-19 13:12:32 +00:00
Matthew Costabile
52f0dde099 Merge pull request #286 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-27.1.7
build(deps-dev): bump eslint-plugin-jest from 27.1.6 to 27.1.7
2022-12-16 08:56:11 -05:00
dependabot[bot]
7d1730801e build(deps-dev): bump eslint-plugin-jest from 27.1.6 to 27.1.7
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.1.6 to 27.1.7.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v27.1.6...v27.1.7)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-16 13:05:59 +00:00
Matthew Costabile
dc0c796a1a Merge pull request #284 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.46.1
build(deps-dev): bump @typescript-eslint/parser from 5.46.0 to 5.46.1
2022-12-14 08:24:18 -05:00
dependabot[bot]
2abae3f03b build(deps-dev): bump @typescript-eslint/parser from 5.46.0 to 5.46.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.46.0 to 5.46.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.46.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 13:22:43 +00:00
Matthew Costabile
00a23495f4 Merge pull request #285 from actions/dependabot/npm_and_yarn/types/node-16.18.9
build(deps-dev): bump @types/node from 16.18.7 to 16.18.9
2022-12-14 08:22:08 -05:00
Matthew Costabile
d19a1438a9 Merge pull request #282 from MasterMedo/patch-1
Add documentation for setting a default status
2022-12-14 08:21:42 -05:00
dependabot[bot]
1b3c192b00 build(deps-dev): bump @types/node from 16.18.7 to 16.18.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.7 to 16.18.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 13:08:02 +00:00
Mislav Vuletić
92471ee0d5 Add documentation for setting a default status 2022-12-10 19:50:30 +01:00
Matthew Costabile
25580575b4 Merge pull request #281 from actions/dependabot/npm_and_yarn/types/node-16.18.7
build(deps-dev): bump @types/node from 16.18.6 to 16.18.7
2022-12-09 08:15:14 -05:00
dependabot[bot]
f38a93c5a3 build(deps-dev): bump @types/node from 16.18.6 to 16.18.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.6 to 16.18.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-09 13:06:37 +00:00
Matthew Costabile
f8f1995a9b Merge pull request #279 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.46.0
build(deps-dev): bump @typescript-eslint/parser from 5.45.1 to 5.46.0
2022-12-08 08:29:13 -05:00
Matthew Costabile
9ce1d75007 Merge pull request #280 from actions/dependabot/npm_and_yarn/typescript-4.9.4
build(deps-dev): bump typescript from 4.9.3 to 4.9.4
2022-12-08 08:29:06 -05:00
Matthew Costabile
0c2909c5fd Merge pull request #278 from actions/dependabot/npm_and_yarn/prettier-2.8.1
build(deps-dev): bump prettier from 2.8.0 to 2.8.1
2022-12-08 08:28:58 -05:00
dependabot[bot]
dd0961446c build(deps-dev): bump typescript from 4.9.3 to 4.9.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.3 to 4.9.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.3...v4.9.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 13:21:37 +00:00
dependabot[bot]
26f9feae0a build(deps-dev): bump @typescript-eslint/parser from 5.45.1 to 5.46.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.45.1 to 5.46.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.46.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 13:21:27 +00:00
dependabot[bot]
c261c9a95f build(deps-dev): bump prettier from 2.8.0 to 2.8.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.0...2.8.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 13:21:08 +00:00
Matthew Costabile
31901d229d Merge pull request #274 from actions/dependabot/npm_and_yarn/vercel/ncc-0.36.0
build(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.0
2022-12-07 09:26:02 -05:00
dependabot[bot]
0a78e5c8ed build(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.0
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.34.0 to 0.36.0.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.34.0...0.36.0)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-07 13:56:41 +00:00
Matthew Costabile
c4a92acacb Merge pull request #277 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.6.0
build(deps-dev): bump eslint-plugin-github from 4.4.1 to 4.6.0
2022-12-07 08:55:57 -05:00
dependabot[bot]
2ab330cfd5 build(deps-dev): bump eslint-plugin-github from 4.4.1 to 4.6.0
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.4.1 to 4.6.0.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.4.1...v4.6.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-07 13:07:35 +00:00
Matthew Costabile
06e54d7eae Merge pull request #276 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.45.1
build(deps-dev): bump @typescript-eslint/parser from 5.45.0 to 5.45.1
2022-12-06 10:44:00 -05:00
dependabot[bot]
91af7eb93e build(deps-dev): bump @typescript-eslint/parser from 5.45.0 to 5.45.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.45.0 to 5.45.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.45.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 15:43:50 +00:00
Matthew Costabile
47060e7c7b Merge pull request #275 from actions/dependabot/npm_and_yarn/types/node-16.18.6
build(deps-dev): bump @types/node from 16.18.4 to 16.18.6
2022-12-06 10:43:17 -05:00
Matthew Costabile
2163ff9e29 Merge pull request #273 from actions/dependabot/npm_and_yarn/eslint-8.29.0
build(deps-dev): bump eslint from 8.28.0 to 8.29.0
2022-12-06 10:42:58 -05:00
dependabot[bot]
70ce5a5ec5 build(deps-dev): bump @types/node from 16.18.4 to 16.18.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.4 to 16.18.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 13:09:50 +00:00
dependabot[bot]
78711d5ed6 build(deps-dev): bump eslint from 8.28.0 to 8.29.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.28.0 to 8.29.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.28.0...v8.29.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 13:09:07 +00:00
Matthew Costabile
a4a63c373b Merge pull request #272 from actions/dependabot/npm_and_yarn/types/node-16.18.4
build(deps-dev): bump @types/node from 16.18.3 to 16.18.4
2022-12-01 08:54:04 -05:00
Matthew Costabile
b7cc00e404 Merge pull request #271 from actions/dependabot/npm_and_yarn/github/prettier-config-0.0.6
build(deps-dev): bump @github/prettier-config from 0.0.4 to 0.0.6
2022-12-01 08:53:46 -05:00
dependabot[bot]
2ca1de6159 build(deps-dev): bump @types/node from 16.18.3 to 16.18.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.3 to 16.18.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-01 13:09:22 +00:00
dependabot[bot]
64a7c52604 build(deps-dev): bump @github/prettier-config from 0.0.4 to 0.0.6
Bumps [@github/prettier-config](https://github.com/github/prettier-config) from 0.0.4 to 0.0.6.
- [Release notes](https://github.com/github/prettier-config/releases)
- [Commits](https://github.com/github/prettier-config/compare/v0.0.4...v0.0.6)

---
updated-dependencies:
- dependency-name: "@github/prettier-config"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-01 13:08:29 +00:00
Matthew Costabile
7540d630bd Merge pull request #270 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.45.0
build(deps-dev): bump @typescript-eslint/parser from 5.44.0 to 5.45.0
2022-11-29 08:23:50 -05:00
dependabot[bot]
156525c5e2 build(deps-dev): bump @typescript-eslint/parser from 5.44.0 to 5.45.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.44.0 to 5.45.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.45.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 13:08:31 +00:00
Matthew Costabile
1885da210d Merge pull request #269 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-27.1.6
build(deps-dev): bump eslint-plugin-jest from 27.1.5 to 27.1.6
2022-11-28 09:17:09 -05:00
dependabot[bot]
16a5c31be8 build(deps-dev): bump eslint-plugin-jest from 27.1.5 to 27.1.6
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.1.5 to 27.1.6.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v27.1.5...v27.1.6)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-25 13:10:10 +00:00
Matthew Costabile
29766ca0ac Merge pull request #268 from actions/dependabot/npm_and_yarn/prettier-2.8.0
build(deps-dev): bump prettier from 2.7.1 to 2.8.0
2022-11-23 14:31:52 +01:00
dependabot[bot]
fe1b8050dc build(deps-dev): bump prettier from 2.7.1 to 2.8.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 2.8.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.7.1...2.8.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 13:06:36 +00:00
Matthew Costabile
d3e23d39c7 Merge pull request #267 from actions/dependabot/npm_and_yarn/typescript-4.9.3
build(deps-dev): bump typescript from 4.8.4 to 4.9.3
2022-11-22 15:00:41 +01:00
Matthew Costabile
e20f3a98a6 Merge pull request #266 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.44.0
build(deps-dev): bump @typescript-eslint/parser from 5.43.0 to 5.44.0
2022-11-22 15:00:15 +01:00
dependabot[bot]
5a7afe53e1 build(deps-dev): bump typescript from 4.8.4 to 4.9.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 4.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.4...v4.9.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-22 13:56:47 +00:00
dependabot[bot]
958916895a build(deps-dev): bump @typescript-eslint/parser from 5.43.0 to 5.44.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.43.0 to 5.44.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.44.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-22 13:56:42 +00:00
Matthew Costabile
bf580a9c46 Merge pull request #265 from actions/dependabot/npm_and_yarn/concurrently-7.6.0
build(deps-dev): bump concurrently from 7.5.0 to 7.6.0
2022-11-22 14:55:56 +01:00
dependabot[bot]
db7cb0d7f9 build(deps-dev): bump concurrently from 7.5.0 to 7.6.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.5.0 to 7.6.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.5.0...v7.6.0)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-22 13:53:49 +00:00
Matthew Costabile
b6a72217f5 Merge pull request #259 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-27.1.5
build(deps-dev): bump eslint-plugin-jest from 27.1.3 to 27.1.5
2022-11-21 18:14:57 +01:00
dependabot[bot]
686c1a45e0 build(deps-dev): bump eslint-plugin-jest from 27.1.3 to 27.1.5
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.1.3 to 27.1.5.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v27.1.3...v27.1.5)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 17:06:07 +00:00
Matthew Costabile
221804fc4f Merge pull request #262 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.43.0
build(deps-dev): bump @typescript-eslint/parser from 5.42.0 to 5.43.0
2022-11-21 18:05:44 +01:00
Matthew Costabile
b186de4d0e Merge pull request #253 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.4.1
build(deps-dev): bump eslint-plugin-github from 4.4.0 to 4.4.1
2022-11-21 18:05:19 +01:00
dependabot[bot]
75921323e3 build(deps-dev): bump @typescript-eslint/parser from 5.42.0 to 5.43.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.42.0 to 5.43.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.43.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 17:04:27 +00:00
dependabot[bot]
c41809958a build(deps-dev): bump eslint-plugin-github from 4.4.0 to 4.4.1
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.4.0...v4.4.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 17:04:18 +00:00
Matthew Costabile
42ad4aed60 Merge pull request #263 from actions/dependabot/npm_and_yarn/eslint-8.28.0
build(deps-dev): bump eslint from 8.26.0 to 8.28.0
2022-11-21 18:03:35 +01:00
dependabot[bot]
b56b7e6441 build(deps-dev): bump eslint from 8.26.0 to 8.28.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.26.0 to 8.28.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.26.0...v8.28.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 13:29:32 +00:00
12 changed files with 1533 additions and 808 deletions

View File

@@ -1,5 +1,5 @@
---
name: "@actions/core"
name: '@actions/core'
version: 1.10.0
type: npm
summary: Actions core lib

View File

@@ -1,6 +1,6 @@
---
name: '@actions/github'
version: 5.0.3
version: 5.1.1
type: npm
summary: Actions github lib
homepage: https://github.com/actions/toolkit/tree/main/packages/github

View File

@@ -38,7 +38,7 @@ jobs:
steps:
- uses: actions/add-to-project@RELEASE_VERSION
with:
# You can target a repository in a different organization
# You can target a project in a different organization
# to the issue
project-url: https://github.com/orgs/<orgName>/projects/<projectNumber>
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
@@ -143,6 +143,12 @@ Using these events ensure that a given issue or pull request, in the workflow's
- add the newly created PAT as a repository secret, this secret will be referenced by the [github-token input](#github-token)
_See [Encrypted secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) for more information_
## Setting a specific status or column name to the project item
If you want to add an issue to a custom default column in a project (i.e. other than 'Todo'), you can do this directly via the project UI. You don't need to add anything else to your YAML workflow file to get this to work.
Use the [Add To GitHub Projects](https://github.com/marketplace/actions/add-to-github-projects) action to assign newly opened issues to the project. And then in the project UI simply [specify which column to use as the default](https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/quickstart-for-projects#configure-built-in-automation)!
## Development
To get started contributing to this project, clone it and install dependencies.

View File

@@ -13,7 +13,7 @@ describe('addToProject', () => {
beforeEach(() => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token'
'github-token': 'gh_token',
})
outputs = mockSetOutput()
@@ -30,14 +30,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
mockGraphQL(
@@ -46,21 +46,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
id: 'project-item-id',
},
},
},
},
)
await addToProject()
@@ -74,14 +74,14 @@ describe('addToProject', () => {
number: 2221,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/octokit/octokit.js/issues/2221'
html_url: 'https://github.com/octokit/octokit.js/issues/2221',
},
repository: {
name: 'octokit.js',
owner: {
login: 'octokit'
}
}
login: 'octokit',
},
},
}
mockGraphQL(
@@ -90,21 +90,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2DraftIssue/,
return: {
addProjectV2DraftIssue: {
projectItem: {
id: 'project-item-id'
}
}
}
}
id: 'project-item-id',
},
},
},
},
)
await addToProject()
@@ -116,7 +116,7 @@ describe('addToProject', () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new'
labeled: 'bug, new',
})
github.context.payload = {
@@ -124,14 +124,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
mockGraphQL(
@@ -140,21 +140,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
id: 'project-item-id',
},
},
},
},
)
await addToProject()
@@ -166,7 +166,7 @@ describe('addToProject', () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new'
labeled: 'bug, new',
})
github.context.payload = {
@@ -175,14 +175,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/pull/136'
html_url: 'https://github.com/actions/add-to-project/pull/136',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
mockGraphQL(
@@ -191,21 +191,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
id: 'project-item-id',
},
},
},
},
)
await addToProject()
@@ -217,7 +217,7 @@ describe('addToProject', () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug'
labeled: 'bug',
})
github.context.payload = {
@@ -225,14 +225,14 @@ describe('addToProject', () => {
number: 1,
labels: [],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
const infoSpy = jest.spyOn(core, 'info')
@@ -247,7 +247,7 @@ describe('addToProject', () => {
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'AND'
'label-operator': 'AND',
})
github.context.payload = {
@@ -255,14 +255,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'bug'}, {name: 'new'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
mockGraphQL(
@@ -271,21 +271,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
id: 'project-item-id',
},
},
},
},
)
await addToProject()
@@ -298,7 +298,7 @@ describe('addToProject', () => {
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'AND'
'label-operator': 'AND',
})
github.context.payload = {
@@ -306,14 +306,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'bug'}, {name: 'other'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
const infoSpy = jest.spyOn(core, 'info')
@@ -328,7 +328,7 @@ describe('addToProject', () => {
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'NOT'
'label-operator': 'NOT',
})
github.context.payload = {
@@ -336,14 +336,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
const infoSpy = jest.spyOn(core, 'info')
@@ -358,7 +358,7 @@ describe('addToProject', () => {
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'NOT'
'label-operator': 'NOT',
})
github.context.payload = {
@@ -366,14 +366,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'other'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
mockGraphQL(
@@ -382,21 +382,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-next-id'
}
}
}
id: 'project-next-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-next-item-id'
}
}
}
}
id: 'project-next-item-id',
},
},
},
},
)
await addToProject()
@@ -408,7 +408,7 @@ describe('addToProject', () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'accessibility,backend,bug'
labeled: 'accessibility,backend,bug',
})
github.context.payload = {
@@ -416,14 +416,14 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'accessibility'}, {name: 'backend'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
const gqlMock = mockGraphQL(
@@ -432,21 +432,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
id: 'project-item-id',
},
},
},
},
)
const infoSpy = jest.spyOn(core, 'info')
@@ -464,7 +464,7 @@ describe('addToProject', () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'accessibility, backend, bug'
labeled: 'accessibility, backend, bug',
})
github.context.payload = {
@@ -472,21 +472,21 @@ describe('addToProject', () => {
number: 1,
labels: [{name: 'data'}, {name: 'frontend'}, {name: 'improvement'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
const infoSpy = jest.spyOn(core, 'info')
const gqlMock = mockGraphQL()
await addToProject()
expect(infoSpy).toHaveBeenCalledWith(
`Skipping issue 1 because it does not have one of the labels: accessibility, backend, bug`
`Skipping issue 1 because it does not have one of the labels: accessibility, backend, bug`,
)
expect(gqlMock).not.toHaveBeenCalled()
})
@@ -495,7 +495,7 @@ describe('addToProject', () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'accessibility , backend ,, . , bug'
labeled: 'accessibility , backend ,, . , bug',
})
github.context.payload = {
@@ -504,14 +504,14 @@ describe('addToProject', () => {
labels: [{name: 'accessibility'}, {name: 'backend'}, {name: 'bug'}],
'label-operator': 'AND',
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
const gqlMock = mockGraphQL(
@@ -520,21 +520,21 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
id: 'project-item-id',
},
},
},
},
)
const infoSpy = jest.spyOn(core, 'info')
@@ -551,7 +551,7 @@ describe('addToProject', () => {
test(`throws an error when url isn't a valid project url`, async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/github/repositories',
'github-token': 'gh_token'
'github-token': 'gh_token',
})
github.context.payload = {
@@ -559,182 +559,39 @@ describe('addToProject', () => {
number: 1,
labels: [],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
login: 'actions',
},
},
}
const infoSpy = jest.spyOn(core, 'info')
const gqlMock = mockGraphQL()
await expect(addToProject()).rejects.toThrow(
'https://github.com/orgs/github/repositories. Project URL should match the format https://github.com/<orgs-or-users>/<ownerName>/projects/<projectNumber>'
'Invalid project URL: https://github.com/orgs/github/repositories. Project URL should match the format <GitHub server domain name>/<orgs-or-users>/<ownerName>/projects/<projectNumber>',
)
expect(infoSpy).not.toHaveBeenCalled()
expect(gqlMock).not.toHaveBeenCalled()
})
test(`throws an error when url isn't under the github.com domain`, async () => {
mockGetInput({
'project-url': 'https://notgithub.com/orgs/github/projects/1',
'github-token': 'gh_token'
})
github.context.payload = {
issue: {
number: 1,
labels: [],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
}
const infoSpy = jest.spyOn(core, 'info')
const gqlMock = mockGraphQL()
await expect(addToProject()).rejects.toThrow(
'https://notgithub.com/orgs/github/projects/1. Project URL should match the format https://github.com/<orgs-or-users>/<ownerName>/projects/<projectNumber>'
)
expect(infoSpy).not.toHaveBeenCalled()
expect(gqlMock).not.toHaveBeenCalled()
})
test('constructs the correct graphQL query given an organization owner', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new'
})
test(`works with URLs that are not under the github.com domain`, async () => {
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
html_url: 'https://notgithub.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
}
const gqlMock = mockGraphQL(
{
test: /getProject/,
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
login: 'actions',
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
)
await addToProject()
expect(gqlMock).toHaveBeenNthCalledWith(1, expect.stringContaining('organization(login: $projectOwnerName)'), {
projectOwnerName: 'actions',
projectNumber: 1
})
})
test('constructs the correct graphQL query given a user owner', async () => {
mockGetInput({
'project-url': 'https://github.com/users/monalisa/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new'
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/monalisa/add-to-project/issues/74'
},
repository: {
name: 'add-to-project',
owner: {
login: 'monalisa'
}
}
}
const gqlMock = mockGraphQL(
{
test: /getProject/,
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
)
await addToProject()
expect(gqlMock).toHaveBeenNthCalledWith(1, expect.stringContaining('user(login: $projectOwnerName)'), {
projectOwnerName: 'monalisa',
projectNumber: 1
})
})
test('compares labels case-insensitively', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'FOO, Bar, baz',
'label-operator': 'AND'
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'foo'}, {name: 'BAR'}, {name: 'baz'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
}
mockGraphQL(
@@ -743,21 +600,178 @@ describe('addToProject', () => {
return: {
organization: {
projectV2: {
id: 'project-next-id'
}
}
}
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-next-item-id'
}
id: 'project-item-id',
},
},
},
},
)
await addToProject()
expect(outputs.itemId).toEqual('project-item-id')
})
test('constructs the correct graphQL query given an organization owner', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions',
},
},
}
const gqlMock = mockGraphQL(
{
test: /getProject/,
return: {
organization: {
projectV2: {
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id',
},
},
},
},
)
await addToProject()
expect(gqlMock).toHaveBeenNthCalledWith(1, expect.stringContaining('organization(login: $projectOwnerName)'), {
projectOwnerName: 'actions',
projectNumber: 1,
})
})
test('constructs the correct graphQL query given a user owner', async () => {
mockGetInput({
'project-url': 'https://github.com/users/monalisa/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/monalisa/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'monalisa',
},
},
}
const gqlMock = mockGraphQL(
{
test: /getProject/,
return: {
organization: {
projectV2: {
id: 'project-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id',
},
},
},
},
)
await addToProject()
expect(gqlMock).toHaveBeenNthCalledWith(1, expect.stringContaining('user(login: $projectOwnerName)'), {
projectOwnerName: 'monalisa',
projectNumber: 1,
})
})
test('compares labels case-insensitively', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'FOO, Bar, baz',
'label-operator': 'AND',
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'foo'}, {name: 'BAR'}, {name: 'baz'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74',
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions',
},
},
}
mockGraphQL(
{
test: /getProject/,
return: {
organization: {
projectV2: {
id: 'project-next-id',
},
},
},
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-next-item-id',
},
},
},
},
)
await addToProject()
@@ -810,7 +824,7 @@ function mockGraphQL(...mocks: {test: RegExp; return: unknown}[]): jest.Mock {
jest.spyOn(github, 'getOctokit').mockImplementation(() => {
return {
graphql: mock
graphql: mock,
} as unknown as ReturnType<typeof github.getOctokit>
})

26
dist/index.js generated vendored
View File

@@ -42,9 +42,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.mustGetOwnerTypeQuery = exports.addToProject = void 0;
const core = __importStar(__nccwpck_require__(2186));
const github = __importStar(__nccwpck_require__(5438));
// TODO: Ensure this (and the Octokit client) works for non-github.com URLs, as well.
// https://github.com/orgs|users/<ownerName>/projects/<projectNumber>
const urlParse = /^(?:https:\/\/)?github\.com\/(?<ownerType>orgs|users)\/(?<ownerName>[^/]+)\/projects\/(?<projectNumber>\d+)/;
const urlParse = /\/(?<ownerType>orgs|users)\/(?<ownerName>[^/]+)\/projects\/(?<projectNumber>\d+)/;
function addToProject() {
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
return __awaiter(this, void 0, void 0, function* () {
@@ -61,6 +59,7 @@ function addToProject() {
const issueLabels = ((_c = issue === null || issue === void 0 ? void 0 : issue.labels) !== null && _c !== void 0 ? _c : []).map((l) => l.name.toLowerCase());
const issueOwnerName = (_d = github.context.payload.repository) === null || _d === void 0 ? void 0 : _d.owner.login;
core.debug(`Issue/PR owner: ${issueOwnerName}`);
core.debug(`Issue/PR labels: ${issueLabels.join(', ')}`);
// Ensure the issue matches our `labeled` filter based on the label-operator.
if (labelOperator === 'and') {
if (!labeled.every(l => issueLabels.includes(l))) {
@@ -83,7 +82,7 @@ function addToProject() {
core.debug(`Project URL: ${projectUrl}`);
const urlMatch = projectUrl.match(urlParse);
if (!urlMatch) {
throw new Error(`Invalid project URL: ${projectUrl}. Project URL should match the format https://github.com/<orgs-or-users>/<ownerName>/projects/<projectNumber>`);
throw new Error(`Invalid project URL: ${projectUrl}. Project URL should match the format <GitHub server domain name>/<orgs-or-users>/<ownerName>/projects/<projectNumber>`);
}
const projectOwnerName = (_e = urlMatch.groups) === null || _e === void 0 ? void 0 : _e.ownerName;
const projectNumber = parseInt((_g = (_f = urlMatch.groups) === null || _f === void 0 ? void 0 : _f.projectNumber) !== null && _g !== void 0 ? _g : '', 10);
@@ -101,7 +100,7 @@ function addToProject() {
}
}`, {
projectOwnerName,
projectNumber
projectNumber,
});
const projectId = (_j = idResp[ownerTypeQuery]) === null || _j === void 0 ? void 0 : _j.projectV2.id;
const contentId = issue === null || issue === void 0 ? void 0 : issue.node_id;
@@ -121,8 +120,8 @@ function addToProject() {
}`, {
input: {
projectId,
contentId
}
contentId,
},
});
core.setOutput('itemId', addResp.addProjectV2ItemById.item.id);
}
@@ -139,7 +138,7 @@ function addToProject() {
}
}`, {
projectId,
title: issue === null || issue === void 0 ? void 0 : issue.html_url
title: issue === null || issue === void 0 ? void 0 : issue.html_url,
});
core.setOutput('itemId', addResp.addProjectV2DraftIssue.projectItem.id);
}
@@ -1290,8 +1289,9 @@ exports.context = new Context.Context();
* @param token the repo PAT or GITHUB_TOKEN
* @param options other options to set
*/
function getOctokit(token, options) {
return new utils_1.GitHub(utils_1.getOctokitOptions(token, options));
function getOctokit(token, options, ...additionalPlugins) {
const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);
return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options));
}
exports.getOctokit = getOctokit;
//# sourceMappingURL=github.js.map
@@ -1373,7 +1373,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getOctokitOptions = exports.GitHub = exports.context = void 0;
exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;
const Context = __importStar(__nccwpck_require__(4087));
const Utils = __importStar(__nccwpck_require__(7914));
// octokit + plugins
@@ -1382,13 +1382,13 @@ const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044);
const plugin_paginate_rest_1 = __nccwpck_require__(4193);
exports.context = new Context.Context();
const baseUrl = Utils.getApiBaseUrl();
const defaults = {
exports.defaults = {
baseUrl,
request: {
agent: Utils.getProxyAgent(baseUrl)
}
};
exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(defaults);
exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults);
/**
* Convience function to correctly format Octokit Options to pass into the constructor.
*

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -3,7 +3,7 @@ module.exports = {
moduleFileExtensions: ['js', 'ts'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
'^.+\\.ts$': 'ts-jest',
},
verbose: true
verbose: true,
}

1612
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,27 +5,27 @@
"author": "GitHub and contributors",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.0.3"
"@actions/github": "^5.1.1"
},
"engines": {
"node": ">=16.0.0 <17.0.0",
"npm": ">= 7.0.0"
"node": ">=16.0.0 <20.0.0",
"npm": ">= 8.0.0"
},
"devDependencies": {
"@github/prettier-config": "^0.0.4",
"@github/prettier-config": "^0.0.6",
"@types/jest": "^27.5.0",
"@types/node": "~16.18.3",
"@typescript-eslint/parser": "^5.42.0",
"@vercel/ncc": "^0.34.0",
"concurrently": "^7.5.0",
"eslint": "^8.26.0",
"eslint-plugin-github": "^4.4.0",
"eslint-plugin-jest": "^27.1.3",
"@types/node": "~16.18.23",
"@typescript-eslint/parser": "^5.57.0",
"@vercel/ncc": "^0.36.1",
"concurrently": "^8.0.1",
"eslint": "^8.37.0",
"eslint-plugin-github": "^4.7.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^27.5.1",
"prettier": "2.7.1",
"prettier": "2.8.7",
"ts-jest": "^27.1.4",
"typescript": "^4.8.4"
"typescript": "^4.9.5"
},
"keywords": [
"actions",

View File

@@ -1,10 +1,7 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
// TODO: Ensure this (and the Octokit client) works for non-github.com URLs, as well.
// https://github.com/orgs|users/<ownerName>/projects/<projectNumber>
const urlParse =
/^(?:https:\/\/)?github\.com\/(?<ownerType>orgs|users)\/(?<ownerName>[^/]+)\/projects\/(?<projectNumber>\d+)/
const urlParse = /\/(?<ownerType>orgs|users)\/(?<ownerName>[^/]+)\/projects\/(?<projectNumber>\d+)/
interface ProjectNodeIDResponse {
organization?: {
@@ -54,6 +51,7 @@ export async function addToProject(): Promise<void> {
const issueOwnerName = github.context.payload.repository?.owner.login
core.debug(`Issue/PR owner: ${issueOwnerName}`)
core.debug(`Issue/PR labels: ${issueLabels.join(', ')}`)
// Ensure the issue matches our `labeled` filter based on the label-operator.
if (labelOperator === 'and') {
@@ -79,7 +77,7 @@ export async function addToProject(): Promise<void> {
if (!urlMatch) {
throw new Error(
`Invalid project URL: ${projectUrl}. Project URL should match the format https://github.com/<orgs-or-users>/<ownerName>/projects/<projectNumber>`
`Invalid project URL: ${projectUrl}. Project URL should match the format <GitHub server domain name>/<orgs-or-users>/<ownerName>/projects/<projectNumber>`,
)
}
@@ -103,8 +101,8 @@ export async function addToProject(): Promise<void> {
}`,
{
projectOwnerName,
projectNumber
}
projectNumber,
},
)
const projectId = idResp[ownerTypeQuery]?.projectV2.id
@@ -130,9 +128,9 @@ export async function addToProject(): Promise<void> {
{
input: {
projectId,
contentId
}
}
contentId,
},
},
)
core.setOutput('itemId', addResp.addProjectV2ItemById.item.id)
@@ -152,8 +150,8 @@ export async function addToProject(): Promise<void> {
}`,
{
projectId,
title: issue?.html_url
}
title: issue?.html_url,
},
)
core.setOutput('itemId', addResp.addProjectV2DraftIssue.projectItem.id)

View File

@@ -6,7 +6,8 @@
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
"noUncheckedIndexedAccess": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}