Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
a6822e5
ci(action): update actions/add-to-project action to v1.0.1 (#603)
renovate[bot] Apr 14, 2024
92d2ee0
build(deps): lock file maintenance (#604)
renovate[bot] Apr 16, 2024
d291add
build(deps): lock file maintenance (#607)
renovate[bot] Apr 23, 2024
aee7aae
ci(action): update actions/checkout digest to 0ad4b8f (#606)
renovate[bot] Apr 25, 2024
6111a68
build(deps): lock file maintenance (#608)
renovate[bot] Apr 30, 2024
62d5e4f
chore(deps): update dependency esbuild to ^0.21.0 (#610)
renovate[bot] May 8, 2024
8076b59
build(deps): lock file maintenance (#609)
renovate[bot] May 8, 2024
eebca24
ci(action): update actions/checkout digest to 44c2b7a
renovate[bot] May 9, 2024
231081b
ci(action): update actions/checkout digest to 0ad4b8f
renovate[bot] May 9, 2024
a65b4c3
feat: v7 (#605)
wolfy1339 May 9, 2024
82adf6e
build(deps): lock file maintenance (#613)
renovate[bot] May 14, 2024
86ed1dc
ci(action): update actions/checkout digest to a5ac7e5
renovate[bot] May 21, 2024
a0104cc
build(deps): lock file maintenance (#615)
renovate[bot] May 28, 2024
1d000bd
chore(deps): update dependency prettier to v3.3.0 (#616)
renovate[bot] Jun 2, 2024
8e1050d
build(deps): lock file maintenance (#617)
renovate[bot] Jun 4, 2024
9c65325
ci: spelling fixes in workflow files (#618)
octokitbot Jun 4, 2024
71ddc9c
chore(deps): update dependency prettier to v3.3.1 (#619)
renovate[bot] Jun 5, 2024
e6bb897
chore(deps): update dependency prettier to v3.3.2
renovate[bot] Jun 11, 2024
5e18f99
build(deps): lock file maintenance (#620)
renovate[bot] Jun 11, 2024
43d0b2c
ci(action): update actions/checkout digest to 692973e (#622)
renovate[bot] Jun 14, 2024
d5cb885
build(deps): lock file maintenance
renovate[bot] Jun 18, 2024
feb3c8f
build(deps): lock file maintenance (#625)
renovate[bot] Jun 27, 2024
620b34c
ci(action): update actions/add-to-project action to v1.0.2
renovate[bot] Jun 27, 2024
d3e68a8
chore(deps): update dependency esbuild to ^0.22.0
renovate[bot] Jul 1, 2024
c6b7a80
chore(deps): update dependency esbuild to ^0.23.0
renovate[bot] Jul 2, 2024
fef9722
build(deps): lock file maintenance (#628)
renovate[bot] Jul 3, 2024
0c27363
build(deps): lock file maintenance (#630)
renovate[bot] Jul 9, 2024
23be263
chore(deps): update dependency glob to v11 (#629)
renovate[bot] Jul 9, 2024
ac8aec3
ci: start testing against 22 (#631)
wolfy1339 Jul 12, 2024
0467230
chore(deps): update dependency prettier to v3.3.3 (#632)
renovate[bot] Jul 13, 2024
5eebf7d
build(deps): lock file maintenance (#633)
renovate[bot] Jul 16, 2024
5d52ab8
build(deps): lock file maintenance (#634)
renovate[bot] Jul 23, 2024
d7fcf7b
build(deps): lock file maintenance (#635)
renovate[bot] Aug 2, 2024
67ba104
build(deps): lock file maintenance (#636)
renovate[bot] Aug 6, 2024
93281e2
build(deps): lock file maintenance (#637)
renovate[bot] Aug 13, 2024
691fb4b
build(deps): lock file maintenance (#638)
renovate[bot] Aug 21, 2024
22d2840
build(deps): lock file maintenance (#639)
renovate[bot] Aug 27, 2024
1d67664
build(deps): lock file maintenance (#640)
renovate[bot] Sep 3, 2024
d6f9827
build(deps): lock file maintenance (#642)
renovate[bot] Sep 13, 2024
0dbb772
build(deps): lock file maintenance (#643)
renovate[bot] Sep 17, 2024
dce0029
chore(deps): update dependency esbuild to ^0.24.0 (#644)
renovate[bot] Sep 23, 2024
a8f98ec
build(deps): lock file maintenance (#646)
renovate[bot] Sep 24, 2024
7e82c18
chore(deps): update dependency @octokit/tsconfig to v4 (#645)
renovate[bot] Sep 27, 2024
f4d42f5
build(deps): lock file maintenance (#647)
renovate[bot] Oct 1, 2024
d0f3ad0
build: switch to vitest (#648)
oscard0m Oct 3, 2024
603af51
ci(action): update actions/checkout digest to eef6144 (#649)
renovate[bot] Oct 7, 2024
d829922
build(deps): lock file maintenance (#650)
renovate[bot] Oct 9, 2024
c6f156d
build(deps): lock file maintenance (#651)
renovate[bot] Oct 15, 2024
8a4ac2c
build(deps): lock file maintenance (#652)
renovate[bot] Oct 22, 2024
549ab01
ci(action): update actions/checkout digest to 11bd719 (#653)
renovate[bot] Oct 24, 2024
53c3068
build(deps): lock file maintenance (#655)
renovate[bot] Oct 29, 2024
2111a03
chore(deps): update dependency @types/node to v22 (#654)
renovate[bot] Oct 29, 2024
b1aa300
build(deps): lock file maintenance (#656)
renovate[bot] Nov 5, 2024
686f196
build(deps): lock file maintenance (#657)
renovate[bot] Nov 12, 2024
22fbcb7
build(deps): lock file maintenance (#658)
renovate[bot] Nov 19, 2024
ebc055c
build(deps): lock file maintenance (#660)
renovate[bot] Nov 26, 2024
b623b2e
chore(deps): update dependency prettier to v3.4.0 (#659)
renovate[bot] Nov 26, 2024
c109e42
chore(deps): update dependency prettier to v3.4.1 (#661)
renovate[bot] Dec 1, 2024
22be8b1
build(deps): lock file maintenance (#663)
renovate[bot] Dec 3, 2024
7de7662
build(deps): lock file maintenance (#665)
renovate[bot] Dec 10, 2024
26066cd
chore(deps): update dependency prettier to v3.4.2 (#664)
renovate[bot] Dec 10, 2024
2cd08e7
build(deps): lock file maintenance (#666)
renovate[bot] Dec 17, 2024
5cb3d09
build(deps): lock file maintenance (#667)
renovate[bot] Dec 26, 2024
e0981ea
build(deps): lock file maintenance (#668)
renovate[bot] Dec 31, 2024
5e966c5
build(deps): lock file maintenance (#669)
renovate[bot] Jan 7, 2025
2359e7f
chore(deps): update vitest monorepo to v3 (major) (#671)
renovate[bot] Jan 16, 2025
2756780
build(deps): lock file maintenance (#670)
renovate[bot] Jan 16, 2025
49a9baa
build(deps): lock file maintenance (#672)
renovate[bot] Jan 23, 2025
322b515
build(deps): lock file maintenance (#674)
renovate[bot] Feb 7, 2025
c60a487
chore(deps): update dependency esbuild to ^0.25.0 (#676)
renovate[bot] Feb 9, 2025
bd69391
build(deps): lock file maintenance (#678)
renovate[bot] Feb 13, 2025
2fc33be
chore(deps): update dependency prettier to v3.5.1 (#677)
renovate[bot] Feb 13, 2025
715671e
fix(deps): update Octokit dependencies to mitigate ReDos vulnerabilit…
renovate[bot] Feb 15, 2025
5c8b8d6
build(deps): lock file maintenance (#683)
renovate[bot] Feb 20, 2025
62f856d
chore(deps): update dependency semantic-release-plugin-update-version…
renovate[bot] Feb 22, 2025
dc3ff4a
chore(deps): update dependency prettier to v3.5.2 (#685)
renovate[bot] Feb 24, 2025
9cc5435
build(deps): lock file maintenance (#686)
renovate[bot] Feb 27, 2025
4d16904
build(deps): lock file maintenance (#688)
renovate[bot] Mar 17, 2025
86ea119
chore(deps): update dependency prettier to v3.5.3 (#687)
renovate[bot] Mar 17, 2025
63be1a2
ci(prettier): use Node LTS instead of Node 16 (#689)
wolfy1339 Mar 21, 2025
76d6811
build(deps): lock file maintenance (#690)
renovate[bot] Apr 8, 2025
ab658ce
build(deps-dev): bump vite from 6.2.0 to 6.2.5 (#693)
dependabot[bot] Apr 8, 2025
82d96c1
fix(deps): update octokit monorepo (major) (#694)
renovate[bot] Apr 10, 2025
de907e7
build(deps-dev): bump vite from 6.2.5 to 6.2.6 (#695)
dependabot[bot] Apr 11, 2025
a3b34c9
build(deps): lock file maintenance (#696)
renovate[bot] Apr 15, 2025
74128c3
build(deps): lock file maintenance (#697)
renovate[bot] May 7, 2025
d36e0ef
build(deps-dev): bump vite from 6.3.2 to 6.3.5 (#699)
dependabot[bot] May 7, 2025
249ff46
build(deps): lock file maintenance (#701)
renovate[bot] May 20, 2025
b6a290e
ci: stop testing against NodeJS v18 (#700)
wolfy1339 May 20, 2025
76679e4
fix(deps): update octokit monorepo (major) (#702)
renovate[bot] May 21, 2025
25f537f
fix(deps): update dependency @octokit/plugin-rest-endpoint-methods to…
renovate[bot] May 26, 2025
831e5c1
build(deps): lock file maintenance (#704)
renovate[bot] Sep 20, 2025
99dc11f
ci(action): update github/codeql-action action to v4 (#714)
renovate[bot] Nov 3, 2025
3e52577
ci(action): update peter-evans/create-or-update-comment action to v5 …
renovate[bot] Nov 3, 2025
f0edfd1
ci(action): update actions/setup-node action to v6 (#715)
renovate[bot] Nov 3, 2025
385e049
fix(deps): update octokit monorepo (major) (#710)
renovate[bot] Nov 3, 2025
77396df
ci(action): update actions/checkout action to v5 (#707)
renovate[bot] Nov 3, 2025
ce067a1
build(deps): lock file maintenance (#712)
renovate[bot] Nov 3, 2025
f394dee
chore(deps): update vitest monorepo to v4 (major) (#717)
renovate[bot] Nov 4, 2025
48feb05
fix(deps): update dependency undici to v7 (#662)
renovate[bot] Nov 4, 2025
24ae278
chore(deps): update dependency @types/node to v24 (#718)
renovate[bot] Nov 4, 2025
1c4486a
chore(deps): update dependency prettier to v3.6.2 (#705)
renovate[bot] Nov 4, 2025
2d91b63
build(deps): bump glob (#723)
dependabot[bot] Nov 19, 2025
a9fba3c
chore(deps): replace glob with tinyglobby (#725)
renovate[bot] Nov 19, 2025
4d9aef4
build(deps): lock file maintenance, switch to fetch-mock v12 (#719)
renovate[bot] Nov 19, 2025
975711e
chore(deps): update dependency esbuild to ^0.27.0 (#720)
renovate[bot] Nov 19, 2025
85bf80f
build(deps): bump undici from 7.16.0 to 7.18.2
dependabot[bot] Jan 14, 2026
e8e0780
Initial commit
BadassMom7 Feb 6, 2026
89a8a94
Fix typo in GitHub Actions workflow name
BadassMom7 Feb 6, 2026
eff51a3
Merge pull request #1 from BadassMom7/dependabot/npm_and_yarn/undici-…
BadassMom7 Feb 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/add_to_octokit_project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Add PRs and issues to Octokit org project
3name: Add PRs and issues to Octokit org project

on:
issues:
Expand All @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/add-to-project@v1.0.0
- uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/octokit/projects/10
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
uses: actions/checkout@v5

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -56,7 +56,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@v3
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -69,4 +69,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
4 changes: 2 additions & 2 deletions .github/workflows/immediate-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
run: echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"

- name: Respond to issue or PR
uses: peter-evans/create-or-update-comment@v4
uses: peter-evans/create-or-update-comment@v5
with:
issue-number: ${{ steps.extract.outputs.NUMBER }}
body: >
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday!
We have a [process in place](https://github.com/octokit/.github/blob/main/community/prioritization_response.md#overview) for prioritizing and responding to your input.
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with `Status: Up for grabs`.
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with `Status: Up for grabs`.
You & others like you are the reason all of this works! So thank you & happy coding! 🚀
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run build
# https://github.com/octokit/action.js/pull/494
- name: "Fix pkg.files file pattern"
run: node scripts/fix-package-json.js
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,29 @@ jobs:
strategy:
matrix:
node_version:
- 18
- 20
- 22
- 24
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v5
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
cache: npm
node-version: ${{ matrix.node_version }}
- name: Install
run: npm ci
- name: Test
run: npm test
- name: Test TypeScript
run: npm run test:typescript
test:
runs-on: ubuntu-latest
needs: test_matrix
steps:
- run: exit 1
if: ${{ needs.test_matrix.result != 'success' }}
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v5
- run: npm ci
- run: npm run lint
- name: Test TypeScript
run: npm run test:typescript
if: ${{ always() }}
6 changes: 3 additions & 3 deletions .github/workflows/update-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
update_prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
cache: npm
node-version: 16
node-version: lts/*
- run: npm ci
- run: npm run lint:fix
- uses: gr2m/create-or-update-pull-request-action@v1.x
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
node_modules/
pkg/
.vscode/
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@ Node
Install with `npm install @octokit/action`

```js
const { Octokit } = require("@octokit/action");
// or: import { Octokit } from "@octokit/action";
import { Octokit } from "@octokit/action";
```

</td></tr>
</tbody>
</table>

> [!IMPORTANT]
> As we use [conditional exports](https://nodejs.org/api/packages.html#conditional-exports), you will need to adapt your `tsconfig.json` by setting `"moduleResolution": "node16", "module": "node16"`.
>
> See the TypeScript docs on [package.json "exports"](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports).<br>
> See this [helpful guide on transitioning to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) from [@sindresorhus](https://github.com/sindresorhus)

You can pass `secret.GITHUB_TOKEN` or any of your own secrets to a Node.js script. For example

```yml
Expand Down Expand Up @@ -59,7 +64,7 @@ Setting `GITHUB_TOKEN` on either [`with:`](https://help.github.com/en/actions/re

```js
// .github/actions/my-script.js
const { Octokit } = require("@octokit/action");
import { Octokit } from "@octokit/action";

const octokit = new Octokit();

Expand All @@ -69,7 +74,7 @@ const octokit = new Octokit();
### Create an issue using REST API

```js
const { Octokit } = require("@octokit/action");
import { Octokit } from "@octokit/action";

const octokit = new Octokit();
const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
Expand All @@ -88,7 +93,7 @@ You can also use `octokit.issues.create({ owner, repo, title })`. See the [REST
### Create an issue using GraphQL

```js
const { Octokit } = require("@octokit/action");
import { Octokit } from "@octokit/action";

const octokit = new Octokit();
const eventPayload = require(process.env.GITHUB_EVENT_PATH);
Expand Down Expand Up @@ -130,7 +135,7 @@ type ChecksCreateResponse =

### Proxy Servers

If you use [self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) and require a proxy server to access internet resources then you will need to ensure that you have correctly configured the runner for [proxy servers](https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners). `@octokit/action` will pick up the configured proxy server environment variables and configure `@octokit/core` with the correct `request.agent` using [proxy-agent](https://github.com/TooTallNate/node-proxy-agent/blob/master/index.js). If you need to supply a different `request.agent` then you should ensure that it handles proxy servers if needed.
If you use [self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) and require a proxy server to access internet resources then you will need to ensure that you have correctly configured the runner for [proxy servers](https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners). `@octokit/action` will pick up the configured proxy server environment variables and configure `@octokit/core` with the correct `request.dispatcher` using [ProxyAgent](https://undici.nodejs.org/#/docs/api/ProxyAgent). If you need to supply a different `request.dispatcher` then you should ensure that it handles proxy servers if needed.

## How it works

Expand Down
Loading