gitea/services/webhook
Sebastian Weigand 7b518bc6c7
Change "rejected" to "changes requested" in 3rd party PR review notification (#34481)
This PR changes 3rd party notifications wording on a PR review that
requests changes and can be considered a follow up for #5858 to also fix
#5857 in 3rd party notifications.

The difference in the actual notification would be the following:

```diff
- Pull request review rejected
+ Pull request review changes requested
```

While this is a simple string change at first look, it has a deeper UX
meaning.

# Motivation

We could observe that some developers are hesitant to press the "Request
changes" button since their peers first see that their changes were
rejected, thus a more appropriate wording that also falls in line with
the meaning and UI would be beneficial.

## Meaning

Pressing the `Request changes` button in a PR review means that as a
reviewer you are willing to merge the general change in a PR if changes
requested review comments are implemented.
Rejecting a PR on the other hand would be equivalent with closing it
since that change isn't welcome at all (e.g. out of scope feature).

## Sync with UI

The UI button says `request changes` and the other options 


![image](https://github.com/user-attachments/assets/3766cc89-40d7-4c5e-9ff7-a0e1f6991ea6)



## Considered Problems

This might break some automation for users who rely on string matching.
2025-05-15 23:56:26 -04:00
..
deliver.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
deliver_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
dingtalk.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
dingtalk_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
discord.go Change "rejected" to "changes requested" in 3rd party PR review notification (#34481) 2025-05-15 23:56:26 -04:00
discord_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
feishu.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
feishu_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
general.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
general_test.go Add tests for webhook and fix some webhook bugs (#33396) 2025-01-30 03:09:48 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
matrix.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
matrix_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
msteams.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
msteams_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
notifier.go Refactor functions to reduce repopath expose (#33892) 2025-03-16 03:14:56 +00:00
packagist.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
packagist_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
payloader.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
slack.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
slack_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
telegram.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
telegram_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
webhook.go Add tests for webhook and fix some webhook bugs (#33396) 2025-01-30 03:09:48 +00:00
webhook_test.go Test webhook email (#33033) 2024-12-30 01:25:49 +08:00
wechatwork.go Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00