Code Monkey home page Code Monkey logo

Comments (5)

vitorarantes avatar vitorarantes commented on August 20, 2024 1

same here when using schedule event:

Traceback (most recent call last):
  File "/create-pull-request.py", line 119, in <module>
     if not ignore_event(github_event):
  File "/create-pull-request.py", line 23, in ignore_event
    deleted = "{deleted}".format(**github_event)
KeyError: 'deleted'
##[error]Docker run failed with exit code 1

from create-pull-request.

peter-evans avatar peter-evans commented on August 20, 2024 1

Apologies for the slow response to this issue. I will take a look asap.

from create-pull-request.

stefanbuck avatar stefanbuck commented on August 20, 2024

The issue seems to be related to the fact, that on scheduled jobs the $GITHUB_EVENT_PATH file contains just one attribute

{
  "schedule": "* * * * *"
}

whereas on push it contains a proper GitHub payload with repository and sender details.

I'm not really experienced with Python to come up with a bug fix PR, but might this helps someone else to fix the issue. From what I can tell it's this ignore_event function which needs a deleted along with a ref key in that json.

from create-pull-request.

peter-evans avatar peter-evans commented on August 20, 2024

Released version 1.1.2 to fix this. Thank you @stefanbuck for the contribution!
Please try uses: peter-evans/[email protected]

from create-pull-request.

peter-evans avatar peter-evans commented on August 20, 2024

I had chance to properly test this today and noticed a bug with v1.1.2. I've released a new version and tested it. Please use peter-evans/[email protected]

Closing this issue. Please reopen if necessary.

from create-pull-request.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.