Gitea does not apply CODEOWNERS for PRs from forks #12782

Closed
opened 2025-11-02 10:20:54 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @splitt3r on GitHub (Apr 4, 2024).

Description

If you create a pull request from a fork Gitea won't apply the CODEOWNERS. They only work for PRs from origin to origin.

Gitea Version

1.21.10

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?

version: '3'

services:
  gitea:
    image: gitea/gitea
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=postgres
      - GITEA__database__HOST=postgres:5432
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=gitea
      - GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE=false
    restart: always
    networks:
      - gitea
    volumes:
      - gitea-data:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
    depends_on:
      - postgres

  postgres:
    image: postgres
    container_name: postgres
    restart: always
    environment:
      - POSTGRES_USER=gitea
      - POSTGRES_PASSWORD=gitea
      - POSTGRES_DB=gitea
    networks:
      - gitea
    volumes:
      - postgres-data:/var/lib/postgresql/data

networks:
  gitea:

volumes:
  gitea-data:
  postgres-data:

Database

None

Originally created by @splitt3r on GitHub (Apr 4, 2024). ### Description If you create a pull request from a fork Gitea won't apply the CODEOWNERS. They only work for PRs from origin to origin. ### Gitea Version 1.21.10 ### 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? ```yaml version: '3' services: gitea: image: gitea/gitea container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST=postgres:5432 - GITEA__database__NAME=gitea - GITEA__database__USER=gitea - GITEA__database__PASSWD=gitea - GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE=false restart: always networks: - gitea volumes: - gitea-data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" depends_on: - postgres postgres: image: postgres container_name: postgres restart: always environment: - POSTGRES_USER=gitea - POSTGRES_PASSWORD=gitea - POSTGRES_DB=gitea networks: - gitea volumes: - postgres-data:/var/lib/postgresql/data networks: gitea: volumes: gitea-data: postgres-data: ``` ### Database None
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 10:20:54 -06:00
Author
Owner

@lunny commented on GitHub (Apr 4, 2024):

Did you mean your pull request is from fork to base repository? I think only pull requests from fork to fork have been disabled.

@lunny commented on GitHub (Apr 4, 2024): Did you mean your pull request is from fork to base repository? I think only pull requests from fork to fork have been disabled.
Author
Owner

@splitt3r commented on GitHub (Apr 4, 2024):

Did you mean your pull request is from fork to base repository?

Exactly

I think only pull requests from fork to fork have been disabled.

That makes sense

@splitt3r commented on GitHub (Apr 4, 2024): > Did you mean your pull request is from fork to base repository? Exactly > I think only pull requests from fork to fork have been disabled. That makes sense
Author
Owner

@lunny commented on GitHub (Apr 14, 2024):

Caused by #29783 .

@lunny commented on GitHub (Apr 14, 2024): Caused by #29783 .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12782