Skip to content

[BUG] flowwer-dev/pull-request-stats: Resource not accessible by integration #66

@macohen

Description

@macohen

What is the bug?
I have an issue where I’m trying to integrate a github action (https://github.com/flowwer-dev/pull-request-stats) that should add a comment with PR stats to every PR. I’ve been trying to make it work with PRs opened against main, but it was failing due to permissions (https://github.com/opensearch-project/search-processor/actions/runs/3766987233/jobs/6404075146). I also created two branches in the repo and made a PR from one to the other. That one succeeded: (#62). It’s strange to me that a PR to main would have different permissions than a PR to a different branch and I'm not sure where to go from there.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Enable the (Pull Request Stats)[https://github.com/opensearch-project/search-processor/actions/workflows/pr_stats.yml]
  2. Create a PR to merge to main
  3. Watch the check fail like in: https://github.com/opensearch-project/search-processor/actions/runs/3766987233

What is the expected behavior?
A comment should be added to the PR like #62 (comment)

What is your host/environment?
N/A

Do you have any screenshots?
No, but the logfile with error is here: logs_561.zip

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions