Coder Social home page Coder Social logo

Comments (7)

aulneau avatar aulneau commented on August 15, 2024 1

@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.

jclem avatar jclem commented on August 15, 2024

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.

aulneau avatar aulneau commented on August 15, 2024

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.

jclem avatar jclem commented on August 15, 2024

@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.

aulneau avatar aulneau commented on August 15, 2024

hmm I see -- I added push because when I added anything to the pull request, the action would not fire.

from github-script.

jclem avatar jclem commented on August 15, 2024

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.

bernhardkaindl avatar bernhardkaindl commented on August 15, 2024

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)

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.