Giter Site home page Giter Site logo

comment-pr's People

Contributors

balazsorban44 avatar dgu1-godaddy avatar nejczdovc avatar okize avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

comment-pr's Issues

Default `GITHUB_TOKEN` permissions may not allow writing to PR

The GITHUB_TOKEN used by this action may not have permission to write to the PR. If that's the case you will see an error like:

Error: Resource not accessible by integration

You can give the the github token extra permissions to allow it to write to the PR. Specifically

permissions:
    pull-requests: write
    # The contents permission is not specifically required for this action, but it's required to checkout the repo, so most people will want it too.
    # contents: read

See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions for more info.

Can't post large comments

PR comments have a max size of 65KB, see

PR body/Issue comments are still stored in MySQL as a mediumblob with a maximum value length of 262,144. This equals a limit of 65,536 4-byte unicode characters.

When I use this action to post giant comments that exceed the limit, they will fail (by definition). Can you think of ways to work around this work? For example, can this action detect the size of the comment and save the comment in a gist or something and then add a PR comment to link to it? Thoughts?

Add file input support

Right now we are supporting message input which is ok for simple comments. But we should extend it to support file reads as well so that workflow file is clean.

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.