Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Sample code uses outdated @action/toolkit API #17

@blaxx

Description

@blaxx

Describe the bug
Workflow action 'create-issue' fails even though, by course description, it should succeed.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the course until the end of the 'Add Third Actions JavaScript Files' step
  2. Add a label to the current pull request
  3. Check your actions tab: the workflow has failed with the error message: 'github.GitHub is not a constructor'

Expected behavior
By adding a label to my pull request I expect the workflow to finish successfully.

Screenshots
Bildschirmfoto 2020-06-20 um 22 52 06
Bildschirmfoto 2020-06-20 um 22 46 02

Additional context
Seems like the way the octokit client is created in the sample code is no longer supported by @actions/toolkit v3, also see this pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions