Skip to content

Allow using variables in Webhook URL #10888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JakobDev opened this issue Nov 3, 2023 · 0 comments
Open

Allow using variables in Webhook URL #10888

JakobDev opened this issue Nov 3, 2023 · 0 comments
Labels
Feature New feature Needed: design decision A core team decision is required

Comments

@JakobDev
Copy link

JakobDev commented Nov 3, 2023

What's the problem this feature will solve?

I'm currently using Read the Docs together with Codeberg which uses Forgejo (a fork of Gitea). I know, that there is no full support of Gitea, so I'm using the Generic things. using the incoming GitHub Webhook works for triggering builds, as described in the Documentation. But I also want to report the status of the Build to Codeberg. I'm trying to use the build status webhooks to call the Forgejo API. But thres ne big problem: The API endpoint want the commit in the Path, was is currently not possible.

Describe the solution you'd like

Allow using variables in the Webhook URl, so I can use something like https://codeberg.org/api/v1/repos/Owner/Repo/statuses/{{ build.commit }} as the URL.

Alternative solutions

I don't have a Idea for a Workaround.

Additional context

None

@humitos humitos added the Needed: design decision A core team decision is required label Nov 3, 2023
@humitos humitos added the Feature New feature label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

2 participants