Compare commits
84 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1db7729b3 | ||
|
|
ce52669395 | ||
|
|
5903de3096 | ||
|
|
6ad9236846 | ||
|
|
22c47cfe58 | ||
|
|
ccd245ac4a | ||
|
|
a95f7769a9 | ||
|
|
f6e2c64014 | ||
|
|
d2a2dc3947 | ||
|
|
bf543cc70a | ||
|
|
aeb6b8e80f | ||
|
|
994661fbb1 | ||
|
|
980248f116 | ||
|
|
467bfeecee | ||
|
|
6e7707e6df | ||
|
|
f8531e82c6 | ||
|
|
1c4688942c | ||
|
|
76a99ddc54 | ||
|
|
2ead13ce86 | ||
|
|
2e8e20081d | ||
|
|
df55979d04 | ||
|
|
c056c1801c | ||
|
|
dac371d2f4 | ||
|
|
33689d3bf6 | ||
|
|
8e69b57fc5 | ||
|
|
69c5373796 | ||
|
|
dcfeffc0c7 | ||
|
|
fb54a3d8ae | ||
|
|
4618d4d5bb | ||
|
|
6b35c8253b | ||
|
|
6cea8723ea | ||
|
|
f44c11ebd1 | ||
|
|
f598f6795f | ||
|
|
060edb2b27 | ||
|
|
77cbbd906f | ||
|
|
14f252a1f6 | ||
|
|
ad93111721 | ||
|
|
dad370b79a | ||
|
|
8000bc50c7 | ||
|
|
82f80dfd18 | ||
|
|
c4df7d4167 | ||
|
|
9307c29682 | ||
|
|
4c76148459 | ||
|
|
cf5cf8763f | ||
|
|
b29d168c60 | ||
|
|
fe703bdd34 | ||
|
|
3346972303 | ||
|
|
551d20915e | ||
|
|
843400517f | ||
|
|
d1cde71cbb | ||
|
|
0972aa989b | ||
|
|
753c925c8d | ||
|
|
f227809c7b | ||
|
|
e5b5b2dd61 | ||
|
|
56cdf16402 | ||
|
|
6d0c4b592b | ||
|
|
3372cfa0ab | ||
|
|
82989bf367 | ||
|
|
a41b9d6826 | ||
|
|
6722ff5b66 | ||
|
|
e518f77f1a | ||
|
|
7e61bc470c | ||
|
|
8e61342735 | ||
|
|
be5cffc9a6 | ||
|
|
d91d805d9f | ||
|
|
5fc76d6491 | ||
|
|
b1c77423e6 | ||
|
|
593f51e6fa | ||
|
|
6d755fd399 | ||
|
|
7c9c1f6be3 | ||
|
|
1f19413086 | ||
|
|
3df0011530 | ||
|
|
4052272707 | ||
|
|
a788bec9ef | ||
|
|
3de0331278 | ||
|
|
71e3485078 | ||
|
|
d46a670003 | ||
|
|
f36baee2b9 | ||
|
|
6621dd787c | ||
|
|
f97a91eaca | ||
|
|
5c07c1f700 | ||
|
|
fa27acf0ed | ||
|
|
bc9b0498c6 | ||
|
|
105e620652 |
7
.checkov.yml
Normal file
7
.checkov.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
# See: https://www.checkov.io/1.Welcome/Quick%20Start.html
|
||||
|
||||
compact: true
|
||||
quiet: true
|
||||
skip-path:
|
||||
- coverage
|
||||
- node_modules
|
||||
6
.github/workflows/check-dist.yml
vendored
6
.github/workflows/check-dist.yml
vendored
@@ -28,11 +28,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Setup Node.js
|
||||
id: setup-node
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
|
||||
name: Upload Artifact
|
||||
id: upload
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
|
||||
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@@ -30,19 +30,19 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Initialize CodeQL
|
||||
id: initialize
|
||||
uses: github/codeql-action/init@v3
|
||||
uses: github/codeql-action/init@v4
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
source-root: src
|
||||
|
||||
- name: Autobuild
|
||||
id: autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
uses: github/codeql-action/autobuild@v4
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
id: analyze
|
||||
uses: github/codeql-action/analyze@v3
|
||||
uses: github/codeql-action/analyze@v4
|
||||
|
||||
4
.github/workflows/continuous-integration.yml
vendored
4
.github/workflows/continuous-integration.yml
vendored
@@ -18,11 +18,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Setup Node.js
|
||||
id: setup-node
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
|
||||
6
.github/workflows/first-interaction.yml
vendored
6
.github/workflows/first-interaction.yml
vendored
@@ -22,12 +22,12 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/first-interaction@main
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-message: |
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue_message: |
|
||||
Hello! Thank you for filing an issue.
|
||||
|
||||
If this is a bug report, please include relevant logs to help us debug the problem.
|
||||
pr-message: |
|
||||
pr_message: |
|
||||
Hello! Thank you for your contribution.
|
||||
|
||||
If you are fixing a bug, please reference the issue number in the description.
|
||||
|
||||
4
.github/workflows/licensed.yml
vendored
4
.github/workflows/licensed.yml
vendored
@@ -24,11 +24,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Setup Node.js
|
||||
id: setup-node
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
|
||||
19
.github/workflows/linter.yml
vendored
19
.github/workflows/linter.yml
vendored
@@ -1,3 +1,8 @@
|
||||
# This workflow will lint the entire codebase using the
|
||||
# `super-linter/super-linter` action.
|
||||
#
|
||||
# For more information, see the super-linter repository:
|
||||
# https://github.com/super-linter/super-linter
|
||||
name: Lint Codebase
|
||||
|
||||
on:
|
||||
@@ -21,13 +26,13 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js
|
||||
id: setup-node
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
@@ -38,16 +43,18 @@ jobs:
|
||||
|
||||
- name: Lint Codebase
|
||||
id: super-linter
|
||||
uses: super-linter/super-linter/slim@v7
|
||||
uses: super-linter/super-linter/slim@v8
|
||||
env:
|
||||
CHECKOV_FILE_NAME: .checkov.yml
|
||||
DEFAULT_BRANCH: main
|
||||
FILTER_REGEX_EXCLUDE: dist/**/*
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
LINTER_RULES_PATH: ${{ github.workspace }}
|
||||
LINTER_RULES_PATH: .
|
||||
VALIDATE_ALL_CODEBASE: true
|
||||
VALIDATE_BIOME_FORMAT: false
|
||||
VALIDATE_BIOME_LINT: false
|
||||
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
|
||||
VALIDATE_JAVASCRIPT_ES: false
|
||||
VALIDATE_JAVASCRIPT_STANDARD: false
|
||||
VALIDATE_JSCPD: false
|
||||
VALIDATE_TYPESCRIPT_ES: false
|
||||
VALIDATE_JSON: false
|
||||
VALIDATE_TYPESCRIPT_STANDARD: false
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-tags: true
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/auth-token"
|
||||
version: 5.1.2
|
||||
version: 6.0.0
|
||||
type: npm
|
||||
summary: GitHub API token authentication for browsers and Node.js
|
||||
homepage:
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/core"
|
||||
version: 6.1.4
|
||||
version: 7.0.3
|
||||
type: npm
|
||||
summary: Extendable client for GitHub's REST & GraphQL APIs
|
||||
homepage:
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/endpoint"
|
||||
version: 10.1.3
|
||||
version: 11.0.0
|
||||
type: npm
|
||||
summary: Turns REST API endpoints into generic request options
|
||||
homepage:
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/graphql"
|
||||
version: 8.2.1
|
||||
version: 9.0.1
|
||||
type: npm
|
||||
summary: GitHub GraphQL API client for browsers and Node
|
||||
homepage:
|
||||
20
.licenses/npm/@octokit/openapi-types-25.1.0.dep.yml
Normal file
20
.licenses/npm/@octokit/openapi-types-25.1.0.dep.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: "@octokit/openapi-types"
|
||||
version: 25.1.0
|
||||
type: npm
|
||||
summary: Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com
|
||||
homepage:
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: LICENSE
|
||||
text: |
|
||||
Copyright (c) GitHub 2025 - Licensed as MIT.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
- sources: README.md
|
||||
text: "[MIT](LICENSE)"
|
||||
notices: []
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/plugin-paginate-rest"
|
||||
version: 11.4.2
|
||||
version: 13.1.1
|
||||
type: npm
|
||||
summary: Octokit plugin to paginate REST API endpoint responses
|
||||
homepage:
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/plugin-request-log"
|
||||
version: 5.3.1
|
||||
version: 6.0.0
|
||||
type: npm
|
||||
summary: Log all requests and request errors
|
||||
homepage:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/plugin-rest-endpoint-methods"
|
||||
version: 13.3.1
|
||||
version: 16.0.0
|
||||
type: npm
|
||||
summary: Octokit plugin adding one method for all of api.github.com REST API endpoints
|
||||
homepage:
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/request"
|
||||
version: 9.2.2
|
||||
version: 10.0.3
|
||||
type: npm
|
||||
summary: Send parameterized requests to GitHub's APIs with sensible defaults in browsers
|
||||
and Node
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/request-error"
|
||||
version: 6.1.7
|
||||
version: 7.0.0
|
||||
type: npm
|
||||
summary: Error class for Octokit request errors
|
||||
homepage:
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@octokit/rest"
|
||||
version: 21.1.1
|
||||
version: 22.0.0
|
||||
type: npm
|
||||
summary: GitHub REST API client for Node.js
|
||||
homepage:
|
||||
|
||||
20
.licenses/npm/@octokit/types-14.1.0.dep.yml
Normal file
20
.licenses/npm/@octokit/types-14.1.0.dep.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: "@octokit/types"
|
||||
version: 14.1.0
|
||||
type: npm
|
||||
summary: Shared TypeScript definitions for Octokit projects
|
||||
homepage:
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: LICENSE
|
||||
text: |
|
||||
MIT License Copyright (c) 2019 Octokit contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
- sources: README.md
|
||||
text: "[MIT](LICENSE)"
|
||||
notices: []
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: before-after-hook
|
||||
version: 3.0.2
|
||||
version: 4.0.0
|
||||
type: npm
|
||||
summary: asynchronous before/error/after hooks for internal functionality
|
||||
homepage:
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: fast-content-type-parse
|
||||
version: 2.0.1
|
||||
version: 3.0.0
|
||||
type: npm
|
||||
summary: Parse HTTP Content-Type header according to RFC 7231
|
||||
homepage: https://github.com/fastify/fast-content-type-parse#readme
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: universal-user-agent
|
||||
version: 7.0.2
|
||||
version: 7.0.3
|
||||
type: npm
|
||||
summary: Get a user agent string across all JavaScript Runtime Environments
|
||||
homepage:
|
||||
@@ -1 +1 @@
|
||||
20.9.0
|
||||
24.4.0
|
||||
|
||||
13
README.md
13
README.md
@@ -9,6 +9,13 @@
|
||||
An action for filtering pull requests (PRs) and issues from first-time
|
||||
contributors.
|
||||
|
||||
## Breaking Changes in v3.0.0
|
||||
|
||||
Version 3.0.0 introduces breaking changes:
|
||||
|
||||
- If you're using a self-hosted runner, ensure it's on version
|
||||
[v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) or later
|
||||
|
||||
When a first-time contributor opens a PR or issue, this action will add a
|
||||
comment to the PR or issue with a message of your choice. This action is useful
|
||||
for welcoming first-time contributors to your project and providing them with
|
||||
@@ -39,13 +46,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/first-interaction@vX.Y.Z # Set this to the latest release
|
||||
- uses: actions/first-interaction@v3
|
||||
with:
|
||||
issue-message: |
|
||||
issue_message: |
|
||||
# Issue Message with Markdown
|
||||
|
||||
This is the message that will be displayed!
|
||||
pr-message: |
|
||||
pr_message: |
|
||||
# PR Message with Markdown
|
||||
|
||||
This is the message that will be displayed!
|
||||
|
||||
@@ -8,6 +8,7 @@ export const context = {
|
||||
number: 10
|
||||
},
|
||||
payload: {
|
||||
action: 'opened',
|
||||
number: 10,
|
||||
issue: {
|
||||
number: 10
|
||||
@@ -19,7 +20,6 @@ export const context = {
|
||||
login: 'mona'
|
||||
}
|
||||
},
|
||||
action: 'opened',
|
||||
repo: {
|
||||
owner: 'actions',
|
||||
repo: 'first-interaction'
|
||||
|
||||
@@ -30,7 +30,7 @@ describe('main.ts', () => {
|
||||
beforeEach(() => {
|
||||
// "Reset" the github context.
|
||||
github.context.eventName = 'pull_request'
|
||||
github.context.action = 'opened'
|
||||
github.context.payload.action = 'opened'
|
||||
github.context.payload.issue = undefined as any
|
||||
github.context.payload.pull_request = {
|
||||
number: 10
|
||||
@@ -49,6 +49,7 @@ describe('main.ts', () => {
|
||||
describe('run()', () => {
|
||||
it('Skips invalid events', async () => {
|
||||
github.context.eventName = 'push'
|
||||
github.context.payload = {} as any
|
||||
|
||||
await main.run()
|
||||
|
||||
@@ -56,7 +57,7 @@ describe('main.ts', () => {
|
||||
})
|
||||
|
||||
it('Skips invalid actions', async () => {
|
||||
github.context.action = 'edited'
|
||||
github.context.payload.action = 'edited'
|
||||
|
||||
await main.run()
|
||||
|
||||
@@ -73,17 +74,6 @@ describe('main.ts', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('Fails if neither PR nor issue are provided', async () => {
|
||||
github.context.payload.issue = undefined as any
|
||||
github.context.payload.pull_request = undefined as any
|
||||
|
||||
await main.run()
|
||||
|
||||
expect(core.setFailed).toHaveBeenCalledWith(
|
||||
'Internal Error...No Issue or PR Provided by GitHub'
|
||||
)
|
||||
})
|
||||
|
||||
it('Fails if both PR and issue are provided', async () => {
|
||||
github.context.payload.issue = {
|
||||
number: 20
|
||||
|
||||
@@ -13,5 +13,5 @@ inputs:
|
||||
default: ${{ github.token }}
|
||||
|
||||
runs:
|
||||
using: node20
|
||||
using: node24
|
||||
main: dist/index.js
|
||||
|
||||
6
actionlint.yml
Normal file
6
actionlint.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
# See: https://github.com/rhysd/actionlint/blob/v1.7.7/docs/config.md
|
||||
|
||||
paths:
|
||||
.github/workflows/**/*.{yml,yaml}:
|
||||
ignore:
|
||||
- invalid runner name "node24"
|
||||
259
dist/index.js
generated
vendored
259
dist/index.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
import require$$0 from 'os';
|
||||
import require$$0$1 from 'crypto';
|
||||
import require$$1 from 'fs';
|
||||
import require$$1$5 from 'path';
|
||||
import require$$1$4 from 'path';
|
||||
import require$$2$1 from 'http';
|
||||
import require$$3$1 from 'https';
|
||||
import require$$0$4 from 'net';
|
||||
@@ -13,18 +13,16 @@ import require$$0$5 from 'stream';
|
||||
import require$$7 from 'buffer';
|
||||
import require$$8 from 'querystring';
|
||||
import require$$14 from 'stream/web';
|
||||
import require$$0$7 from 'node:stream';
|
||||
import require$$1$2 from 'node:util';
|
||||
import require$$0$6 from 'node:events';
|
||||
import require$$0$8 from 'worker_threads';
|
||||
import { createRequire } from 'node:module';
|
||||
import require$$0$6 from 'worker_threads';
|
||||
import require$$2$2 from 'perf_hooks';
|
||||
import require$$5 from 'util/types';
|
||||
import require$$4$2 from 'async_hooks';
|
||||
import require$$1$3 from 'console';
|
||||
import require$$1$4 from 'url';
|
||||
import require$$1$2 from 'console';
|
||||
import require$$1$3 from 'url';
|
||||
import require$$3$2 from 'zlib';
|
||||
import require$$6 from 'string_decoder';
|
||||
import require$$0$9 from 'diagnostics_channel';
|
||||
import require$$0$7 from 'diagnostics_channel';
|
||||
import require$$2$3 from 'child_process';
|
||||
import require$$6$1 from 'timers';
|
||||
|
||||
@@ -1753,6 +1751,15 @@ function requireTimers () {
|
||||
|
||||
var main = {exports: {}};
|
||||
|
||||
const require$3 = createRequire(import.meta.url);
|
||||
function __require$2() { return require$3("node:stream"); }
|
||||
|
||||
const require$2 = createRequire(import.meta.url);
|
||||
function __require$1() { return require$2("node:util"); }
|
||||
|
||||
const require$1 = createRequire(import.meta.url);
|
||||
function __require() { return require$1("node:events"); }
|
||||
|
||||
var sbmh;
|
||||
var hasRequiredSbmh;
|
||||
|
||||
@@ -1786,8 +1793,8 @@ function requireSbmh () {
|
||||
* Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation
|
||||
* by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool
|
||||
*/
|
||||
const EventEmitter = require$$0$6.EventEmitter;
|
||||
const inherits = require$$1$2.inherits;
|
||||
const EventEmitter = __require().EventEmitter;
|
||||
const inherits = __require$1().inherits;
|
||||
|
||||
function SBMH (needle) {
|
||||
if (typeof needle === 'string') {
|
||||
@@ -1996,8 +2003,8 @@ function requirePartStream () {
|
||||
if (hasRequiredPartStream) return PartStream_1;
|
||||
hasRequiredPartStream = 1;
|
||||
|
||||
const inherits = require$$1$2.inherits;
|
||||
const ReadableStream = require$$0$7.Readable;
|
||||
const inherits = __require$1().inherits;
|
||||
const ReadableStream = __require$2().Readable;
|
||||
|
||||
function PartStream (opts) {
|
||||
ReadableStream.call(this, opts);
|
||||
@@ -2041,8 +2048,8 @@ function requireHeaderParser () {
|
||||
if (hasRequiredHeaderParser) return HeaderParser_1;
|
||||
hasRequiredHeaderParser = 1;
|
||||
|
||||
const EventEmitter = require$$0$6.EventEmitter;
|
||||
const inherits = require$$1$2.inherits;
|
||||
const EventEmitter = __require().EventEmitter;
|
||||
const inherits = __require$1().inherits;
|
||||
const getLimit = requireGetLimit();
|
||||
|
||||
const StreamSearch = requireSbmh();
|
||||
@@ -2149,8 +2156,8 @@ function requireDicer () {
|
||||
if (hasRequiredDicer) return Dicer_1;
|
||||
hasRequiredDicer = 1;
|
||||
|
||||
const WritableStream = require$$0$7.Writable;
|
||||
const inherits = require$$1$2.inherits;
|
||||
const WritableStream = __require$2().Writable;
|
||||
const inherits = __require$1().inherits;
|
||||
|
||||
const StreamSearch = requireSbmh();
|
||||
|
||||
@@ -2726,8 +2733,8 @@ function requireMultipart () {
|
||||
// * support limits.fieldNameSize
|
||||
// -- this will require modifications to utils.parseParams
|
||||
|
||||
const { Readable } = require$$0$7;
|
||||
const { inherits } = require$$1$2;
|
||||
const { Readable } = __require$2();
|
||||
const { inherits } = __require$1();
|
||||
|
||||
const Dicer = requireDicer();
|
||||
|
||||
@@ -3292,8 +3299,8 @@ function requireMain () {
|
||||
if (hasRequiredMain) return main.exports;
|
||||
hasRequiredMain = 1;
|
||||
|
||||
const WritableStream = require$$0$7.Writable;
|
||||
const { inherits } = require$$1$2;
|
||||
const WritableStream = __require$2().Writable;
|
||||
const { inherits } = __require$1();
|
||||
const Dicer = requireDicer();
|
||||
|
||||
const MultipartParser = requireMultipart();
|
||||
@@ -3385,7 +3392,7 @@ function requireConstants$3 () {
|
||||
if (hasRequiredConstants$3) return constants$3;
|
||||
hasRequiredConstants$3 = 1;
|
||||
|
||||
const { MessageChannel, receiveMessageOnPort } = require$$0$8;
|
||||
const { MessageChannel, receiveMessageOnPort } = require$$0$6;
|
||||
|
||||
const corsSafeListedMethods = ['GET', 'HEAD', 'POST'];
|
||||
const corsSafeListedMethodsSet = new Set(corsSafeListedMethods);
|
||||
@@ -14141,7 +14148,7 @@ function requirePendingInterceptorsFormatter () {
|
||||
hasRequiredPendingInterceptorsFormatter = 1;
|
||||
|
||||
const { Transform } = require$$0$5;
|
||||
const { Console } = require$$1$3;
|
||||
const { Console } = require$$1$2;
|
||||
|
||||
/**
|
||||
* Gets the output of `console.table(…)` as a string.
|
||||
@@ -14368,7 +14375,7 @@ function requireProxyAgent () {
|
||||
hasRequiredProxyAgent = 1;
|
||||
|
||||
const { kProxy, kClose, kDestroy, kInterceptors } = requireSymbols$4();
|
||||
const { URL } = require$$1$4;
|
||||
const { URL } = require$$1$3;
|
||||
const Agent = requireAgent();
|
||||
const Pool = requirePool();
|
||||
const DispatcherBase = requireDispatcherBase();
|
||||
@@ -22318,7 +22325,7 @@ function requireEvents () {
|
||||
|
||||
const { webidl } = requireWebidl();
|
||||
const { kEnumerableProperty } = requireUtil$6();
|
||||
const { MessagePort } = require$$0$8;
|
||||
const { MessagePort } = require$$0$6;
|
||||
|
||||
/**
|
||||
* @see https://html.spec.whatwg.org/multipage/comms.html#messageevent
|
||||
@@ -22835,7 +22842,7 @@ function requireConnection () {
|
||||
if (hasRequiredConnection) return connection;
|
||||
hasRequiredConnection = 1;
|
||||
|
||||
const diagnosticsChannel = require$$0$9;
|
||||
const diagnosticsChannel = require$$0$7;
|
||||
const { uid, states } = requireConstants();
|
||||
const {
|
||||
kReadyState,
|
||||
@@ -23216,7 +23223,7 @@ function requireReceiver () {
|
||||
hasRequiredReceiver = 1;
|
||||
|
||||
const { Writable } = require$$0$5;
|
||||
const diagnosticsChannel = require$$0$9;
|
||||
const diagnosticsChannel = require$$0$7;
|
||||
const { parserStates, opcodes, states, emptyBuffer } = requireConstants();
|
||||
const { kReadyState, kSentClose, kResponse, kReceivedClose } = requireSymbols();
|
||||
const { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = requireUtil();
|
||||
@@ -25539,7 +25546,7 @@ function requirePathUtils () {
|
||||
};
|
||||
Object.defineProperty(pathUtils, "__esModule", { value: true });
|
||||
pathUtils.toPlatformPath = pathUtils.toWin32Path = pathUtils.toPosixPath = void 0;
|
||||
const path = __importStar(require$$1$5);
|
||||
const path = __importStar(require$$1$4);
|
||||
/**
|
||||
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
|
||||
* replaced with /.
|
||||
@@ -25626,7 +25633,7 @@ function requireIoUtil () {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
|
||||
const fs = __importStar(require$$1);
|
||||
const path = __importStar(require$$1$5);
|
||||
const path = __importStar(require$$1$4);
|
||||
_a = fs.promises
|
||||
// export const {open} = 'fs'
|
||||
, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
|
||||
@@ -25816,7 +25823,7 @@ function requireIo () {
|
||||
Object.defineProperty(io, "__esModule", { value: true });
|
||||
io.findInPath = io.which = io.mkdirP = io.rmRF = io.mv = io.cp = void 0;
|
||||
const assert_1 = require$$0$3;
|
||||
const path = __importStar(require$$1$5);
|
||||
const path = __importStar(require$$1$4);
|
||||
const ioUtil = __importStar(requireIoUtil());
|
||||
/**
|
||||
* Copies a file or folder.
|
||||
@@ -26124,7 +26131,7 @@ function requireToolrunner () {
|
||||
const os = __importStar(require$$0);
|
||||
const events = __importStar(require$$4$1);
|
||||
const child = __importStar(require$$2$3);
|
||||
const path = __importStar(require$$1$5);
|
||||
const path = __importStar(require$$1$4);
|
||||
const io = __importStar(requireIo());
|
||||
const ioUtil = __importStar(requireIoUtil());
|
||||
const timers_1 = require$$6$1;
|
||||
@@ -26968,7 +26975,7 @@ function requireCore () {
|
||||
const file_command_1 = requireFileCommand();
|
||||
const utils_1 = requireUtils$3();
|
||||
const os = __importStar(require$$0);
|
||||
const path = __importStar(require$$1$5);
|
||||
const path = __importStar(require$$1$4);
|
||||
const oidc_utils_1 = requireOidcUtils();
|
||||
/**
|
||||
* The code to exit an action
|
||||
@@ -31941,7 +31948,7 @@ class RequestError extends Error {
|
||||
// pkg/dist-src/index.js
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION$6 = "0.0.0-development";
|
||||
var VERSION$6 = "10.0.3";
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var defaults_default = {
|
||||
@@ -32292,12 +32299,27 @@ var createTokenAuth = function createTokenAuth2(token) {
|
||||
});
|
||||
};
|
||||
|
||||
const VERSION$4 = "6.1.4";
|
||||
const VERSION$4 = "7.0.3";
|
||||
|
||||
const noop = () => {
|
||||
};
|
||||
const consoleWarn = console.warn.bind(console);
|
||||
const consoleError = console.error.bind(console);
|
||||
function createLogger(logger = {}) {
|
||||
if (typeof logger.debug !== "function") {
|
||||
logger.debug = noop;
|
||||
}
|
||||
if (typeof logger.info !== "function") {
|
||||
logger.info = noop;
|
||||
}
|
||||
if (typeof logger.warn !== "function") {
|
||||
logger.warn = consoleWarn;
|
||||
}
|
||||
if (typeof logger.error !== "function") {
|
||||
logger.error = consoleError;
|
||||
}
|
||||
return logger;
|
||||
}
|
||||
const userAgentTrail = `octokit-core.js/${VERSION$4} ${getUserAgent()}`;
|
||||
let Octokit$1 = class Octokit {
|
||||
static VERSION = VERSION$4;
|
||||
@@ -32365,15 +32387,7 @@ let Octokit$1 = class Octokit {
|
||||
}
|
||||
this.request = request.defaults(requestDefaults);
|
||||
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
||||
this.log = Object.assign(
|
||||
{
|
||||
debug: noop,
|
||||
info: noop,
|
||||
warn: consoleWarn,
|
||||
error: consoleError
|
||||
},
|
||||
options.log
|
||||
);
|
||||
this.log = createLogger(options.log);
|
||||
this.hook = hook;
|
||||
if (!options.authStrategy) {
|
||||
if (!options.auth) {
|
||||
@@ -32420,7 +32434,7 @@ let Octokit$1 = class Octokit {
|
||||
auth;
|
||||
};
|
||||
|
||||
const VERSION$3 = "5.3.1";
|
||||
const VERSION$3 = "6.0.0";
|
||||
|
||||
function requestLog(octokit) {
|
||||
octokit.hook.wrap("request", (request, options) => {
|
||||
@@ -32456,14 +32470,16 @@ function normalizePaginatedListResponse(response) {
|
||||
data: []
|
||||
};
|
||||
}
|
||||
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
||||
const responseNeedsNormalization = ("total_count" in response.data || "total_commits" in response.data) && !("url" in response.data);
|
||||
if (!responseNeedsNormalization) return response;
|
||||
const incompleteResults = response.data.incomplete_results;
|
||||
const repositorySelection = response.data.repository_selection;
|
||||
const totalCount = response.data.total_count;
|
||||
const totalCommits = response.data.total_commits;
|
||||
delete response.data.incomplete_results;
|
||||
delete response.data.repository_selection;
|
||||
delete response.data.total_count;
|
||||
delete response.data.total_commits;
|
||||
const namespaceKey = Object.keys(response.data)[0];
|
||||
const data = response.data[namespaceKey];
|
||||
response.data = data;
|
||||
@@ -32474,6 +32490,7 @@ function normalizePaginatedListResponse(response) {
|
||||
response.data.repository_selection = repositorySelection;
|
||||
}
|
||||
response.data.total_count = totalCount;
|
||||
response.data.total_commits = totalCommits;
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -32494,6 +32511,16 @@ function iterator(octokit, route, parameters) {
|
||||
url = ((normalizedResponse.headers.link || "").match(
|
||||
/<([^<>]+)>;\s*rel="next"/
|
||||
) || [])[1];
|
||||
if (!url && "total_commits" in normalizedResponse.data) {
|
||||
const parsedUrl = new URL(normalizedResponse.url);
|
||||
const params = parsedUrl.searchParams;
|
||||
const page = parseInt(params.get("page") || "1", 10);
|
||||
const per_page = parseInt(params.get("per_page") || "250", 10);
|
||||
if (page * per_page < normalizedResponse.data.total_commits) {
|
||||
params.set("page", String(page + 1));
|
||||
url = parsedUrl.toString();
|
||||
}
|
||||
}
|
||||
return { value: normalizedResponse };
|
||||
} catch (error) {
|
||||
if (error.status !== 409) throw error;
|
||||
@@ -32558,7 +32585,7 @@ function paginateRest(octokit) {
|
||||
}
|
||||
paginateRest.VERSION = VERSION$2;
|
||||
|
||||
const VERSION$1 = "13.3.1";
|
||||
const VERSION$1 = "16.0.0";
|
||||
|
||||
const Endpoints = {
|
||||
actions: {
|
||||
@@ -32586,6 +32613,7 @@ const Endpoints = {
|
||||
createEnvironmentVariable: [
|
||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
||||
],
|
||||
createHostedRunnerForOrg: ["POST /orgs/{org}/actions/hosted-runners"],
|
||||
createOrUpdateEnvironmentSecret: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
@@ -32623,6 +32651,9 @@ const Endpoints = {
|
||||
deleteEnvironmentVariable: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
deleteHostedRunnerForOrg: [
|
||||
"DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
||||
deleteRepoSecret: [
|
||||
@@ -32711,6 +32742,24 @@ const Endpoints = {
|
||||
getGithubActionsPermissionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions"
|
||||
],
|
||||
getHostedRunnerForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
||||
],
|
||||
getHostedRunnersGithubOwnedImagesForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/github-owned"
|
||||
],
|
||||
getHostedRunnersLimitsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/limits"
|
||||
],
|
||||
getHostedRunnersMachineSpecsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/machine-sizes"
|
||||
],
|
||||
getHostedRunnersPartnerImagesForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/partner"
|
||||
],
|
||||
getHostedRunnersPlatformsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/platforms"
|
||||
],
|
||||
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
@@ -32754,6 +32803,10 @@ const Endpoints = {
|
||||
listEnvironmentVariables: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
||||
],
|
||||
listGithubHostedRunnersInGroupForOrg: [
|
||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"
|
||||
],
|
||||
listHostedRunnersForOrg: ["GET /orgs/{org}/actions/hosted-runners"],
|
||||
listJobsForWorkflowRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
||||
],
|
||||
@@ -32872,6 +32925,9 @@ const Endpoints = {
|
||||
updateEnvironmentVariable: [
|
||||
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
updateHostedRunnerForOrg: [
|
||||
"PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
||||
],
|
||||
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
||||
updateRepoVariable: [
|
||||
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
||||
@@ -33002,6 +33058,9 @@ const Endpoints = {
|
||||
getGithubBillingUsageReportOrg: [
|
||||
"GET /organizations/{org}/settings/billing/usage"
|
||||
],
|
||||
getGithubBillingUsageReportUser: [
|
||||
"GET /users/{username}/settings/billing/usage"
|
||||
],
|
||||
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
||||
getGithubPackagesBillingUser: [
|
||||
"GET /users/{username}/settings/billing/packages"
|
||||
@@ -33013,6 +33072,13 @@ const Endpoints = {
|
||||
"GET /users/{username}/settings/billing/shared-storage"
|
||||
]
|
||||
},
|
||||
campaigns: {
|
||||
createCampaign: ["POST /orgs/{org}/campaigns"],
|
||||
deleteCampaign: ["DELETE /orgs/{org}/campaigns/{campaign_number}"],
|
||||
getCampaignSummary: ["GET /orgs/{org}/campaigns/{campaign_number}"],
|
||||
listOrgCampaigns: ["GET /orgs/{org}/campaigns"],
|
||||
updateCampaign: ["PATCH /orgs/{org}/campaigns/{campaign_number}"]
|
||||
},
|
||||
checks: {
|
||||
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
||||
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
||||
@@ -33291,10 +33357,9 @@ const Endpoints = {
|
||||
getCopilotSeatDetailsForUser: [
|
||||
"GET /orgs/{org}/members/{username}/copilot"
|
||||
],
|
||||
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
||||
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
||||
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
||||
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
|
||||
},
|
||||
credentials: { revoke: ["POST /credentials/revoke"] },
|
||||
dependabot: {
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||
@@ -33389,6 +33454,26 @@ const Endpoints = {
|
||||
getAllTemplates: ["GET /gitignore/templates"],
|
||||
getTemplate: ["GET /gitignore/templates/{name}"]
|
||||
},
|
||||
hostedCompute: {
|
||||
createNetworkConfigurationForOrg: [
|
||||
"POST /orgs/{org}/settings/network-configurations"
|
||||
],
|
||||
deleteNetworkConfigurationFromOrg: [
|
||||
"DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
||||
],
|
||||
getNetworkConfigurationForOrg: [
|
||||
"GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
||||
],
|
||||
getNetworkSettingsForOrg: [
|
||||
"GET /orgs/{org}/settings/network-settings/{network_settings_id}"
|
||||
],
|
||||
listNetworkConfigurationsForOrg: [
|
||||
"GET /orgs/{org}/settings/network-configurations"
|
||||
],
|
||||
updateNetworkConfigurationForOrg: [
|
||||
"PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
||||
]
|
||||
},
|
||||
interactions: {
|
||||
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
||||
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
||||
@@ -33580,6 +33665,7 @@ const Endpoints = {
|
||||
"PUT /orgs/{org}/outside_collaborators/{username}"
|
||||
],
|
||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||
createIssueType: ["POST /orgs/{org}/issue-types"],
|
||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
||||
"PATCH /orgs/{org}/properties/values"
|
||||
@@ -33589,6 +33675,7 @@ const Endpoints = {
|
||||
],
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
delete: ["DELETE /orgs/{org}"],
|
||||
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
||||
enableOrDisableSecurityProductOnAllOrgRepos: [
|
||||
"POST /orgs/{org}/{security_product}/{enablement}",
|
||||
@@ -33605,6 +33692,10 @@ const Endpoints = {
|
||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
||||
getOrgRulesetHistory: ["GET /orgs/{org}/rulesets/{ruleset_id}/history"],
|
||||
getOrgRulesetVersion: [
|
||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"
|
||||
],
|
||||
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
||||
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
||||
getWebhookDelivery: [
|
||||
@@ -33619,6 +33710,7 @@ const Endpoints = {
|
||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||
listForUser: ["GET /users/{username}/orgs"],
|
||||
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
||||
listIssueTypes: ["GET /orgs/{org}/issue-types"],
|
||||
listMembers: ["GET /orgs/{org}/members"],
|
||||
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
||||
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
||||
@@ -33693,6 +33785,7 @@ const Endpoints = {
|
||||
],
|
||||
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
||||
update: ["PATCH /orgs/{org}"],
|
||||
updateIssueType: ["PUT /orgs/{org}/issue-types/{issue_type_id}"],
|
||||
updateMembershipForAuthenticatedUser: [
|
||||
"PATCH /user/memberships/orgs/{org}"
|
||||
],
|
||||
@@ -33805,37 +33898,6 @@ const Endpoints = {
|
||||
"PATCH /orgs/{org}/private-registries/{secret_name}"
|
||||
]
|
||||
},
|
||||
projects: {
|
||||
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
||||
createCard: ["POST /projects/columns/{column_id}/cards"],
|
||||
createColumn: ["POST /projects/{project_id}/columns"],
|
||||
createForAuthenticatedUser: ["POST /user/projects"],
|
||||
createForOrg: ["POST /orgs/{org}/projects"],
|
||||
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
||||
delete: ["DELETE /projects/{project_id}"],
|
||||
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
||||
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
||||
get: ["GET /projects/{project_id}"],
|
||||
getCard: ["GET /projects/columns/cards/{card_id}"],
|
||||
getColumn: ["GET /projects/columns/{column_id}"],
|
||||
getPermissionForUser: [
|
||||
"GET /projects/{project_id}/collaborators/{username}/permission"
|
||||
],
|
||||
listCards: ["GET /projects/columns/{column_id}/cards"],
|
||||
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
||||
listColumns: ["GET /projects/{project_id}/columns"],
|
||||
listForOrg: ["GET /orgs/{org}/projects"],
|
||||
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
||||
listForUser: ["GET /users/{username}/projects"],
|
||||
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
||||
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
||||
removeCollaborator: [
|
||||
"DELETE /projects/{project_id}/collaborators/{username}"
|
||||
],
|
||||
update: ["PATCH /projects/{project_id}"],
|
||||
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
||||
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
||||
},
|
||||
pulls: {
|
||||
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||
create: ["POST /repos/{owner}/{repo}/pulls"],
|
||||
@@ -34207,6 +34269,12 @@ const Endpoints = {
|
||||
],
|
||||
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
||||
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
getRepoRulesetHistory: [
|
||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"
|
||||
],
|
||||
getRepoRulesetVersion: [
|
||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"
|
||||
],
|
||||
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
||||
getStatusChecksProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
@@ -34380,7 +34448,13 @@ const Endpoints = {
|
||||
search: {
|
||||
code: ["GET /search/code"],
|
||||
commits: ["GET /search/commits"],
|
||||
issuesAndPullRequests: ["GET /search/issues"],
|
||||
issuesAndPullRequests: [
|
||||
"GET /search/issues",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"
|
||||
}
|
||||
],
|
||||
labels: ["GET /search/labels"],
|
||||
repos: ["GET /search/repositories"],
|
||||
topics: ["GET /search/topics"],
|
||||
@@ -34434,15 +34508,9 @@ const Endpoints = {
|
||||
addOrUpdateMembershipForUserInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
addOrUpdateProjectPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
addOrUpdateRepoPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
checkPermissionsForProjectInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
checkPermissionsForRepoInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
@@ -34479,14 +34547,10 @@ const Endpoints = {
|
||||
listPendingInvitationsInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
||||
],
|
||||
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
||||
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
||||
removeMembershipForUserInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
removeProjectInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
removeRepoInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
@@ -34758,7 +34822,7 @@ function legacyRestEndpointMethods(octokit) {
|
||||
}
|
||||
legacyRestEndpointMethods.VERSION = VERSION$1;
|
||||
|
||||
const VERSION = "21.1.1";
|
||||
const VERSION = "22.0.0";
|
||||
|
||||
const Octokit = Octokit$1.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(
|
||||
{
|
||||
@@ -34768,22 +34832,19 @@ const Octokit = Octokit$1.plugin(requestLog, legacyRestEndpointMethods, paginate
|
||||
|
||||
async function run() {
|
||||
coreExports.info('Running actions/first-interaction!');
|
||||
// Check if this is an issue or PR event.
|
||||
const isIssue = githubExports.context.payload.issue !== undefined;
|
||||
const isPullRequest = githubExports.context.payload.pull_request !== undefined;
|
||||
// Skip if this is not an issue or PR event.
|
||||
if (githubExports.context.eventName !== 'issues' &&
|
||||
githubExports.context.eventName !== 'pull_request')
|
||||
if (!isIssue && !isPullRequest)
|
||||
return coreExports.info('Skipping...Not an Issue/PR Event');
|
||||
// Skip if this is not an issue/PR open event.
|
||||
if (githubExports.context.action !== 'opened')
|
||||
if (githubExports.context.payload.action !== 'opened')
|
||||
return coreExports.info('Skipping...Not an Opened Event');
|
||||
// Confirm the sender data is present.
|
||||
if (!githubExports.context.payload.sender)
|
||||
return coreExports.setFailed('Internal Error...No Sender Provided by GitHub');
|
||||
// Check if this is an issue or PR event.
|
||||
const isIssue = githubExports.context.payload.issue !== undefined;
|
||||
const isPullRequest = githubExports.context.payload.pull_request !== undefined;
|
||||
// Confirm that only one of the two is present.
|
||||
if (!isIssue && !isPullRequest)
|
||||
return coreExports.setFailed('Internal Error...No Issue or PR Provided by GitHub');
|
||||
if (isIssue && isPullRequest)
|
||||
return coreExports.setFailed('Internal Error...Both Issue and PR Provided by GitHub');
|
||||
// Get the action inputs.
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -52,8 +52,7 @@ export default [
|
||||
sourceType: 'module',
|
||||
|
||||
parserOptions: {
|
||||
project: ['tsconfig.eslint.json'],
|
||||
tsconfigRootDir: '.'
|
||||
project: ['tsconfig.eslint.json']
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
6991
package-lock.json
generated
6991
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
45
package.json
45
package.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "first-interaction-action",
|
||||
"description": "An action for greeting first time contributors.",
|
||||
"version": "2.0.0",
|
||||
"version": "3.1.0",
|
||||
"author": "GitHub",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
@@ -22,7 +22,7 @@
|
||||
".": "./dist/index.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
"node": ">=24"
|
||||
},
|
||||
"scripts": {
|
||||
"bundle": "npm run format:write && npm run package",
|
||||
@@ -41,35 +41,36 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/github": "^6.0.1",
|
||||
"@octokit/rest": "^21.1.1"
|
||||
"@octokit/rest": "^22.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/compat": "^1.3.1",
|
||||
"@github/local-action": "^2.6.2",
|
||||
"@jest/globals": "^29.7.0",
|
||||
"@octokit/types": "^14.1.0",
|
||||
"@rollup/plugin-commonjs": "^28.0.6",
|
||||
"@rollup/plugin-node-resolve": "^16.0.1",
|
||||
"@rollup/plugin-typescript": "^12.1.4",
|
||||
"@types/jest": "^29.5.14",
|
||||
"@types/node": "^22.16.4",
|
||||
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
||||
"@eslint/compat": "^1.4.0",
|
||||
"@github/local-action": "^6.0.2",
|
||||
"@jest/globals": "^30.2.0",
|
||||
"@octokit/types": "^15.0.0",
|
||||
"@rollup/plugin-commonjs": "^28.0.9",
|
||||
"@rollup/plugin-node-resolve": "^16.0.3",
|
||||
"@rollup/plugin-typescript": "^12.3.0",
|
||||
"@types/jest": "^30.0.0",
|
||||
"@types/node": "^24.9.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
||||
"@typescript-eslint/parser": "^8.24.1",
|
||||
"eslint": "^9.31.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"eslint-import-resolver-typescript": "^3.8.2",
|
||||
"eslint": "^9.38.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-import-resolver-typescript": "^4.4.4",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-jest": "^28.11.0",
|
||||
"eslint-plugin-prettier": "^5.5.1",
|
||||
"jest": "^29.7.0",
|
||||
"eslint-plugin-jest": "^29.0.1",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"globals": "^16.4.0",
|
||||
"jest": "^30.2.0",
|
||||
"make-coverage-badge": "^1.2.0",
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-eslint": "^16.4.2",
|
||||
"rollup": "^4.45.1",
|
||||
"ts-jest": "^29.4.0",
|
||||
"rollup": "^4.52.5",
|
||||
"ts-jest": "^29.4.5",
|
||||
"ts-jest-resolver": "^2.0.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-gnu": "*"
|
||||
|
||||
17
src/main.ts
17
src/main.ts
@@ -5,28 +5,23 @@ import { Octokit } from '@octokit/rest'
|
||||
export async function run() {
|
||||
core.info('Running actions/first-interaction!')
|
||||
|
||||
// Check if this is an issue or PR event.
|
||||
const isIssue = github.context.payload.issue !== undefined
|
||||
const isPullRequest = github.context.payload.pull_request !== undefined
|
||||
|
||||
// Skip if this is not an issue or PR event.
|
||||
if (
|
||||
github.context.eventName !== 'issues' &&
|
||||
github.context.eventName !== 'pull_request'
|
||||
)
|
||||
if (!isIssue && !isPullRequest)
|
||||
return core.info('Skipping...Not an Issue/PR Event')
|
||||
|
||||
// Skip if this is not an issue/PR open event.
|
||||
if (github.context.action !== 'opened')
|
||||
if (github.context.payload.action !== 'opened')
|
||||
return core.info('Skipping...Not an Opened Event')
|
||||
|
||||
// Confirm the sender data is present.
|
||||
if (!github.context.payload.sender)
|
||||
return core.setFailed('Internal Error...No Sender Provided by GitHub')
|
||||
|
||||
// Check if this is an issue or PR event.
|
||||
const isIssue = github.context.payload.issue !== undefined
|
||||
const isPullRequest = github.context.payload.pull_request !== undefined
|
||||
|
||||
// Confirm that only one of the two is present.
|
||||
if (!isIssue && !isPullRequest)
|
||||
return core.setFailed('Internal Error...No Issue or PR Provided by GitHub')
|
||||
if (isIssue && isPullRequest)
|
||||
return core.setFailed(
|
||||
'Internal Error...Both Issue and PR Provided by GitHub'
|
||||
|
||||
Reference in New Issue
Block a user