Comments (5)
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.
Apologies for the slow response to this issue. I will take a look asap.
from create-pull-request.
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.
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.
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)
- Don't require a deep fetch for forks HOT 11
- Token generated from GitHub App not working with push-to-fork HOT 4
- Default to "Squash and Merge" HOT 1
- I get error "protected branch hook declined" when I try to create a draft pull request into protected branch HOT 1
- Force update the branch of existing pull request HOT 1
- Empty PRs being created, is this expected? HOT 4
- Error creating new PR HOT 2
- `title-path` and `commit-message-path` inputs HOT 1
- `base` also does a checkout to that branch HOT 1
- Update multiple repositories HOT 2
- ignore untracked HOT 2
- NO PR created and branch changes to new branch and updates from main HOT 5
- Required checks are not being triggered after the PR creation HOT 1
- Error: Input 'token' not supplied. Unable to continue. HOT 1
- Changes from test folder doesn't added to the PR HOT 10
- Node version - Warning HOT 1
- Permission denied (publickey) HOT 1
- Merge conflict error for different files with different names
- Add branch-label as an output so it can be passed to other actions and easily commited to HOT 2
- PR still created with 0 files (no diffs) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-pull-request.