gabrielcsapo / gabrielcsapo/node-git-server
How reject works?
- Dominant language
- TypeScript
- Stars
- 262
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
Lets say I listen to some push event and for some reason I decide to reject this push. I tried to do something like:
```
repos.on("push", (data: PushData) => {
data.reject(403, `Rejected! Have a good day`)
});
```
It really returns some error to the client, But it doesn't return the specific message I chose (It does send the correct code)
What am I doing wrong?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the repos.on("push") handler and data.reject(403, ...) example in the issue, then reproduce the response using the shown snippet. Trace how the rejection reaches the client and verify that the selected message, as well as status code 403, is returned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, node.js, typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100