Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between local and GitHub #193

Open
ians-shipt opened this issue Jun 24, 2022 · 1 comment
Open

Difference between local and GitHub #193

ians-shipt opened this issue Jun 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ians-shipt
Copy link

ians-shipt commented Jun 24, 2022

Hello! I've been doing a bit of debugging to try and figure out why the action wasn't working on GitHub (it would always say mergeable_state: blocked even when the merge button was green), and I finally got a chance to debug locally. From what I've observed, the calls (in fetchPullRequest) to the github api are returning different results locally vs during the action.

They both says mergeable: true, but have a different in the mergeable_state. Any suggestions or ideas? Thanks!

GitHub Action Output Local Debugging Output
image image

Also, unsure if it's this action, but the most recent label is being removed (appears to be related to this) even though MERGE_REMOVE_LABELS is set to ''

Conversation Config
image image
@pascalgn
Copy link
Owner

pascalgn commented Oct 7, 2022

I experienced similar issues and we assumed some kind of caching issues some time ago, so headers: { "If-None-Match": "" } was added. Without access to GitHub internals we can only speculate, but I assume some kind of logic (maybe caching) that handles requests coming from GH actions differently than external requests.

Regarding the label issue, we have logger.info("Removed labels:", labelNames);, do you see this in the logs?

@pascalgn pascalgn added the bug Something isn't working label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants