Open swissspidy opened 6 years ago
Looking at GlotPress code, this won‘t be feasible without overriding the complete template file I think.
Here‘s another thought I had:
When we receive an incoming webhook for a given project, we store the repository type (gitlab, github, etc.) and perhaps the URL/host as project meta. In theory also the vcs type (git/hg) for Bitbucket repositories.
This way when trying to clone the repository we don‘t have to figure out where it resides, which is of course useful for self-hosted GitLab and things like that.
Ideally we‘d also have settings fields for the webhook secrets.
When we receive an incoming webhook for a given project, we store the repository type (gitlab, github, etc.) and perhaps the URL/host as project meta. In theory also the vcs type (git/hg) for Bitbucket repositories.
That already works now.
Ideally we‘d also have settings fields for the webhook secrets.
-> #80
Looking at GlotPress code, this won‘t be feasible without overriding the complete template file I think.
@ocean90 Can you confirm this?
You mean project-form.php? Yes, there's no filter yet. Maybe worth creating an issue/PR?
Opened an issue upstream: https://github.com/GlotPress/GlotPress-WP/issues/969
This way we don't have to guess the repsitory URL based on the "Source file URL" field.
Also, one might want to use Traduttore without having "Source file URL" set.