Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
0
-
Description
Currently, only currentUser and request are exposed in the context of bitbucket.pullrequest.action while the client context has pullRequest only. This makes it difficult to use conditions or client context providers that need a reference to the pullRequest or repository.
For example, if I wanted to check if my plugins hook has been enabled at the repository level to load the given client web item, the context provided to the condition would have no way to determine the repository to pass to a RepositoryHookService. Instead, a client condition would have a reference to the repository through the pullRequest in the client context but no way to directly validate that the repository hook is enabled!
For this reason and similar scenarios, I believe this to be a worthwhile addition.