Skip to content

feat: add new hook option keep-file-environment#647

Open
xtulnx wants to merge 10 commits into
adnanh:masterfrom
xtulnx:master
Open

feat: add new hook option keep-file-environment#647
xtulnx wants to merge 10 commits into
adnanh:masterfrom
xtulnx:master

Conversation

@xtulnx

@xtulnx xtulnx commented Jul 27, 2023

Copy link
Copy Markdown

add new hook option keep-file-environment

  • keep-file-environment - Keep all submitted files. Sending curl -d 'pkg=@res.tar.gz' will retrieve the environment variable HOOK_FILE_PKG, which contains the file path, and HOOK_FILENAME_PKG, which contains the file name as res.tar.gz. If keep-file-environment is true, the file will be preserved after the hook is executed. By default, the corresponding file will be removed after the webhook exits.

xtulnx added 10 commits July 27, 2023 16:38
默认不启用,需要通过启动参数开启
# Conflicts:
#	README.md
#	docs/Webhook-Parameters.md
#	go.mod
#	webhook_test.go
命令行参数优先级高于配置文件(配置文件先加载,flag.Parse() 后执行会覆盖)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant