forgejo/tests/integration/fixtures/TestSystemCommentRoles/issue.yml
0ko d1d78c1b14 fix(commenter roles): don't give system users roles (#6766)
Currently on every pull request Ghost would have a misleading "First-time contributor" role.
Also, if the issue author is a Ghost, all other ghosts who commented will be labeled as authors even if they are different ghosts.

I've added a missing check to abort all other permission and contribution checks early if the user is a ghost. Also applies to other system users, as suggested by @earl-warren.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6766
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Co-committed-by: 0ko <0ko@noreply.codeberg.org>
2025-02-05 17:34:45 +00:00

67 lines
1.2 KiB
YAML

-
id: 1000
repo_id: 1
index: 1000
poster_id: 2
original_author_id: 0
name: issue1
content: authored by a normal user 2
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 1
created_unix: 946684800
updated_unix: 978307200
is_locked: false
-
id: 1001
repo_id: 1
index: 1001
poster_id: -1
original_author_id: 0
name: issue1
content: authored by the system user -1 / Ghost
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 1
created_unix: 946684800
updated_unix: 978307200
is_locked: false
-
id: 1002
repo_id: 1
index: 1002
poster_id: -2
original_author_id: 0
name: issue2
content: authored by the system user -2 / Action
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 1
created_unix: 946684800
updated_unix: 978307200
is_locked: false
-
id: 1003
repo_id: 1
index: 1003
poster_id: -3
original_author_id: 0
name: issue3
content: authored by the system user -3 / APActor
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 1
created_unix: 946684800
updated_unix: 978307200
is_locked: false