Skip to content

Commit 7eb6504

Browse files
dependabot[bot]MishaKavclaude
authored
Bump @octokit/request and @actions/github (#229)
* Bump @octokit/request and @actions/github Bumps [@octokit/request](https://github.com/octokit/request.js) to 8.4.1 and updates ancestor dependency [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github). These dependencies need to be updated together. Updates `@octokit/request` from 5.6.3 to 8.4.1 - [Release notes](https://github.com/octokit/request.js/releases) - [Commits](octokit/request.js@v5.6.3...v8.4.1) Updates `@actions/github` from 4.0.0 to 6.0.1 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) --- updated-dependencies: - dependency-name: "@octokit/request" dependency-version: 8.4.1 dependency-type: indirect - dependency-name: "@actions/github" dependency-version: 6.0.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * chore: update octokit API calls for @actions/github v6 compatibility Add .rest namespace to all octokit API calls to support @actions/github v6. This change is required for the dependency updates in this PR. Changes: - Updated 7 octokit method calls to use .rest namespace - Rebuilt bundled action with updated code 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Misha Kav <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 4e7eb9d commit 7eb6504

4 files changed

Lines changed: 263 additions & 254 deletions

File tree

‎dist/index.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18743,7 +18743,7 @@ const createOrEditComment = async (
1874318743
WATERMARK,
1874418744
) => {
1874518745
// Now decide if we should issue a new comment or edit an old one
18746-
const { data: comments } = await octokit.issues.listComments({
18746+
const { data: comments } = await octokit.rest.issues.listComments({
1874718747
repo,
1874818748
owner,
1874918749
issue_number,
@@ -18753,15 +18753,15 @@ const createOrEditComment = async (
1875318753

1875418754
if (comment) {
1875518755
core.info('Found previous comment, updating');
18756-
await octokit.issues.updateComment({
18756+
await octokit.rest.issues.updateComment({
1875718757
repo,
1875818758
owner,
1875918759
comment_id: comment.id,
1876018760
body,
1876118761
});
1876218762
} else {
1876318763
core.info('No previous comment found, creating a new one');
18764-
await octokit.issues.createComment({
18764+
await octokit.rest.issues.createComment({
1876518765
repo,
1876618766
owner,
1876718767
issue_number,
@@ -18986,7 +18986,7 @@ const main = async () => {
1898618986

1898718987
if (eventName === 'push') {
1898818988
core.info('Create commit comment');
18989-
await octokit.repos.createCommitComment({
18989+
await octokit.rest.repos.createCommitComment({
1899018990
repo,
1899118991
owner,
1899218992
commit_sha: options.commit,
@@ -18999,7 +18999,7 @@ const main = async () => {
1899918999
if (createNewComment) {
1900019000
core.info('Creating a new comment');
1900119001

19002-
await octokit.issues.createComment({
19002+
await octokit.rest.issues.createComment({
1900319003
repo,
1900419004
owner,
1900519005
issue_number,
@@ -19031,7 +19031,7 @@ const main = async () => {
1903119031
} else {
1903219032
if (createNewComment) {
1903319033
core.info('Creating a new comment');
19034-
await octokit.issues.createComment({
19034+
await octokit.rest.issues.createComment({
1903519035
repo,
1903619036
owner,
1903719037
issue_number,
@@ -19079,7 +19079,7 @@ const getChangedFiles = async (options, pr_number) => {
1907919079
break;
1908019080
case 'workflow_run':
1908119081
case 'workflow_dispatch': {
19082-
const { data } = await octokit.pulls.get({
19082+
const { data } = await octokit.rest.pulls.get({
1908319083
owner,
1908419084
repo,
1908519085
pull_number: pr_number,

0 commit comments

Comments
 (0)