Skip to content

[Bug][Module Name] github Pull Requests draft status not being procssed #8421

@jbsmith7741

Description

@jbsmith7741

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

In the table pull_requests the column is_draft is not being populated correctly. All values are either false or null.

In the _raw_github_api_pull_requests_reviews table column 'data' there is the raw json data returned from the github api which includes the value of "draft":true,

is_draft column in the _tool_github_pull_requests table for that PR is set to false.

What do you expect to happen

Any pull requests that is marked as draft should have the value of is_draft in pull_requests table set to true.

How to reproduce

  1. Create a Pull Request in a github repo that is being injested into the devlake.
  2. Change the status of Pull Request to draft.
  3. Have Devlake pull in and progress github data.
  4. Verify raw data was added in the _raw_github_api_pull_requests_reviews table
  5. Verify that is_draft is false in the _tool_github_pull_requests table
  6. Verify that is_draft is false in the pull_requests table

Anything else

No response

Version

v1.01

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalecomponent/pluginsThis issue or PR relates to pluginsseverity/p2This bug doesn’t affect the functionality or isn’t evidenttype/bugThis issue is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions