Skip to content

IssueCommentTrigger is not working for few users having collaborator access  #131

@preetam810

Description

@preetam810

Jenkins and plugins versions report

Environment
Plugin Version: 2.8-159.09e4403bc62f

What Operating System are you using (both controller, and any agents involved in the problem)?

Amazon Linux 2

Reproduction steps

I'm using GitHub app for authentication and have set the permissions required to use IssueCommentTrigger in my pipelines. I'm the org owner on GitHub having admin permissions. Before releasing my pipeline I tested it with myself and a couple of users who were collaborators with write permission and it worked well. All users are part of different GitHub teams. After the release of my pipeline many users in my org now use the pipeline without problems. However, some users reported that they are not able to trigger the build using a pull request comment. These users are actually authors of their pull request having write permission on repository. I also checked and confirmed by the response of the API call to check collaborator status: https://docs.github.com/en/rest/collaborators/collaborators?apiVersion=2022-11-28#check-if-a-user-is-a-repository-collaboratory
I'm not able to debug why this is happening only for a handful users who are actually collaborators. It would be really helpful if you have any suggestions on investigating this further.

Expected Results

IssueCommentTrigger works for all collaborators.

Actual Results

Few users reported that IssueCommentTrigger is not working even after having collaborators access.

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions