Compare commits

..

35 Commits

Author SHA1 Message Date
Cam McHenry
3c433aa66a Add test changes 2024-03-18 19:49:10 +00:00
Cam McHenry
34dcf61506 Add success message and remove newlines 2024-03-18 19:49:02 +00:00
Cam McHenry
032c0af29a Remove blank lines 2024-03-18 19:45:59 +00:00
Cam McHenry
3c0dc2fb24 Improve message 2024-03-18 19:40:17 +00:00
Cam McHenry
831555bfab Add help instructions 2024-03-18 19:33:42 +00:00
Cam McHenry
23a466f0a1 Improve check-dist output 2024-03-18 19:33:42 +00:00
Cam McHenry
a529082df9 Merge pull request #508 from actions/dependabot/github_actions/actions/upload-artifact-4
build(deps): bump actions/upload-artifact from 3 to 4
2024-03-18 19:11:09 +00:00
Cam McHenry
3d28050eae Merge pull request #507 from actions/dependabot/github_actions/github/codeql-action-3
build(deps): bump github/codeql-action from 2 to 3
2024-03-18 19:09:48 +00:00
dependabot[bot]
df5516beff build(deps): bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
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>
2024-03-18 19:03:34 +00:00
Cam McHenry
92dbc06e5d Merge pull request #520 from actions/dependabot/npm_and_yarn/eslint-8.57.0
build(deps-dev): bump eslint from 8.49.0 to 8.57.0
2024-03-18 19:02:30 +00:00
dependabot[bot]
04b135066e build(deps): bump github/codeql-action from 2 to 3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [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/v2...v3)

---
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>
2024-03-18 19:00:16 +00:00
dependabot[bot]
d300992994 build(deps-dev): bump eslint from 8.49.0 to 8.57.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.49.0 to 8.57.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.49.0...v8.57.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 18:57:21 +00:00
Tara Nelson
fdcca9b630 Merge pull request #498 from actions/dependabot/npm_and_yarn/concurrently-8.2.2
build(deps-dev): bump concurrently from 8.2.1 to 8.2.2
2024-03-18 18:55:15 +00:00
dependabot[bot]
d18e1683af build(deps-dev): bump concurrently from 8.2.1 to 8.2.2
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 8.2.1 to 8.2.2.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v8.2.1...v8.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>
2024-03-18 18:52:20 +00:00
Tara Nelson
e589e53cb5 Merge pull request #514 from actions/dependabot/npm_and_yarn/eslint-plugin-prettier-5.1.3
build(deps-dev): bump eslint-plugin-prettier from 5.0.0 to 5.1.3
2024-03-18 18:46:01 +00:00
Josh Rowley
0609a2702e Merge pull request #517 from mattcosta7/patch-1
Update action.yml
2024-02-14 19:13:14 +00:00
Matthew Costabile
9431bea31b Update action.yml 2024-02-14 14:06:26 -05:00
Josh Rowley
0008229a22 Merge pull request #503 from takost/update-to-node-20
Update action to node20
2024-02-05 16:14:31 +00:00
dependabot[bot]
4c39393a8d build(deps-dev): bump eslint-plugin-prettier from 5.0.0 to 5.1.3
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.0.0 to 5.1.3.
- [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/v5.0.0...v5.1.3)

