Compare commits

...

180 Commits

Author SHA1 Message Date
Matthew Costabile
a9f041ddd4 Merge pull request #142 from timrogers/timrogers/draft-issue
Allow users to add an issue/PR to a board in a different organization
2022-07-21 08:48:51 -04:00
Matthew Costabile
1809404e28 Merge branch 'main' into timrogers/draft-issue 2022-07-21 08:46:09 -04:00
Lukasz Warchol
0af0b18f28 Merge pull request #157 from actions/non-beta-projects
Remove beta references
2022-07-19 18:11:17 +02:00
Lukasz Warchol
c8dd399614 Remove beta references 2022-07-19 15:00:18 +00:00
Matthew Costabile
f111c2aa36 Merge pull request #156 from actions/dependabot/npm_and_yarn/concurrently-7.3.0
build(deps-dev): bump concurrently from 7.2.2 to 7.3.0
2022-07-19 09:30:12 -04:00
Matthew Costabile
12e917e04c Merge pull request #155 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.30.7
build(deps-dev): bump @typescript-eslint/parser from 5.30.6 to 5.30.7
2022-07-19 09:29:58 -04:00
dependabot[bot]
dbe00218fb build(deps-dev): bump concurrently from 7.2.2 to 7.3.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.2.2 to 7.3.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.2.2...v7.3.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-07-19 13:26:23 +00:00
dependabot[bot]
fa0b958991 build(deps-dev): bump @typescript-eslint/parser from 5.30.6 to 5.30.7
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.6 to 5.30.7.
- [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.30.7/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-07-19 13:26:00 +00:00
Matthew Costabile
f343062b82 Merge pull request #154 from actions/dependabot/npm_and_yarn/types/node-16.11.45
build(deps-dev): bump @types/node from 16.11.44 to 16.11.45
2022-07-18 10:28:07 -04:00
Matthew Costabile
e639bba4f0 Merge pull request #153 from actions/dependabot/npm_and_yarn/eslint-8.20.0
build(deps-dev): bump eslint from 8.19.0 to 8.20.0
2022-07-18 10:27:53 -04:00
dependabot[bot]
34ff2c7db4 build(deps-dev): bump @types/node from 16.11.44 to 16.11.45
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.44 to 16.11.45.
- [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-07-18 13:41:32 +00:00
dependabot[bot]
4065956be9 build(deps-dev): bump eslint from 8.19.0 to 8.20.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.19.0 to 8.20.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.19.0...v8.20.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-07-18 13:41:25 +00:00
dependabot[bot]
9b0fd13e3f build(deps-dev): bump @types/node from 16.11.43 to 16.11.44 (#151)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.43 to 16.11.44.
- [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>
2022-07-15 10:59:26 -03:00
dependabot[bot]
53d95574f4 build(deps-dev): bump eslint-plugin-jest from 26.5.3 to 26.6.0 (#152)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.5.3 to 26.6.0.
- [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/v26.5.3...v26.6.0)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-15 10:57:38 -03:00
Tim Rogers
ebd4dc568a Fix failing tests 2022-07-15 11:26:04 +01:00
Tim Rogers
9115f344bd Allow users to add an issue/PR to a board in a different organization
At present, this Action only supports adding an issue or pull
request to a project in the *same organization* as the issue or
pull request itself.

This removes that limitation. If the issue/pull request and
project have different owners, then instead of directly
creating a project item, we will instead create a "draft issue"
which will be added to the board.

Fixes #74.
2022-07-15 11:26:04 +01:00
Matthew Costabile
31c3cce717 Merge pull request #150 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.30.6
build(deps-dev): bump @typescript-eslint/parser from 5.30.5 to 5.30.6
2022-07-13 09:46:10 -04:00
dependabot[bot]
c1795be3bc build(deps-dev): bump @typescript-eslint/parser from 5.30.5 to 5.30.6
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.5 to 5.30.6.
- [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.30.6/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-07-13 13:42:38 +00:00
Matthew Costabile
75ae529d21 Merge pull request #148 from actions/dependabot/npm_and_yarn/types/node-16.11.43
build(deps-dev): bump @types/node from 16.11.42 to 16.11.43
2022-07-11 08:54:13 -04:00
dependabot[bot]
93eba4a2e5 build(deps-dev): bump @types/node from 16.11.42 to 16.11.43
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.42 to 16.11.43.
- [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-07-11 12:52:44 +00:00
Matthew Costabile
5582d9894f Merge pull request #146 from actions/dependabot/npm_and_yarn/eslint-8.19.0
build(deps-dev): bump eslint from 8.18.0 to 8.19.0
2022-07-11 08:52:23 -04:00
Matthew Costabile
97e01d66ef Merge pull request #149 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.30.5
build(deps-dev): bump @typescript-eslint/parser from 5.30.0 to 5.30.5
2022-07-11 08:51:45 -04:00
dependabot[bot]
2a4deb3f9f build(deps-dev): bump @typescript-eslint/parser from 5.30.0 to 5.30.5
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.0 to 5.30.5.
- [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.30.5/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-07-05 13:37:49 +00:00
dependabot[bot]
458653506b build(deps-dev): bump eslint from 8.18.0 to 8.19.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.18.0 to 8.19.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.18.0...v8.19.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-07-04 13:38:12 +00:00
Matthew Costabile
322721b8cd Merge pull request #144 from actions/dependabot/npm_and_yarn/eslint-plugin-prettier-4.2.1
build(deps-dev): bump eslint-plugin-prettier from 4.1.0 to 4.2.1
2022-06-30 09:48:11 -04:00
Matthew Costabile
601b150078 Merge pull request #145 from actions/dependabot/npm_and_yarn/types/node-16.11.42
build(deps-dev): bump @types/node from 16.11.41 to 16.11.42
2022-06-30 09:44:56 -04:00
dependabot[bot]
665443b5d9 build(deps-dev): bump @types/node from 16.11.41 to 16.11.42
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.41 to 16.11.42.
- [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-06-30 13:35:58 +00:00
dependabot[bot]
caae605ffb build(deps-dev): bump eslint-plugin-prettier from 4.1.0 to 4.2.1
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 4.1.0 to 4.2.1.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v4.1.0...v4.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 13:35:47 +00:00
Matthew Costabile
5d3a082e24 Merge pull request #143 from actions/fix-tests
fix tests to account for api change
2022-06-30 09:21:52 -04:00
Matthew Costabile
80b198ce77 fix tests to account for api change 2022-06-30 13:13:58 +00:00
Matthew Costabile
92eaaeabac Merge pull request #138 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.30.0
build(deps-dev): bump @typescript-eslint/parser from 5.29.0 to 5.30.0
2022-06-28 09:47:01 -04:00
Matthew Costabile
8eedaeb3f8 Merge pull request #137 from actions/dependabot/npm_and_yarn/eslint-plugin-prettier-4.1.0
build(deps-dev): bump eslint-plugin-prettier from 4.0.0 to 4.1.0
2022-06-28 09:46:43 -04:00
dependabot[bot]
3b83e6acf9 build(deps-dev): bump @typescript-eslint/parser from 5.29.0 to 5.30.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.29.0 to 5.30.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.30.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-06-28 13:36:40 +00:00
dependabot[bot]
0bf2f64851 build(deps-dev): bump eslint-plugin-prettier from 4.0.0 to 4.1.0
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v4.0.0...v4.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-28 13:36:28 +00:00
Lukasz Warchol
ce9d751c8c Update legacy version reference in the Readme 2022-06-28 14:21:39 +02:00
Lukasz Warchol
2b841e5b72 Merge pull request #105 from lukewar/graphql/projectv2
Update Action to use new ProjectsV2 api
2022-06-28 14:05:29 +02:00
Lukasz Warchol
7ca6a73a54 Update examples to point at release version 2022-06-28 09:33:15 +00:00
Lukasz Warchol
79db2f4851 Update readme to mention right scopes needed by this action 2022-06-28 09:31:09 +00:00
Lukasz Warchol
cf1add2ac3 Rebuild after re-installing packages. 2022-06-27 15:09:31 +00:00
Lukasz Warchol
50a0a4c60e Revert package version 2022-06-27 15:05:39 +00:00
Lukasz Warchol
ed9ec99956 Merge branch 'main' into graphql/projectv2 2022-06-27 14:53:57 +00:00
Lukasz Warchol
79316c3c93 Build and package
Setting pckage version
2022-06-27 13:19:25 +00:00
Lukasz Warchol
2914167b9b Apply suggestions from code review
Co-authored-by: Matt B <9885259+Mattamorphic@users.noreply.github.com>
2022-06-27 15:01:14 +02:00
Matthew Costabile
7334092ecc Merge pull request #136 from akashivskyy/lowercase-labels
Perform case-insensitive comparison
2022-06-22 10:45:43 -04:00
Matthew Costabile
aeb80ee3ca Merge pull request #135 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.29.0
build(deps-dev): bump @typescript-eslint/parser from 5.28.0 to 5.29.0
2022-06-22 10:44:13 -04:00
Adrian Kashivskyy
a1e8057254 Run the build 2022-06-22 16:26:05 +02:00
Adrian Kashivskyy
94b35fc3df Add test 2022-06-22 15:33:54 +02:00
Adrian Kashivskyy
188881c8fc Compare lowercase labels 2022-06-22 15:33:07 +02:00
dependabot[bot]
555ebcb094 build(deps-dev): bump @typescript-eslint/parser from 5.28.0 to 5.29.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.28.0 to 5.29.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.29.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-06-21 13:27:55 +00:00
Matthew Costabile
73cb31d05f Merge pull request #133 from actions/dependabot/npm_and_yarn/eslint-8.18.0
build(deps-dev): bump eslint from 8.17.0 to 8.18.0
2022-06-20 21:26:40 -04:00
Matthew Costabile
88c4df44ff Merge pull request #134 from actions/dependabot/npm_and_yarn/typescript-4.7.4
build(deps-dev): bump typescript from 4.7.3 to 4.7.4
2022-06-20 09:41:42 -04:00
dependabot[bot]
bbdd7d7680 build(deps-dev): bump typescript from 4.7.3 to 4.7.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.3...v4.7.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-06-20 13:39:22 +00:00
dependabot[bot]
6e2d6ef546 build(deps-dev): bump eslint from 8.17.0 to 8.18.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.17.0 to 8.18.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.17.0...v8.18.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-06-20 13:38:41 +00:00
Matthew Costabile
a412549585 Merge pull request #110 from actions/dependabot/npm_and_yarn/vercel/ncc-0.34.0
build(deps-dev): bump @vercel/ncc from 0.33.4 to 0.34.0
2022-06-17 08:39:50 -04:00
Matthew Costabile
fedaa03863 update cache 2022-06-17 12:37:10 +00:00
Matthew Costabile
5152387edb update versions 2022-06-17 12:26:43 +00:00
dependabot[bot]
10552f6f89 build(deps-dev): bump @vercel/ncc from 0.33.4 to 0.34.0
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.33.4 to 0.34.0.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.33.4...0.34.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-06-17 12:24:38 +00:00
Matthew Costabile
69f6549fe2 Merge pull request #130 from AnthonyLaye/exclude-issues-with-labels
Add new option for excluding issues with certain labels
2022-06-17 08:22:44 -04:00
anthonylaye
c05fcc9dfb Oops, forgot to rebuild 2022-06-17 14:05:32 +02:00
anthonylaye
a0fa063143 Add example to readme 2022-06-17 10:27:31 +02:00
anthonylaye
ff2392aa0d keep the or case in an else block at the end 2022-06-17 10:19:20 +02:00
anthonylaye
d0b7876408 Edit readme and run build 2022-06-16 18:18:27 +02:00
anthonylaye
0f1ba59d26 Add one more test 2022-06-16 18:11:37 +02:00
anthonylaye
67c5a7e0a1 Merge branch 'exclude-issues-with-labels' of github.com:AnthonyLaye/add-to-project 2022-06-16 17:51:11 +02:00
anthonylaye
965058f5bb Add test case 2022-06-16 17:50:53 +02:00
Anthony Laye
bbc19edc9d Update add-to-project.ts 2022-06-16 11:38:35 -04:00
Anthony Laye
f7823161aa Update add-to-project.ts 2022-06-16 11:37:48 -04:00
anthonylaye
fcb780e2b5 Add new option for excluding issues with certain labels 2022-06-16 17:27:06 +02:00
Matthew Costabile
58aca2b7ff Merge pull request #129 from actions/dependabot/npm_and_yarn/prettier-2.7.1
build(deps-dev): bump prettier from 2.7.0 to 2.7.1
2022-06-16 09:40:41 -04:00
dependabot[bot]
001e0b58eb build(deps-dev): bump prettier from 2.7.0 to 2.7.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.7.0 to 2.7.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.7.0...2.7.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-06-16 13:31:51 +00:00
Matthew Costabile
04a1f56d53 Merge pull request #127 from actions/dependabot/npm_and_yarn/types/node-16.11.41
build(deps-dev): bump @types/node from 16.11.40 to 16.11.41
2022-06-15 12:51:04 -04:00
dependabot[bot]
e0b64e7b67 build(deps-dev): bump @types/node from 16.11.40 to 16.11.41
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.40 to 16.11.41.
- [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-06-15 16:46:15 +00:00
Matthew Costabile
c1a80e93ea Merge pull request #125 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.28.0
build(deps-dev): bump @typescript-eslint/parser from 5.27.1 to 5.28.0
2022-06-15 12:45:57 -04:00
dependabot[bot]
be967da52c build(deps-dev): bump @typescript-eslint/parser from 5.27.1 to 5.28.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.27.1 to 5.28.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.28.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-06-15 16:43:37 +00:00
Matthew Costabile
f6a381cfe2 Merge pull request #124 from actions/dependabot/npm_and_yarn/concurrently-7.2.2
build(deps-dev): bump concurrently from 7.2.1 to 7.2.2
2022-06-15 12:42:35 -04:00
dependabot[bot]
9a2b32ee11 build(deps-dev): bump concurrently from 7.2.1 to 7.2.2
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.2.1 to 7.2.2.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.2.1...v7.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15 16:32:06 +00:00
Matthew Costabile
d8749d7229 Merge pull request #122 from actions/dependabot/npm_and_yarn/types/node-16.11.40
build(deps-dev): bump @types/node from 16.11.39 to 16.11.40
2022-06-15 12:31:27 -04:00
Matthew Costabile
9484e7ea49 Merge pull request #123 from actions/dependabot/npm_and_yarn/prettier-2.7.0
build(deps-dev): bump prettier from 2.6.2 to 2.7.0
2022-06-15 12:31:05 -04:00
dependabot[bot]
4453a5e17d build(deps-dev): bump prettier from 2.6.2 to 2.7.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.2 to 2.7.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.6.2...2.7.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-06-15 13:37:13 +00:00
dependabot[bot]
bad07b756f build(deps-dev): bump @types/node from 16.11.39 to 16.11.40
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.39 to 16.11.40.
- [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-06-15 13:37:00 +00:00
Matthew Costabile
c4d924563d Merge pull request #119 from actions/dependabot/npm_and_yarn/types/node-16.11.39
build(deps-dev): bump @types/node from 16.11.38 to 16.11.39
2022-06-13 11:29:10 -04:00
dependabot[bot]
339ee3c166 build(deps-dev): bump @types/node from 16.11.38 to 16.11.39
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.38 to 16.11.39.
- [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-06-08 01:59:51 +00:00
Matthew Costabile
da77ec5a48 Merge pull request #118 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-26.5.3
build(deps-dev): bump eslint-plugin-jest from 26.4.6 to 26.5.3
2022-06-07 21:59:28 -04:00
Matthew Costabile
eaf932c4b2 Merge pull request #117 from actions/dependabot/npm_and_yarn/eslint-8.17.0
build(deps-dev): bump eslint from 8.16.0 to 8.17.0
2022-06-07 21:59:06 -04:00
dependabot[bot]
47772ca04a build(deps-dev): bump eslint from 8.16.0 to 8.17.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.16.0 to 8.17.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.16.0...v8.17.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-06-08 01:57:00 +00:00
dependabot[bot]
bd184e5d13 build(deps-dev): bump eslint-plugin-jest from 26.4.6 to 26.5.3
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.4.6 to 26.5.3.
- [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/v26.4.6...v26.5.3)

---
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>
2022-06-08 01:56:35 +00:00
Matthew Costabile
a07cbd5d20 Merge pull request #116 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.27.1
build(deps-dev): bump @typescript-eslint/parser from 5.27.0 to 5.27.1
2022-06-07 15:15:40 -04:00
Matthew Costabile
395b51773c Merge pull request #115 from actions/dependabot/npm_and_yarn/typescript-4.7.3
build(deps-dev): bump typescript from 4.7.2 to 4.7.3
2022-06-07 15:15:01 -04:00
dependabot[bot]
7a40b30747 build(deps-dev): bump @typescript-eslint/parser from 5.27.0 to 5.27.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.27.0 to 5.27.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.27.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-06-07 13:37:14 +00:00
dependabot[bot]
c7c6f60f14 build(deps-dev): bump typescript from 4.7.2 to 4.7.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.2...v4.7.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-07 13:36:56 +00:00
Lukasz Warchol
53101abf47 Build and package 2022-06-02 15:28:56 +00:00
Lukasz Warchol
0c1e36ed75 Update Readme to point the users of the deprecated API to version 0.0.3
Remove feature flags header as it will not be needed after API is released.
2022-06-02 14:59:09 +00:00
Ian Sanders
8d66869b6c Merge pull request #114 from actions/dependabot/npm_and_yarn/types/node-16.11.38
build(deps-dev): bump @types/node from 16.11.36 to 16.11.38
2022-06-01 10:31:58 -04:00
dependabot[bot]
3815017653 build(deps-dev): bump @types/node from 16.11.36 to 16.11.38
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.36 to 16.11.38.
- [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-06-01 13:53:36 +00:00
dependabot[bot]
38d93b7ff2 build(deps-dev): bump eslint-plugin-jest from 26.4.5 to 26.4.6 (#113)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.4.5 to 26.4.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/v26.4.5...v26.4.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 17:36:55 -03:00
dependabot[bot]
544ce1ff15 build(deps-dev): bump @typescript-eslint/parser from 5.26.0 to 5.27.0 (#112)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.26.0 to 5.27.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.27.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 16:56:08 -03:00
dependabot[bot]
f993b92dab build(deps-dev): bump eslint-plugin-jest from 26.2.2 to 26.4.5 (#111)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.2.2 to 26.4.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/v26.2.2...v26.4.5)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 16:53:24 -03:00
Matthew Costabile
b56023be57 Merge pull request #109 from actions/dependabot/npm_and_yarn/typescript-4.7.2
build(deps-dev): bump typescript from 4.6.4 to 4.7.2
2022-05-26 13:57:49 +02:00
Matthew Costabile
e9fda8a6a9 Merge pull request #108 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.26.0
build(deps-dev): bump @typescript-eslint/parser from 5.25.0 to 5.26.0
2022-05-26 13:57:25 +02:00
dependabot[bot]
63ec0f9def build(deps-dev): bump typescript from 4.6.4 to 4.7.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.4 to 4.7.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.4...v4.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-25 13:40:37 +00:00
dependabot[bot]
031135e10e build(deps-dev): bump @typescript-eslint/parser from 5.25.0 to 5.26.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.25.0 to 5.26.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.26.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-05-25 13:40:28 +00:00
Matthew Costabile
138f841d13 Merge pull request #106 from actions/dependabot/npm_and_yarn/eslint-8.16.0
build(deps-dev): bump eslint from 8.15.0 to 8.16.0
2022-05-23 11:17:39 -04:00
dependabot[bot]
fdbee5d018 build(deps-dev): bump eslint from 8.15.0 to 8.16.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.15.0 to 8.16.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.15.0...v8.16.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-05-23 14:58:33 +00:00
Matthew Costabile
75cfc23c1b Merge pull request #107 from actions/dependabot/npm_and_yarn/concurrently-7.2.1
build(deps-dev): bump concurrently from 7.2.0 to 7.2.1
2022-05-23 10:57:38 -04:00
dependabot[bot]
1b4f9e5215 build(deps-dev): bump concurrently from 7.2.0 to 7.2.1
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.2.0...v7.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 13:50:21 +00:00
Lukasz Warchol
1664cea4b1 Fixing misplacement of headers 2022-05-20 12:48:37 +00:00
Lukasz Warchol
58dc7efeb3 Build and package 2022-05-20 12:24:18 +00:00
Lukasz Warchol
8bc56cd807 Update Action to use new ProjectsV2 api
ProjectsNext API is going to be deprecated in favour of new ProjectsV2.
2022-05-20 12:22:44 +00:00
Matthew Costabile
8e43a9d0d7 Merge pull request #103 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.25.0
build(deps-dev): bump @typescript-eslint/parser from 5.24.0 to 5.25.0
2022-05-17 15:43:03 -04:00
dependabot[bot]
4cf3abb9ff build(deps-dev): bump @typescript-eslint/parser from 5.24.0 to 5.25.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.24.0 to 5.25.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.25.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-05-17 18:32:19 +00:00
Matthew Costabile
2d863964e7 Merge pull request #102 from actions/dependabot/npm_and_yarn/types/node-16.11.36
build(deps-dev): bump @types/node from 16.11.35 to 16.11.36
2022-05-17 14:11:09 -04:00
dependabot[bot]
95da4c39c2 build(deps-dev): bump @types/node from 16.11.35 to 16.11.36
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.35 to 16.11.36.
- [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-05-17 13:36:31 +00:00
Matthew Costabile
80de5b79f3 Merge pull request #101 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.24.0
build(deps-dev): bump @typescript-eslint/parser from 5.23.0 to 5.24.0
2022-05-16 15:13:43 -04:00
dependabot[bot]
7d736a78c2 build(deps-dev): bump @typescript-eslint/parser from 5.23.0 to 5.24.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.23.0 to 5.24.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.24.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-05-16 19:08:52 +00:00
Matthew Costabile
66112f7fe4 Merge pull request #69 from actions/dependabot/github_actions/actions/upload-artifact-3
Bump actions/upload-artifact from 2 to 3
2022-05-16 15:08:31 -04:00
Matthew Costabile
6125b7b6b6 Merge pull request #98 from actions/dependabot/npm_and_yarn/types/node-16.11.35
build(deps-dev): bump @types/node from 16.11.34 to 16.11.35
2022-05-16 14:35:18 -04:00
Matthew Costabile
c92f1c7b9c Merge pull request #99 from actions/dependabot/npm_and_yarn/concurrently-7.2.0
build(deps-dev): bump concurrently from 7.1.0 to 7.2.0
2022-05-16 14:35:00 -04:00
Matthew Costabile
dbee858226 Merge pull request #100 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-26.2.2
build(deps-dev): bump eslint-plugin-jest from 26.1.5 to 26.2.2
2022-05-16 14:34:38 -04:00
dependabot[bot]
257e8e8fed build(deps-dev): bump eslint-plugin-jest from 26.1.5 to 26.2.2
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.5 to 26.2.2.
- [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/v26.1.5...v26.2.2)

---
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>
2022-05-16 13:29:47 +00:00
dependabot[bot]
92bff04cc1 build(deps-dev): bump concurrently from 7.1.0 to 7.2.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.1.0...v7.2.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-05-16 13:29:02 +00:00
dependabot[bot]
5bb8b529cc build(deps-dev): bump @types/node from 16.11.34 to 16.11.35
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.34 to 16.11.35.
- [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-05-13 13:37:04 +00:00
Matthew Costabile
fea7d52087 Merge pull request #96 from actions/dependabot/npm_and_yarn/types/node-16.11.34
build(deps-dev): bump @types/node from 16.11.33 to 16.11.34
2022-05-11 14:31:18 -04:00
dependabot[bot]
3b2ebb081c build(deps-dev): bump @types/node from 16.11.33 to 16.11.34
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.33 to 16.11.34.
- [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-05-11 13:56:25 +00:00
Matthew Costabile
29eb7cef84 Merge pull request #95 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.23.0
build(deps-dev): bump @typescript-eslint/parser from 5.22.0 to 5.23.0
2022-05-10 09:38:13 -04:00
dependabot[bot]
98def91cef build(deps-dev): bump @typescript-eslint/parser from 5.22.0 to 5.23.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.22.0 to 5.23.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.23.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-05-10 13:29:02 +00:00
Matthew Costabile
8f59162ff6 Merge pull request #94 from actions/dependabot/npm_and_yarn/eslint-8.15.0
build(deps-dev): bump eslint from 8.14.0 to 8.15.0
2022-05-09 12:33:00 -04:00
dependabot[bot]
9ac721fd8a build(deps-dev): bump eslint from 8.14.0 to 8.15.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.14.0 to 8.15.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.14.0...v8.15.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-05-09 13:30:39 +00:00
Matthew Costabile
c91186afaf Merge pull request #91 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.22.0
build(deps-dev): bump @typescript-eslint/parser from 5.21.0 to 5.22.0
2022-05-03 09:34:34 -04:00
Matthew Costabile
3547ee9c81 Merge pull request #92 from actions/dependabot/npm_and_yarn/types/jest-27.5.0
build(deps-dev): bump @types/jest from 27.4.1 to 27.5.0
2022-05-03 09:34:16 -04:00
dependabot[bot]
f1c55a1027 build(deps-dev): bump @types/jest from 27.4.1 to 27.5.0
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.4.1 to 27.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 13:31:47 +00:00
dependabot[bot]
7c18796dcd build(deps-dev): bump @typescript-eslint/parser from 5.21.0 to 5.22.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.21.0 to 5.22.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.22.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-05-03 13:31:37 +00:00
Matthew Costabile
0bb745994b Merge pull request #90 from actions/dependabot/npm_and_yarn/types/node-16.11.33
build(deps-dev): bump @types/node from 16.11.32 to 16.11.33
2022-05-02 11:35:59 -04:00
dependabot[bot]
8a004791b5 build(deps-dev): bump @types/node from 16.11.32 to 16.11.33
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.32 to 16.11.33.
- [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-05-02 13:39:46 +00:00
Matthew Costabile
a02a2e0e2e Merge pull request #88 from actions/dependabot/npm_and_yarn/types/node-16.11.32
build(deps-dev): bump @types/node from 16.11.31 to 16.11.32
2022-04-29 10:18:25 -04:00
Matthew Costabile
9473fe1ada Merge pull request #87 from actions/dependabot/npm_and_yarn/typescript-4.6.4
build(deps-dev): bump typescript from 4.6.3 to 4.6.4
2022-04-29 10:18:01 -04:00
dependabot[bot]
c5b334e234 build(deps-dev): bump @types/node from 16.11.31 to 16.11.32
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.31 to 16.11.32.
- [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-04-29 13:32:07 +00:00
dependabot[bot]
71ccec7e4d build(deps-dev): bump typescript from 4.6.3 to 4.6.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.6.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-04-29 13:31:47 +00:00
Matthew Costabile
f9b1fc05c3 Merge pull request #83 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.21.0
build(deps-dev): bump @typescript-eslint/parser from 5.20.0 to 5.21.0
2022-04-27 08:44:59 -04:00
dependabot[bot]
cf477c15a9 build(deps-dev): bump @typescript-eslint/parser from 5.20.0 to 5.21.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.20.0 to 5.21.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.21.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-04-27 12:42:34 +00:00
Matthew Costabile
a5a8e154d8 Merge pull request #85 from actions/dependabot/npm_and_yarn/types/node-16.11.31
build(deps-dev): bump @types/node from 16.11.27 to 16.11.31
2022-04-27 08:41:48 -04:00
dependabot[bot]
6e2fa5f9f3 build(deps-dev): bump @types/node from 16.11.27 to 16.11.31
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.27 to 16.11.31.
- [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-04-27 12:39:43 +00:00
Matthew Costabile
4205d79489 Merge pull request #82 from actions/dependabot/github_actions/github/codeql-action-2
build(deps): bump github/codeql-action from 1 to 2
2022-04-27 08:39:36 -04:00
Matthew Costabile
f08a2688cd Merge pull request #81 from actions/dependabot/npm_and_yarn/eslint-8.14.0
build(deps-dev): bump eslint from 8.13.0 to 8.14.0
2022-04-27 08:39:18 -04:00
Matthew Costabile
24160a1bc2 Merge pull request #79 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-26.1.5
build(deps-dev): bump eslint-plugin-jest from 26.1.4 to 26.1.5
2022-04-27 08:38:56 -04:00
dependabot[bot]
0137df9c8d build(deps): bump github/codeql-action from 1 to 2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 13:35:41 +00:00
dependabot[bot]
30f559df98 build(deps-dev): bump eslint from 8.13.0 to 8.14.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.13.0 to 8.14.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.13.0...v8.14.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-04-25 13:35:37 +00:00
dependabot[bot]
dc41eefd3f build(deps-dev): bump eslint-plugin-jest from 26.1.4 to 26.1.5
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.4 to 26.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/v26.1.4...v26.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-04-25 13:35:20 +00:00
Matthew Costabile
661f5254e8 Merge pull request #78 from actions/dependabot/npm_and_yarn/types/node-16.11.27
build(deps-dev): bump @types/node from 16.11.26 to 16.11.27
2022-04-20 10:13:20 -04:00
dependabot[bot]
2a2f1e9ba9 build(deps-dev): bump @types/node from 16.11.26 to 16.11.27
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.26 to 16.11.27.
- [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-04-20 13:39:45 +00:00
Matthew Costabile
d0ecdf4a86 Merge pull request #72 from actions/dependabot/npm_and_yarn/vercel/ncc-0.33.4
Bump @vercel/ncc from 0.33.3 to 0.33.4
2022-04-20 08:02:40 -04:00
Matthew Costabile
03a446013c Merge remote-tracking branch 'origin/main' into dependabot/npm_and_yarn/vercel/ncc-0.33.4 2022-04-20 11:56:24 +00:00
Matthew Costabile
b01f724082 build 2022-04-20 11:56:05 +00:00
Matthew Costabile
f27c638b90 Merge pull request #68 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-26.1.4
Bump eslint-plugin-jest from 26.1.3 to 26.1.4
2022-04-19 15:51:00 -04:00
dependabot[bot]
6fcbe1004c Bump @vercel/ncc from 0.33.3 to 0.33.4
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.33.3 to 0.33.4.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.33.3...0.33.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 19:20:18 +00:00
dependabot[bot]
399d8e0210 Bump eslint-plugin-jest from 26.1.3 to 26.1.4
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.3 to 26.1.4.
- [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/v26.1.3...v26.1.4)

---
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-04-19 19:20:13 +00:00
Matthew Costabile
bd2c6a9d39 Merge pull request #70 from actions/dependabot/npm_and_yarn/eslint-8.13.0
Bump eslint from 8.12.0 to 8.13.0
2022-04-19 15:19:28 -04:00
dependabot[bot]
7812e58042 Bump eslint from 8.12.0 to 8.13.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.12.0 to 8.13.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.12.0...v8.13.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-04-19 14:17:24 +00:00
Matthew Costabile
0780acfc24 Merge pull request #76 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.20.0
Bump @typescript-eslint/parser from 5.18.0 to 5.20.0
2022-04-19 10:16:18 -04:00
dependabot[bot]
749c4ae123 Bump @typescript-eslint/parser from 5.18.0 to 5.20.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.18.0 to 5.20.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.20.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-04-19 14:00:31 +00:00
Matthew Costabile
33053c60fb Merge pull request #75 from actions/joshmgross/codeowners
Add CODEOWNERS file
2022-04-13 10:24:36 -04:00
Josh Gross
d028344d28 Create CODEOWNERS 2022-04-13 09:53:28 -04:00
dependabot[bot]
b899acf143 Bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 15:12:31 +00:00
Matthew Costabile
5a6232de3d Merge pull request #67 from actions/mattcosta7-patch-1
update PR to pull request
2022-04-06 13:01:31 -04:00
Matthew Costabile
f50c5f7f33 update PR to pull request 2022-04-06 12:42:39 -04:00
Matthew Costabile
5f2fb781f1 Merge pull request #63 from omerbensaadon/patch-2
Update README.md
2022-04-06 12:40:10 -04:00
Matthew Costabile
5a36c405bf Merge pull request #64 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-5.18.0
Bump @typescript-eslint/parser from 5.17.0 to 5.18.0
2022-04-06 12:39:57 -04:00
Matthew Costabile
7b62e2081a Merge branch 'main' into patch-2 2022-04-06 12:38:02 -04:00
Matthew Costabile
698949779b Merge pull request #66 from omerbensaadon/patch-4
Update README.md
2022-04-06 11:38:02 -04:00
Omer Bensaadon
012e2b444d Update README.md
so small a change
2022-04-06 11:36:19 -04:00
Matthew Costabile
96b0e568a8 Merge pull request #65 from omerbensaadon/patch-3
Update README.md
2022-04-06 11:31:50 -04:00
Omer Bensaadon
765e16bbaa Update README.md
added example usage for PRs, made a few edits.
2022-04-06 11:24:55 -04:00
dependabot[bot]
e619ea2c48 Bump @typescript-eslint/parser from 5.17.0 to 5.18.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.17.0 to 5.18.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.18.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-04-05 14:08:13 +00:00
Omer Bensaadon
196691e90c Update README.md
lowercasing P's to align to GH Style
2022-04-05 08:51:37 -04:00
Matthew Costabile
7a0820f976 Merge pull request #59 from actions/dependabot/npm_and_yarn/concurrently-7.1.0
Bump concurrently from 7.0.0 to 7.1.0
2022-04-04 16:23:23 -04:00
Matthew Costabile
740e8854f3 Merge pull request #60 from actions/dependabot/npm_and_yarn/prettier-2.6.2
Bump prettier from 2.6.1 to 2.6.2
2022-04-04 16:23:00 -04:00
Matthew Costabile
9baf5dabd0 Merge pull request #61 from omerbensaadon/patch-1
Fixing bolding in README
2022-04-04 16:22:35 -04:00
Omer Bensaadon
d07f6a07cd Update README.md
Co-authored-by: Cameron McHenry <camchenry@users.noreply.github.com>
2022-04-04 16:02:30 -04:00
Omer Bensaadon
fb013c35f1 Update README.md 2022-04-04 15:52:34 -04:00
dependabot[bot]
1b03f3603c Bump prettier from 2.6.1 to 2.6.2
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.1 to 2.6.2.
- [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.6.1...2.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 13:36:10 +00:00
dependabot[bot]
642595b881 Bump concurrently from 7.0.0 to 7.1.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.0.0...v7.1.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-04-04 13:35:49 +00:00
17 changed files with 1719 additions and 788 deletions

View File

@@ -46,7 +46,7 @@ jobs:
id: diff id: diff
# If index.js was different than expected, upload the expected version as an artifact # If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
if: ${{ failure() && steps.diff.conclusion == 'failure' }} if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with: with:
name: dist name: dist

View File

@@ -9,7 +9,7 @@
# the `language` matrix defined below to confirm you have the correct set of # the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages. # supported CodeQL languages.
# #
name: "CodeQL" name: 'CodeQL'
on: on:
push: push:
@@ -42,7 +42,7 @@ jobs:
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file. # If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below) # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v1 uses: github/codeql-action/autobuild@v2
# Command-line programs to run using the OS shell. # Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl # 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
# make release # make release
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v2

View File

@@ -18,3 +18,5 @@ jobs:
npm install npm install
- run: | - run: |
npm run build npm run build
- run: |
npm run test

View File

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

View File

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

View File

@@ -1,9 +1,9 @@
--- ---
name: '@actions/http-client' name: '@actions/http-client'
version: 1.0.11 version: 2.0.1
type: npm type: npm
summary: Actions Http Client summary: Actions Http Client
homepage: https://github.com/actions/http-client#readme homepage: https://github.com/actions/toolkit/tree/main/packages/http-client
license: mit license: mit
licenses: licenses:
- sources: LICENSE - sources: LICENSE

View File

@@ -1,6 +1,6 @@
--- ---
name: '@octokit/core' name: '@octokit/core'
version: 3.5.1 version: 3.6.0
type: npm type: npm
summary: Extendable client for GitHub's REST & GraphQL APIs summary: Extendable client for GitHub's REST & GraphQL APIs
homepage: homepage:

1
CODEOWNERS Normal file
View File

@@ -0,0 +1 @@
* @actions/actions-add-to-project

124
README.md
View File

@@ -1,15 +1,13 @@
# actions/add-to-project # actions/add-to-project
Use this action to automatically add the current issue or pull request to a GitHub Project. Use this action to automatically add the current issue or pull request to a [GitHub project](https://docs.github.com/en/issues/trying-out-the-new-projects-experience/about-projects).
Note that this is for [GitHub Projects Note that this action does not support [GitHub projects (classic)](https://docs.github.com/en/issues/organizing-your-work-with-project-boards).
(beta)](https://docs.github.com/en/issues/trying-out-the-new-projects-experience/about-projects),
not the original GitHub Projects.
## Current Status ## Current Status
[![build-test](https://github.com/actions/add-to-project/actions/workflows/test.yml/badge.svg)](https://github.com/actions/add-to-project/actions/workflows/test.yml) [![build-test](https://github.com/actions/add-to-project/actions/workflows/test.yml/badge.svg)](https://github.com/actions/add-to-project/actions/workflows/test.yml)
🚨 **This action is in beta, however the api is stable. Some breaking changes might occur between versions, but it is not likley to break as long as you use a speicifc sha or version number ** 🚨 > **NOTE:** ⚠️ This action no longer uses the deprecated ProjectNext API. If you are looking for the old version of that action, use version [v0.0.5](https://github.com/actions/add-to-project/releases/tag/v0.0.5).
## Usage ## Usage
@@ -17,9 +15,13 @@ _See [action.yml](action.yml) for [metadata](https://docs.github.com/en/actions/
_For more information about workflows, see [Using workflows](https://docs.github.com/en/actions/using-workflows)._ _For more information about workflows, see [Using workflows](https://docs.github.com/en/actions/using-workflows)._
To use the action, create a workflow that runs when issues are opened in your Create a workflow that runs when Issues or Pull Requests are opened or labeled in your repository; this workflow also supports adding Issues to your project which are transferred into your repository. Optionally configure any filters you may want to add, such as only adding issues with certain labels. You may match labels with an `AND` or an `OR` operator, or exclude labels with a `NOT` operator.
repository. Run this action in a step, optionally configuring any filters you
may want to add, such as only adding issues with certain labels. If you want to match all the labels, add `label-operator` input to be `AND`. Once you've configured your workflow, save it as a `.yml` file in your target Repository's `.github/workflows` directory.
### Examples
#### Example Usage: Issue opened with labels `bug` OR `needs-triage`
```yaml ```yaml
name: Add bugs to bugs project name: Add bugs to bugs project
@@ -34,38 +36,91 @@ jobs:
name: Add issue to project name: Add issue to project
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/add-to-project@main - uses: actions/add-to-project@RELEASE_VERSION
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/<orgName>/projects/<projectNumber>
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: bug, needs-triage
label-operator: OR
```
#### Example Usage: Adds all issues opened that do not include the label `bug` OR `needs-triage`
```yaml
name: Adds all issues that don't include the 'bug' or 'needs-triage' labels to project board
on:
issues:
types:
- opened
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@RELEASE_VERSION
with: with:
project-url: https://github.com/orgs/<orgName>/projects/<projectNumber> project-url: https://github.com/orgs/<orgName>/projects/<projectNumber>
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: bug, new labeled: bug, needs-triage
label-operator: NOT
```
#### Example Usage: Pull Requests labeled with `needs-review` and `size/XL`
```yaml
name: Add needs-review and size/XL pull requests to projects
on:
pull_request:
types:
- labeled
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@RELEASE_VERSION
with:
project-url: https://github.com/orgs/<orgName>/projects/<projectNumber>
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: needs-review, size/XL
label-operator: AND label-operator: AND
``` ```
#### Further reading and additional resources ### Further reading and additional resources
- [actions/add-to-project](#actionsadd-to-project)
- [Current Status](#current-status)
- [Usage](#usage)
- [Examples](#examples)
- [Example Usage: Issue opened with labels `bug` OR `needs-triage`](#example-usage-issue-opened-with-labels-bug-or-needs-triage)
- [Example Usage: Adds all issues opened that do not include the label `bug` OR `needs-triage`](#example-usage-adds-all-issues-opened-that-do-not-include-the-label-bug-or-needs-triage)
- [Example Usage: Pull Requests labeled with `needs-review` and `size/XL`](#example-usage-pull-requests-labeled-with-needs-review-and-sizexl)
- [Further reading and additional resources](#further-reading-and-additional-resources)
- [Inputs](#inputs) - [Inputs](#inputs)
- [Supported Events](#supported-events) - [Supported Events](#supported-events)
- [How to point the action to a specific branch or commit sha](#how-to-point-the-action-to-a-specific-branch-or-commit-sha)
- [Creating a PAT and adding it to your repository](#creating-a-pat-and-adding-it-to-your-repository) - [Creating a PAT and adding it to your repository](#creating-a-pat-and-adding-it-to-your-repository)
- [Development](#development) - [Development](#development)
- [Publish to a distribution branch](#publish-to-a-distribution-branch) - [Publish to a distribution branch](#publish-to-a-distribution-branch)
- [License](#license)
## Inputs ## Inputs
- <a name="project-url">`project-url`</a> **(required)** is the URL of the GitHub Project to add issues to. - <a name="project-url">`project-url`</a> **(required)** is the URL of the GitHub project to add issues to.
_eg: `https://github.com/orgs|users/<ownerName>/projects/<projectNumber>`_ _eg: `https://github.com/orgs|users/<ownerName>/projects/<projectNumber>`_
- <a name="github-token">`github-token`</a> **(required)** is a [personal access - <a name="github-token">`github-token`</a> **(required)** is a [personal access
token](https://github.com/settings/tokens/new) with the `repo`, `write:org` and token](https://github.com/settings/tokens/new) with `repo` and `project` scopes.
`read:org` scopes.
_See [Creating a PAT and adding it to your repository](#creating-a-pat-and-adding-it-to-your-repository) for more details_ _See [Creating a PAT and adding it to your repository](#creating-a-pat-and-adding-it-to-your-repository) for more details_
- <a name="labeled">`labeled`</a> **(optional)** is a comma-separated list of labels used to filter applicable issues. When this key is provided, an issue must have _one_ of the labels in the list to be added to the project. Omitting this key means that any issue will be added. - <a name="labeled">`labeled`</a> **(optional)** is a comma-separated list of labels used to filter applicable issues. When this key is provided, an issue must have _one_ of the labels in the list to be added to the project. Omitting this key means that any issue will be added.
- <a name="labeled">`label-operator`</a> **(optional)** is the behavior of the labels filter, either `AND` or `OR` that controls if the issue should be matched with `all` `labeled` input or any of them, default is `OR`. - <a name="labeled">`label-operator`</a> **(optional)** is the behavior of the labels filter, either `AND`, `OR` or `NOT` that controls if the issue should be matched with `all` `labeled` input or any of them, default is `OR`.
## Supported Events ## Supported Events
> **NOTE:** This Action (currently) only supports auto-adding Issues to a Project which lives in the same organization as your target repo.
Currently this action supports the following [`issues` events](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues): Currently this action supports the following [`issues` events](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues):
- `opened` - `opened`
@@ -79,41 +134,10 @@ and the following [`pull_request` events](https://docs.github.com/en/actions/usi
Using these events ensure that a given issue or pull request, in the workflow's repo, is added to the [specified project](#project-url). If [labeled input(s)](#labeled) are defined, then issues will only be added if they contain at least _one_ of the labels in the list. Using these events ensure that a given issue or pull request, in the workflow's repo, is added to the [specified project](#project-url). If [labeled input(s)](#labeled) are defined, then issues will only be added if they contain at least _one_ of the labels in the list.
## How to point the action to a specific branch or commit sha
Pointing to a branch name generally isn't the safest way to refer to an action, but this is how you can use this action now before we've begun creating releases.
```yaml
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/<orgName>/projects/<projectNumber>
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
```
Another option would be to point to a full [commit SHA](https://docs.github.com/en/get-started/quickstart/github-glossary#commit):
```yaml
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@<commitSHA>
with:
project-url: https://github.com/orgs/<orgName>/projects/<projectNumber>
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
```
## Creating a PAT and adding it to your repository ## Creating a PAT and adding it to your repository
- create a new [personal access - create a new [personal access
token](https://github.com/settings/tokens/new) with `repo`, `write:org` and token](https://github.com/settings/tokens/new) with `repo` and `project` scopes
`read:org` scopes
_See [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information_ _See [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information_
- add the newly created PAT as a repository secret, this secret will be referenced by the [github-token input](#github-token) - add the newly created PAT as a repository secret, this secret will be referenced by the [github-token input](#github-token)

View File

@@ -1,5 +1,6 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import * as github from '@actions/github' import * as github from '@actions/github'
import {addToProject, mustGetOwnerTypeQuery} from '../src/add-to-project' import {addToProject, mustGetOwnerTypeQuery} from '../src/add-to-project'
describe('addToProject', () => { describe('addToProject', () => {
@@ -11,7 +12,7 @@ describe('addToProject', () => {
beforeEach(() => { beforeEach(() => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token' 'github-token': 'gh_token'
}) })
@@ -23,24 +24,39 @@ describe('addToProject', () => {
jest.restoreAllMocks() jest.restoreAllMocks()
}) })
test('adds an issue to the project', async () => { test('adds an issue from the same organization to the project', 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'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
}
}
mockGraphQL( mockGraphQL(
{ {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { projectV2: {
id: 'project-next-id' id: 'project-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-item-id'
} }
} }
} }
@@ -49,12 +65,56 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(outputs.itemId).toEqual('project-next-item-id') expect(outputs.itemId).toEqual('project-item-id')
})
test('adds an issue from a different organization to the project', async () => {
github.context.payload = {
issue: {
number: 2221,
labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/octokit/octokit.js/issues/2221'
},
repository: {
name: 'octokit.js',
owner: {
login: 'octokit'
}
}
}
mockGraphQL(
{
test: /getProject/,
return: {
organization: {
projectV2: {
id: 'project-id'
}
}
}
},
{
test: /addProjectV2DraftIssue/,
return: {
addProjectV2DraftIssue: {
projectItem: {
id: 'project-item-id'
}
}
}
}
)
await addToProject()
expect(outputs.itemId).toEqual('project-item-id')
}) })
test('adds matching issues with a label filter without label-operator', async () => { test('adds matching issues with a label filter without label-operator', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'bug, new' labeled: 'bug, new'
}) })
@@ -62,7 +122,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [{name: 'bug'}] 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'
}
} }
} }
@@ -71,18 +139,18 @@ describe('addToProject', () => {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { projectV2: {
id: 'project-next-id' id: 'project-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-item-id'
} }
} }
} }
@@ -91,12 +159,12 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(outputs.itemId).toEqual('project-next-item-id') expect(outputs.itemId).toEqual('project-item-id')
}) })
test('adds matching pull-requests with a label filter without label-operator', async () => { test('adds matching pull-requests with a label filter without label-operator', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'bug, new' labeled: 'bug, new'
}) })
@@ -105,7 +173,15 @@ describe('addToProject', () => {
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
pull_request: { pull_request: {
number: 1, number: 1,
labels: [{name: 'bug'}] labels: [{name: 'bug'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/pull/136'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
} }
} }
@@ -114,18 +190,18 @@ describe('addToProject', () => {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { projectV2: {
id: 'project-next-id' id: 'project-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-item-id'
} }
} }
} }
@@ -134,12 +210,12 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(outputs.itemId).toEqual('project-next-item-id') expect(outputs.itemId).toEqual('project-item-id')
}) })
test('does not add un-matching issues with a label filter without label-operator', async () => { test('does not add un-matching issues with a label filter without label-operator', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'bug' labeled: 'bug'
}) })
@@ -147,7 +223,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [] 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'
}
} }
} }
@@ -160,7 +244,7 @@ describe('addToProject', () => {
test('adds matching issues with labels filter with AND label-operator', async () => { test('adds matching issues with labels filter with AND label-operator', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'bug, new', labeled: 'bug, new',
'label-operator': 'AND' 'label-operator': 'AND'
@@ -169,7 +253,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [{name: 'bug'}, {name: 'new'}] labels: [{name: 'bug'}, {name: 'new'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
} }
} }
@@ -178,17 +270,128 @@ describe('addToProject', () => {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { projectV2: {
id: 'project-id'
}
}
}
},
{
test: /addProjectV2ItemById/,
return: {
addProjectV2ItemById: {
item: {
id: 'project-item-id'
}
}
}
}
)
await addToProject()
expect(outputs.itemId).toEqual('project-item-id')
})
test('does not add un-matching issues with labels filter with AND label-operator', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'AND'
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'bug'}, {name: 'other'}],
// 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 addToProject()
expect(infoSpy).toHaveBeenCalledWith(`Skipping issue 1 because it doesn't match all the labels: bug, new`)
expect(gqlMock).not.toHaveBeenCalled()
})
test('does not add matching issues with labels filter with NOT label-operator', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'NOT'
})
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 infoSpy = jest.spyOn(core, 'info')
const gqlMock = mockGraphQL()
await addToProject()
expect(infoSpy).toHaveBeenCalledWith(`Skipping issue 1 because it contains one of the labels: bug, new`)
expect(gqlMock).not.toHaveBeenCalled()
})
test('adds issues that do not have labels present in the label list with NOT label-operator', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'NOT'
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'other'}],
// 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' id: 'project-next-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-next-item-id'
} }
} }
@@ -201,31 +404,9 @@ describe('addToProject', () => {
expect(outputs.itemId).toEqual('project-next-item-id') expect(outputs.itemId).toEqual('project-next-item-id')
}) })
test('does not add un-matching issues with labels filter with AND label-operator', async () => {
mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1',
'github-token': 'gh_token',
labeled: 'bug, new',
'label-operator': 'AND'
})
github.context.payload = {
issue: {
number: 1,
labels: [{name: 'bug'}, {name: 'other'}]
}
}
const infoSpy = jest.spyOn(core, 'info')
const gqlMock = mockGraphQL()
await addToProject()
expect(infoSpy).toHaveBeenCalledWith(`Skipping issue 1 because it doesn't match all the labels: bug, new`)
expect(gqlMock).not.toHaveBeenCalled()
})
test('adds matching issues with multiple label filters', async () => { test('adds matching issues with multiple label filters', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'accessibility,backend,bug' labeled: 'accessibility,backend,bug'
}) })
@@ -233,7 +414,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [{name: 'accessibility'}, {name: 'backend'}] labels: [{name: 'accessibility'}, {name: 'backend'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
} }
} }
@@ -242,18 +431,18 @@ describe('addToProject', () => {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { projectV2: {
id: 'project-next-id' id: 'project-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-item-id'
} }
} }
} }
@@ -265,13 +454,15 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(gqlMock).toHaveBeenCalled() expect(gqlMock).toHaveBeenCalled()
expect(infoSpy).not.toHaveBeenCalled() expect(infoSpy).toHaveBeenCalledWith('Creating project item')
expect(outputs.itemId).toEqual('project-next-item-id') // We shouldn't have any logs relating to the issue being skipped
expect(infoSpy.mock.calls.length).toEqual(1)
expect(outputs.itemId).toEqual('project-item-id')
}) })
test('does not add un-matching issues with multiple label filters', async () => { test('does not add un-matching issues with multiple label filters', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'accessibility, backend, bug' labeled: 'accessibility, backend, bug'
}) })
@@ -279,7 +470,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [{name: 'data'}, {name: 'frontend'}, {name: 'improvement'}] labels: [{name: 'data'}, {name: 'frontend'}, {name: 'improvement'}],
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
} }
} }
@@ -294,7 +493,7 @@ describe('addToProject', () => {
test('handles spaces and extra commas gracefully in label filter input', async () => { test('handles spaces and extra commas gracefully in label filter input', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'accessibility , backend ,, . , bug' labeled: 'accessibility , backend ,, . , bug'
}) })
@@ -303,7 +502,15 @@ describe('addToProject', () => {
issue: { issue: {
number: 1, number: 1,
labels: [{name: 'accessibility'}, {name: 'backend'}, {name: 'bug'}], labels: [{name: 'accessibility'}, {name: 'backend'}, {name: 'bug'}],
'label-operator': 'AND' 'label-operator': 'AND',
// eslint-disable-next-line camelcase
html_url: 'https://github.com/actions/add-to-project/issues/74'
},
repository: {
name: 'add-to-project',
owner: {
login: 'actions'
}
} }
} }
@@ -312,18 +519,18 @@ describe('addToProject', () => {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { projectV2: {
id: 'project-next-id' id: 'project-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-item-id'
} }
} }
} }
@@ -335,8 +542,10 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(gqlMock).toHaveBeenCalled() expect(gqlMock).toHaveBeenCalled()
expect(infoSpy).not.toHaveBeenCalled() expect(infoSpy).toHaveBeenCalledWith('Creating project item')
expect(outputs.itemId).toEqual('project-next-item-id') // We shouldn't have any logs relating to the issue being skipped
expect(infoSpy.mock.calls.length).toEqual(1)
expect(outputs.itemId).toEqual('project-item-id')
}) })
test(`throws an error when url isn't a valid project url`, async () => { test(`throws an error when url isn't a valid project url`, async () => {
@@ -348,7 +557,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [] 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'
}
} }
} }
@@ -370,7 +587,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [] 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'
}
} }
} }
@@ -385,7 +610,7 @@ describe('addToProject', () => {
test('constructs the correct graphQL query given an organization owner', async () => { test('constructs the correct graphQL query given an organization owner', async () => {
mockGetInput({ mockGetInput({
'project-url': 'https://github.com/orgs/github/projects/1', 'project-url': 'https://github.com/orgs/actions/projects/1',
'github-token': 'gh_token', 'github-token': 'gh_token',
labeled: 'bug, new' labeled: 'bug, new'
}) })
@@ -393,7 +618,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [{name: 'bug'}] 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'
}
} }
} }
@@ -402,18 +635,18 @@ describe('addToProject', () => {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { projectV2: {
id: 'project-next-id' id: 'project-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-item-id'
} }
} }
} }
@@ -422,8 +655,8 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(gqlMock).toHaveBeenNthCalledWith(1, expect.stringContaining('organization(login: $ownerName)'), { expect(gqlMock).toHaveBeenNthCalledWith(1, expect.stringContaining('organization(login: $projectOwnerName)'), {
ownerName: 'github', projectOwnerName: 'actions',
projectNumber: 1 projectNumber: 1
}) })
}) })
@@ -438,7 +671,15 @@ describe('addToProject', () => {
github.context.payload = { github.context.payload = {
issue: { issue: {
number: 1, number: 1,
labels: [{name: 'bug'}] 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'
}
} }
} }
@@ -447,17 +688,71 @@ describe('addToProject', () => {
test: /getProject/, test: /getProject/,
return: { return: {
organization: { organization: {
projectNext: { 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' id: 'project-next-id'
} }
} }
} }
}, },
{ {
test: /addProjectNextItem/, test: /addProjectV2ItemById/,
return: { return: {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: 'project-next-item-id' id: 'project-next-item-id'
} }
} }
@@ -467,10 +762,7 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(gqlMock).toHaveBeenNthCalledWith(1, expect.stringContaining('user(login: $ownerName)'), { expect(outputs.itemId).toEqual('project-next-item-id')
ownerName: 'monalisa',
projectNumber: 1
})
}) })
}) })

View File

@@ -1,5 +1,5 @@
name: Add To GitHub Projects Beta name: Add To GitHub projects
description: Automatically add issues and PRs to GitHub projects beta description: Automatically add issues and PRs to GitHub projects
author: GitHub author: GitHub
branding: branding:
icon: table icon: table
@@ -15,7 +15,7 @@ inputs:
description: A comma-separated list of labels to use as a filter for issue to be added description: A comma-separated list of labels to use as a filter for issue to be added
label-operator: label-operator:
required: false required: false
description: The behavior of the labels filter, AND to match all labels, OR to match any label (default is OR) description: The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR)
runs: runs:
using: 'node16' using: 'node16'
main: 'dist/index.js' main: 'dist/index.js'

788
dist/index.js generated vendored

File diff suppressed because it is too large Load Diff

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

2
dist/sourcemap-register.js generated vendored

File diff suppressed because one or more lines are too long

557
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +1,11 @@
{ {
"name": "@actions/add-to-project", "name": "@actions/add-to-project",
"description": "Automatically issues and PRs to GitHub projects", "description": "Automatically adds issues and PRs to GitHub projects",
"version": "0.0.0", "version": "0.0.0",
"author": "GitHub and contributors", "author": "GitHub and contributors",
"dependencies": { "dependencies": {
"@actions/core": "^1.6.0", "@actions/core": "^1.9.0",
"@actions/github": "^5.0.0" "@actions/github": "^5.0.3"
}, },
"engines": { "engines": {
"node": ">=16.0.0 <17.0.0", "node": ">=16.0.0 <17.0.0",
@@ -13,19 +13,19 @@
}, },
"devDependencies": { "devDependencies": {
"@github/prettier-config": "^0.0.4", "@github/prettier-config": "^0.0.4",
"@types/jest": "^27.4.1", "@types/jest": "^27.5.0",
"@types/node": "~16.11.26", "@types/node": "~16.11.45",
"@typescript-eslint/parser": "^5.17.0", "@typescript-eslint/parser": "^5.30.7",
"@vercel/ncc": "^0.33.3", "@vercel/ncc": "^0.34.0",
"concurrently": "^7.0.0", "concurrently": "^7.3.0",
"eslint": "^8.12.0", "eslint": "^8.20.0",
"eslint-plugin-github": "^4.3.6", "eslint-plugin-github": "^4.3.6",
"eslint-plugin-jest": "^26.1.3", "eslint-plugin-jest": "^26.6.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.2.1",
"jest": "^27.5.1", "jest": "^27.5.1",
"prettier": "2.6.1", "prettier": "2.7.1",
"ts-jest": "^27.1.4", "ts-jest": "^27.1.4",
"typescript": "^4.6.3" "typescript": "^4.7.4"
}, },
"keywords": [ "keywords": [
"actions", "actions",

View File

@@ -8,21 +8,29 @@ const urlParse =
interface ProjectNodeIDResponse { interface ProjectNodeIDResponse {
organization?: { organization?: {
projectNext: { projectV2: {
id: string id: string
} }
} }
user?: { user?: {
projectNext: { projectV2: {
id: string id: string
} }
} }
} }
interface ProjectAddItemResponse { interface ProjectAddItemResponse {
addProjectNextItem: { addProjectV2ItemById: {
projectNextItem: { item: {
id: string
}
}
}
interface ProjectV2AddDraftIssueResponse {
addProjectV2DraftIssue: {
projectItem: {
id: string id: string
} }
} }
@@ -35,14 +43,17 @@ export async function addToProject(): Promise<void> {
core core
.getInput('labeled') .getInput('labeled')
.split(',') .split(',')
.map(l => l.trim()) .map(l => l.trim().toLowerCase())
.filter(l => l.length > 0) ?? [] .filter(l => l.length > 0) ?? []
const labelOperator = core.getInput('label-operator').trim().toLocaleLowerCase() const labelOperator = core.getInput('label-operator').trim().toLocaleLowerCase()
const octokit = github.getOctokit(ghToken) const octokit = github.getOctokit(ghToken)
const urlMatch = projectUrl.match(urlParse)
const issue = github.context.payload.issue ?? github.context.payload.pull_request const issue = github.context.payload.issue ?? github.context.payload.pull_request
const issueLabels: string[] = (issue?.labels ?? []).map((l: {name: string}) => l.name) const issueLabels: string[] = (issue?.labels ?? []).map((l: {name: string}) => l.name.toLowerCase())
const issueOwnerName = github.context.payload.repository?.owner.login
core.debug(`Issue/PR owner: ${issueOwnerName}`)
// Ensure the issue matches our `labeled` filter based on the label-operator. // Ensure the issue matches our `labeled` filter based on the label-operator.
if (labelOperator === 'and') { if (labelOperator === 'and') {
@@ -50,6 +61,11 @@ export async function addToProject(): Promise<void> {
core.info(`Skipping issue ${issue?.number} because it doesn't match all the labels: ${labeled.join(', ')}`) core.info(`Skipping issue ${issue?.number} because it doesn't match all the labels: ${labeled.join(', ')}`)
return return
} }
} else if (labelOperator === 'not') {
if (labeled.length > 0 && issueLabels.some(l => labeled.includes(l))) {
core.info(`Skipping issue ${issue?.number} because it contains one of the labels: ${labeled.join(', ')}`)
return
}
} else { } else {
if (labeled.length > 0 && !issueLabels.some(l => labeled.includes(l))) { if (labeled.length > 0 && !issueLabels.some(l => labeled.includes(l))) {
core.info(`Skipping issue ${issue?.number} because it does not have one of the labels: ${labeled.join(', ')}`) core.info(`Skipping issue ${issue?.number} because it does not have one of the labels: ${labeled.join(', ')}`)
@@ -59,60 +75,89 @@ export async function addToProject(): Promise<void> {
core.debug(`Project URL: ${projectUrl}`) core.debug(`Project URL: ${projectUrl}`)
const urlMatch = projectUrl.match(urlParse)
if (!urlMatch) { if (!urlMatch) {
throw new Error( 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 https://github.com/<orgs-or-users>/<ownerName>/projects/<projectNumber>`
) )
} }
const ownerName = urlMatch.groups?.ownerName const projectOwnerName = urlMatch.groups?.ownerName
const projectNumber = parseInt(urlMatch.groups?.projectNumber ?? '', 10) const projectNumber = parseInt(urlMatch.groups?.projectNumber ?? '', 10)
const ownerType = urlMatch.groups?.ownerType const ownerType = urlMatch.groups?.ownerType
const ownerTypeQuery = mustGetOwnerTypeQuery(ownerType) const ownerTypeQuery = mustGetOwnerTypeQuery(ownerType)
core.debug(`Org name: ${ownerName}`) core.debug(`Project owner: ${projectOwnerName}`)
core.debug(`Project number: ${projectNumber}`) core.debug(`Project number: ${projectNumber}`)
core.debug(`Owner type: ${ownerType}`) core.debug(`Project owner type: ${ownerType}`)
// First, use the GraphQL API to request the project's node ID. // First, use the GraphQL API to request the project's node ID.
const idResp = await octokit.graphql<ProjectNodeIDResponse>( const idResp = await octokit.graphql<ProjectNodeIDResponse>(
`query getProject($ownerName: String!, $projectNumber: Int!) { `query getProject($projectOwnerName: String!, $projectNumber: Int!) {
${ownerTypeQuery}(login: $ownerName) { ${ownerTypeQuery}(login: $projectOwnerName) {
projectNext(number: $projectNumber) { projectV2(number: $projectNumber) {
id id
} }
} }
}`, }`,
{ {
ownerName, projectOwnerName,
projectNumber projectNumber
} }
) )
const projectId = idResp[ownerTypeQuery]?.projectNext.id const projectId = idResp[ownerTypeQuery]?.projectV2.id
const contentId = issue?.node_id const contentId = issue?.node_id
core.debug(`Project node ID: ${projectId}`) core.debug(`Project node ID: ${projectId}`)
core.debug(`Content ID: ${contentId}`) core.debug(`Content ID: ${contentId}`)
// Next, use the GraphQL API to add the issue to the project. // Next, use the GraphQL API to add the issue to the project.
// If the issue has the same owner as the project, we can directly
// add a project item. Otherwise, we add a draft issue.
if (issueOwnerName === projectOwnerName) {
core.info('Creating project item')
const addResp = await octokit.graphql<ProjectAddItemResponse>( const addResp = await octokit.graphql<ProjectAddItemResponse>(
`mutation addIssueToProject($input: AddProjectNextItemInput!) { `mutation addIssueToProject($input: AddProjectV2ItemByIdInput!) {
addProjectNextItem(input: $input) { addProjectV2ItemById(input: $input) {
projectNextItem { item {
id id
} }
} }
}`, }`,
{ {
input: { input: {
contentId, projectId,
projectId contentId
} }
} }
) )
core.setOutput('itemId', addResp.addProjectNextItem.projectNextItem.id) core.setOutput('itemId', addResp.addProjectV2ItemById.item.id)
} else {
core.info('Creating draft issue in project')
const addResp = await octokit.graphql<ProjectV2AddDraftIssueResponse>(
`mutation addDraftIssueToProject($projectId: ID!, $title: String!) {
addProjectV2DraftIssue(input: {
projectId: $projectId,
title: $title
}) {
projectItem {
id
}
}
}`,
{
projectId,
title: issue?.html_url
}
)
core.setOutput('itemId', addResp.addProjectV2DraftIssue.projectItem.id)
}
} }
export function mustGetOwnerTypeQuery(ownerType?: string): 'organization' | 'user' { export function mustGetOwnerTypeQuery(ownerType?: string): 'organization' | 'user' {