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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy