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

Github poller does not work as expected #6799

Open
jianliang00 opened this issue Jan 19, 2024 · 0 comments
Open

Github poller does not work as expected #6799

jianliang00 opened this issue Jan 19, 2024 · 0 comments

Comments

@jianliang00
Copy link

I'm trying to use the git repository poller in my own CDS services to get events from Github. After the services get running correctly, I make some changes in my repository on Github, but I can't find any events triggering my workflows.
Here's part of my workflow configuration and I'm sure the vcs service can access my repository:

hooks:
  test1:
  - type: Git Repository Poller
    config:
      payload: '{}'

I tried to debug the source code and found that the key problem is the following line:
image
The function mapstructure.Decode did not decode the event payload correctly. Instead, it leaves all the fields of MergeRequest struct empty.

image
Here's the value of variable i. Notice that the field state of merge_request has the value open
image

And Here's the value of variable e. The field State of MergeRequest along with other fields are all empty
image

I believe there shouldn't be such a blatant bug in Mapstructure, yet I'm perplexed as to why such a situation arises.

Can anyone give me some help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant