Code Monkey home page Code Monkey logo

Comments (9)

bluesliverx avatar bluesliverx commented on August 20, 2024 1

@jebentier, I finally got the build fixed, if you could take a look at my comments on the PR we can get this merged in.

from github-pr-comment-build-plugin.

bluesliverx avatar bluesliverx commented on August 20, 2024

Glad you like the plugin, it satisfied a need for us for sure. Hmm... not sure why comment URL wouldn't be able to be retrieved. Can you send the exact code you are using to access it?

I like the idea of adding another env var, but unfortunately that's a bit out of my wheel house, and may need some additional classes/extension points (I'm really not sure). It may be possible to override this when you schedule the job run, but I really don't know. PRs are absolutely welcome and encouraged, since I likely don't have any time to get to this soon just due to other work concerns.

from github-pr-comment-build-plugin.

jebentier avatar jebentier commented on August 20, 2024

@bluesliverx I've been using this plugin for quite some time and love the power that it adds to my GitHub repositories.

I've been looking to build out a workaround to gain access to the comment body that triggered the build for a few days now. With the code the way it is now, I've gone the route that you suggested through getting the comment URL from the build cause object. I think it will be a great improvement to this plugin (like you also mentioned) to allow access to the comment body itself through the cause object as well. So I've opened up #25 to do just this, and I've opened JENKINS-63938 in the Jira to track this issue further as well.

This is my first time contributing to Jenkins or a plugin, so please let me know if there is anything else I should do.

from github-pr-comment-build-plugin.

bluesliverx avatar bluesliverx commented on August 20, 2024

Thanks so much for the contribution @jebentier, sorry this has taken me so long to get to it. The build has failed, I'm still looking into why, likely Jenkins build made some updates (unrelated to your changes) that I haven't incorporated yet or something.

from github-pr-comment-build-plugin.

bluesliverx avatar bluesliverx commented on August 20, 2024

I believe I just released version 2.2 that should have these fixes in them. It's been awhile since I released, so we'll see if that worked after a couple of hours...

from github-pr-comment-build-plugin.

bluesliverx avatar bluesliverx commented on August 20, 2024

Yup, that seems to have worked, let me know if the new version works out or now.

from github-pr-comment-build-plugin.

jebinjeb avatar jebinjeb commented on August 20, 2024

is this env available env.GITHUB_PR_COMMENT ? or any other way to get PR comments ?

from github-pr-comment-build-plugin.

bluesliverx avatar bluesliverx commented on August 20, 2024

Currently environment variables are not supported (PRs are welcome), but you can do it through retrieving the causes on the build and look for this one: https://github.com/jenkinsci/github-pr-comment-build-plugin/blob/master/src/main/java/com/adobe/jenkins/github_pr_comment_build/GitHubPullRequestCommentCause.java.

from github-pr-comment-build-plugin.

bluesliverx avatar bluesliverx commented on August 20, 2024

Closing this issue since I haven't heard back from @conf or @jebentier.

from github-pr-comment-build-plugin.

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.