[PR #799] [MERGED] feat: add custom user agent to webhook with base url #1105

Closed
opened 2026-02-04 21:50:29 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/799
Author: @HannesOberreiter
Created: 6/18/2024
Status: Merged
Merged: 6/18/2024
Merged by: @meltyshev

Base: masterHead: webhook-custom-user-agent


📝 Commits (1)

  • 90fcb41 feat: add custom user agent to webhook with base url

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 server/api/helpers/utils/send-webhooks.js (+1 -0)

📄 Description

This update adds a default user-agent to the header, which includes the base URL. This enhancement allows for differentiating multiple instances on the webhook and creating links to events without hardcoding any base URLs.

Prior to this change, the default user-agent of node-fetch was "node".

Cheers,
Hannes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plankanban/planka/pull/799 **Author:** [@HannesOberreiter](https://github.com/HannesOberreiter) **Created:** 6/18/2024 **Status:** ✅ Merged **Merged:** 6/18/2024 **Merged by:** [@meltyshev](https://github.com/meltyshev) **Base:** `master` ← **Head:** `webhook-custom-user-agent` --- ### 📝 Commits (1) - [`90fcb41`](https://github.com/plankanban/planka/commit/90fcb413ae81017c839996f033f3f147bf1f9a42) feat: :sparkles: add custom user agent to webhook with base url ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/api/helpers/utils/send-webhooks.js` (+1 -0) </details> ### 📄 Description This update adds a default `user-agent` to the header, which includes the base URL. This enhancement allows for differentiating multiple instances on the webhook and creating links to events without hardcoding any base URLs. Prior to this change, the default user-agent of node-fetch was "node". Cheers, Hannes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:50:29 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#1105