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

Events - empty array elements as [] not null #33288

Open
hwaastad opened this issue Jan 15, 2025 · 0 comments
Open

Events - empty array elements as [] not null #33288

hwaastad opened this issue Jan 15, 2025 · 0 comments

Comments

@hwaastad
Copy link

Description

Hi,
Currently, if a pull_request has no assignees, the event will have the following:

{
  "event": {
    "pull_request": {
      "assignees": null
    }
  }

I think it would be a better (and more intuitive) way to define arrays as empty [] rather than null (null-safe). This is also more aligned to github events.

Other arrays are:
topics
labels
requested_reviewers
requested_reviewers_teams

Gitea Version

1.23.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

k8s, docker

Database

PostgreSQL

@hwaastad hwaastad changed the title Events array empty array elements as [] not null Events - empty array elements as [] not null Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants