peterjgrainger/action-changelog-reminder

Does it work for PRs from forks?

Closed this issue · 8 comments

I tried running it in my fork and it worked but it doesn't seem to work for PRs from forks.

Example and This is how error looks like

Not sure about forks... I'll have a look, thanks for giving me an example

Confirmed. It's an issue. I think it's because when you merge a fork the PR is in the repository you forked from. I'll have a look if this is possible with the Github actions token.

@peter-grainger You probably can run cron jobs + use https://developer.github.com/v3/pulls/#list-pull-requests-files as a workaround. But it's kinda meh since the reaction to PR will be delayed 🤔

@JAremko I think this is the same problem https://github.community/t5/GitHub-Actions/GitHub-Action-workflow-is-executed-for-a-PR-from-a-forked-repo/m-p/29579

I see why they would do this. You don't want people forking your repo to have full write access to your issues. Not sure there is a way around it :(

Yeah not with actions. 🤔

For anyone looking at this later other actions have the same problem with forks. Maybe at some point they will sort out the permissions. Here is a discussion on the labeller action actions/labeler#12

Still open, was this ever resolved?

Yes. You can now configure this!