---
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>
2024-01-10 14:01:55 +00:00
Tatyana Kostromskaya
5a5c08a0d8 Update action to node20 2023-11-20 13:05:21 +00:00
Derrick Marcey
0be3b6580a Merge pull request #494 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-27.6.0
build(deps-dev): bump eslint-plugin-jest from 27.2.3 to 27.6.0
2023-11-01 15:53:21 +00:00
Derrick Marcey
9c5d7e2309 Merge branch 'main' into dependabot/npm_and_yarn/eslint-plugin-jest-27.6.0 2023-11-01 11:43:48 -04:00
Derrick Marcey
6460bf625c Merge pull request #495 from actions/dependabot/npm_and_yarn/types/node-16.18.60
build(deps-dev): bump @types/node from 16.18.51 to 16.18.60
2023-11-01 15:40:55 +00:00
dependabot[bot]
c48fdd4a10 build(deps-dev): bump @types/node from 16.18.51 to 16.18.60
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.51 to 16.18.60.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 15:38:40 +00:00
Derrick Marcey
b953640a26 Merge pull request #496 from actions/dependabot/npm_and_yarn/types/jest-29.5.7
build(deps-dev): bump @types/jest from 29.5.4 to 29.5.7
2023-11-01 15:36:57 +00:00
Derrick Marcey
f9db65bca7 Merge branch 'main' into dependabot/npm_and_yarn/types/jest-29.5.7 2023-11-01 11:16:52 -04:00
Derrick Marcey
14158fbdd3 Merge pull request #488 from CodyCBakerPhD/fix_readme_typo
Correcting job name for PR example
2023-11-01 15:16:16 +00:00
Derrick Marcey
2271bbc40a Merge pull request #487 from actions/dependabot/npm_and_yarn/babel/traverse-7.23.2
build(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2
2023-11-01 15:10:21 +00:00
Derrick Marcey
4ae637c179 Merge branch 'main' into dependabot/npm_and_yarn/babel/traverse-7.23.2 2023-11-01 11:07:15 -04:00
dependabot[bot]
aff20dd010 build(deps-dev): bump @types/jest from 29.5.4 to 29.5.7
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.4 to 29.5.7.
- [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-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 15:06:04 +00:00
Derrick Marcey
a6f5f3bc15 Merge pull request #497 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-6.9.1
build(deps-dev): bump @typescript-eslint/parser from 6.7.0 to 6.9.1
2023-11-01 15:04:24 +00:00
dependabot[bot]
af8bceb810 build(deps-dev): bump @typescript-eslint/parser from 6.7.0 to 6.9.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.0 to 6.9.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/v6.9.1/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-31 13:50:21 +00:00
dependabot[bot]
110be9cca7 build(deps-dev): bump eslint-plugin-jest from 27.2.3 to 27.6.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.2.3 to 27.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/v27.2.3...v27.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>
2023-10-27 13:23:06 +00:00
Cody Baker
1af3c586cc fix minor typo in job name for PR example 2023-10-22 13:28:08 -04:00
dependabot[bot]
038cf47bad build(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-19 11:35:47 +00:00
8 changed files with 433 additions and 824 deletions

View File

@@ -1,21 +0,0 @@
name: Add new Issues with `bug` label to `Projects Shared FR Triage`
on:
issues:
types:
- opened
pull_request:
types:
- opened
permissions:
contents: read
jobs:
add-to-triage-project:
name: Add issue or pull request to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@d8e41a41861baa4c7af88a39f7692681e89f6668
with:
project-url: https://github.com/orgs/github/projects/4017
github-token: ${{ secrets.PROJECTS_FR_PROJECT_UPDATE_TOKEN }}

View File

@@ -15,6 +15,11 @@ on:
paths-ignore:
- '**.md'
env:
# A pipe-separated array of files to ignore when comparing the expected and actual dist/ directories,
# which are used as a regular expression filter in the `grep` command.
FILES_TO_IGNORE: 'index.js.map|sourcemap-register.js'
jobs:
check-dist:
runs-on: ubuntu-latest
@@ -22,10 +27,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set Node.js 16.x
- name: Set Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x
cache: npm
- name: Install dependencies
@@ -38,15 +43,23 @@ jobs:
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
# Get a list of files that are different between the checked-in dist/ directory and the generated dist/ directory,
# then trim the list to remove any leading or trailing whitespace.
CHANGED_FILES=$(git diff --ignore-space-at-eol --name-only dist/ | grep -vE "$FILES_TO_IGNORE" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
if [ -n "$CHANGED_FILES" ]; then
echo "❗️ Detected uncommitted changes after build (see diff output below)." >&2
echo "This indicates that the dist/ directory is out of sync with the checked-in index.js.\n" >&2
echo "⭐️ If the changes below are expected, run 'npm run build:compile && npm run build:package' and commit the output files." >&2
# Run `git diff` for each line/file in $CHANGED_FILES:
echo "$CHANGED_FILES" | xargs -I {} git diff --ignore-space-at-eol --text -- {}
exit 1
else
echo "✅ No uncommitted changes detected after build."
fi
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist

View File

@@ -42,7 +42,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# 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).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

View File

@@ -81,7 +81,7 @@ on:
jobs:
add-to-project:
name: Add issue to project
name: Add pull request to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@RELEASE_VERSION

View File

@@ -3,6 +3,7 @@ description: Automatically add issues and PRs to GitHub projects
author: GitHub
branding:
icon: table
color: white
inputs:
project-url:
required: true
@@ -20,5 +21,5 @@ outputs:
itemId:
description: The ID of the item that was added to the project
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'

1179
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,21 +8,21 @@
"@actions/github": "^5.1.1"
},
"engines": {
"node": ">=16.0.0 <20.0.0",
"node": ">=16.0.0",
"npm": ">= 8.0.0"
},
"devDependencies": {
"@github/prettier-config": "^0.0.6",
"@types/jest": "^29.5.4",
"@types/node": "16.18.51",
"@typescript-eslint/parser": "^6.7.0",
"@types/jest": "^29.5.7",
"@types/node": "16.18.60",
"@typescript-eslint/parser": "^6.9.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@vercel/ncc": "^0.38.0",
"concurrently": "^8.2.1",
"eslint": "^8.49.0",
"concurrently": "^8.2.2",
"eslint": "^8.57.0",
"eslint-plugin-github": "^4.10.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"prettier": "3.0.3",
"ts-jest": "^29.1.1",

View File

@@ -117,6 +117,11 @@ export async function addToProject(): Promise<void> {
if (issueOwnerName === projectOwnerName) {
core.info('Creating project item')
if (issueOwnerName === 'github') {
console.log('this is a test')
throw new Error('test')
}
const addResp = await octokit.graphql<ProjectAddItemResponse>(
`mutation addIssueToProject($input: AddProjectV2ItemByIdInput!) {
addProjectV2ItemById(input: $input) {