GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove `octokit` README updates for v7 by joshmgross · Pull Request #557 · actions/github-script

Conversation

@joshmgross

@joshmgross joshmgross commented Feb 26, 2025

Copy link
Copy Markdown
Contributor
  • octokit instance from README examples doesn't work #545

#508 introduced a new octokit variable to make it easier to use examples from GitHub and Octokit docs within actions/github-script.

That change is a breaking change so the README updates shouldn't have been made with v7.

We'll update the README to include this info again when we're ready for v8 - #556

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@joshmgross
Remove octokit README updates for v7
851500a
#545
@joshmgross
joshmgross requested a review from a team as a code owner February 26, 2025 19:42
@joshmgross
joshmgross temporarily deployed to debug-integration-test February 26, 2025 19:42 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Feb 26, 2025

Copy link
Copy Markdown

Hello from actions/github-script! (f048dc3)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

robherley
robherley approved these changes Feb 26, 2025
View reviewed changes
@joshmgross joshmgross mentioned this pull request Feb 26, 2025
octokit instance from README examples doesn't work #545
Closed
@joshmgross
joshmgross merged commit d0bdaba into main Feb 26, 2025
@joshmgross
joshmgross deleted the joshmgross/fix-readme-v7 branch February 26, 2025 19:46
@iamstarkov

iamstarkov commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

I dont understand why #508 was a breaking change if it didnt remove any functionality and didnt change existing, it only added to the api surface. Can someone elaborate?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joshmgross

joshmgross commented Apr 15, 2025

Copy link
Copy Markdown
Contributor Author

I dont understand why #508 was a breaking change if it didnt remove any functionality and didnt change existing, it only added to the api surface. Can someone elaborate?

If users are defining a variable named octokit in their scripts (which I suspect some are), then these scripts would fail with the changes introduced by #508

For example:

      - uses: actions/github-script@main
        with:
          script: |
            const octokit = github
            await octokit.rest.issues.createComment({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: ${{ github.event.issue.number }},
              body: "Hello Again!"
            })

https://github.com/joshmgross/actions-testing/blob/05cfb53de657306dbb637cb4b9820d527270cfd7/.github/workflows/comment-on-issue.yaml

That will fail with the error

Unhandled error: SyntaxError: Identifier 'octokit' has already been declared

https://github.com/joshmgross/actions-testing/actions/runs/13551951964

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joshmgross joshmgross mentioned this pull request Jun 3, 2025
Replace @action/github dependency with latest Octokit #614
Closed
@github-actions github-actions Bot mentioned this pull request Sep 4, 2025
Bump actions/github-script from 7 to 8 labrynx/auto_comments#29
Merged
@github-actions github-actions Bot mentioned this pull request Nov 18, 2025
Bump actions/github-script from 7 to 8 senzing-factory/build-resources#236
Merged

This branch was previously deployed

1 inactive deployment
debug-integration-test — 851500a2 Deployed Feb 26, 2025 by joshmgross
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@robherley robherley robherley approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@joshmgross @iamstarkov @robherley
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.