Skip to content

Set more environment variables to allow their use in custom hooks #316

Closed
@afdev82

Description

@afdev82

In order to write custom hooks that use some variables, Gitea should export them in the environment.

For example, currently I need to know the user that is pushing a branch.
I think this could be easily done adding an os.Setenv line like here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionalitytype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions