Comments (7)
@jclem ah, perfect, that was the issue. Didn't realize that conflicts affected things in such a way, good to know! I appreciate your help!
from github-script.
Hey @aulneau thank you for reporting this! This issue should be opened against the octokit/rest.js repository. I don't maintain that project, it's just a dependency of this action 😄
from github-script.
Hi there @jclem, it seems as though this is not an issue in the octokit/rest repo, but an issue with the context object not containing the data it should. Do you know why it might not contain an issue number? you can see the log of context
here https://github.com/blockstack/docs.blockstack/runs/878974240?check_suite_focus=true
from github-script.
@aulneau Ah, I see what's happening now! Sorry for the misdirection. This workflow is running on push
as well as pull_request
. The push
event won't have information about any pull request in it, so the number isn't present. The pull_request
workflow will run when the pull request branch is synced to, so there's no need for push
, unless you have it there for some other reason.
Let me know if that helps!
from github-script.
hmm I see -- I added push
because when I added anything to the pull request, the action would not fire.
from github-script.
Hey @aulneau in this case, I believe that is due to the merge conflict on stacks-network/docs#655. When there's a merge conflict on a PR, there's not merge commit, which is the SHA that Actions uses to run the workflow from. If we just ran on the head of the PR branch itself, for example, the workflow wouldn't represent the state of the PR if it were merged at that point.
from github-script.
I got the same error with a correct URL. In my case the cause was that self-hosted github-runners need to get explicit permission in the .github/workflows/yourfile.yaml
:
permissions:
pull-requests: write # Needed for creating comments in pull-requests thru the API
statuses: write # Needed in case the github action wants to set the commit pending state
from github-script.
Related Issues (20)
- Allow changing the directory where the script runs HOT 1
- How to add an issue to a project? HOT 3
- Make an API call to a self-hosted/enterprise instance
- Add `.github/workflows` path to `require` paths
- unable to create commit HOT 2
- REST API "CreateCommitStatus" returning a 404 HOT 3
- Rest endpoint to delete comments returning 404
- Goes incorrectly toward api.github.com on Github Enterprise after upgrading to v7 HOT 10
- How to reference a separate script file which processes and returns output? HOT 4
- How to make conditional check on a label name that includes emoji HOT 2
- Unable to resolve action `actions/github-script@v7`, unable to find version `v7` HOT 4
- workflow_sha and workflow_ref are not populated HOT 2
- Regression with v7 when trying to iterate over pull requests. HOT 4
- [BUG]: rest.packages.listPackagesForOrganization return 400 Invalid argument with package type 'container' HOT 1
- HTTP status 422 when creating a protected branch HOT 2
- Feature: Support for ECMAScript Modules (ESM) in GitHub Actions - "actions/github-scripts" HOT 3
- Multi-line output showing unknown characters HOT 1
- Unhandled error: TypeError: Cannot read properties of undefined (reading 'includes') HOT 1
- Tips
- Update octokit dependency to match online documentation HOT 2
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 github-script.