Compare commits

..

16 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
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
5 changed files with 144 additions and 631 deletions

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

737
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -18,11 +18,11 @@
"@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.6.0",
"eslint-plugin-prettier": "^5.0.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) {