[PR #1044] [CLOSED] Add GitHub link field to tasks #1173

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

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/1044
Author: @VeryBigSad
Created: 2/26/2025
Status: Closed

Base: masterHead: feature-github-link-in-cards


📝 Commits (1)

  • bcc92df Add GitHub link field to tasks

📊 Changes

6 files changed (+193 additions, -2 deletions)

View changed files

📝 client/src/components/CardModal/CardModal.jsx (+39 -1)
client/src/components/CardModal/CardModal.test.js (+120 -0)
📝 client/src/models/Task.js (+1 -0)
📝 client/src/utils/validator.js (+10 -0)
📝 server/api/controllers/cards/show.js (+7 -1)
📝 server/api/controllers/cards/update.js (+16 -0)

📄 Description

Add a custom field named "Github Link" to tasks and display it in the frontend.

  • Add githubLink attribute to the Task model in client/src/models/Task.js.
  • Update createTask and updateTask actions in client/src/actions/tasks.js to handle the githubLink attribute.
  • Add input field for githubLink in CardModal component in client/src/components/CardModal/CardModal.jsx.
    • Display githubLink as a clickable link when filled in.
    • Display a button that expands into an input field when githubLink is not filled in.
  • Include githubLink attribute in card data retrieval logic in server/api/controllers/cards/show.js.
  • Include githubLink attribute in card data updating logic in server/api/controllers/cards/update.js.
  • Add validation function for githubLink in client/src/utils/validator.js.
  • Add unit tests for githubLink field in client/src/components/CardModal/CardModal.test.js.
    • Test display of githubLink as a clickable link when filled in.
    • Test display of button to add githubLink when not filled in.
    • Test input field display when add githubLink button is clicked.
    • Test onUpdate call with githubLink when save button is clicked.
    • Test validation of githubLink format.

🔄 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/1044 **Author:** [@VeryBigSad](https://github.com/VeryBigSad) **Created:** 2/26/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature-github-link-in-cards` --- ### 📝 Commits (1) - [`bcc92df`](https://github.com/plankanban/planka/commit/bcc92dfa76794365361b04f6f26b41ad76f307a1) Add GitHub link field to tasks ### 📊 Changes **6 files changed** (+193 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/src/components/CardModal/CardModal.jsx` (+39 -1) ➕ `client/src/components/CardModal/CardModal.test.js` (+120 -0) 📝 `client/src/models/Task.js` (+1 -0) 📝 `client/src/utils/validator.js` (+10 -0) 📝 `server/api/controllers/cards/show.js` (+7 -1) 📝 `server/api/controllers/cards/update.js` (+16 -0) </details> ### 📄 Description Add a custom field named "Github Link" to tasks and display it in the frontend. * Add `githubLink` attribute to the `Task` model in `client/src/models/Task.js`. * Update `createTask` and `updateTask` actions in `client/src/actions/tasks.js` to handle the `githubLink` attribute. * Add input field for `githubLink` in `CardModal` component in `client/src/components/CardModal/CardModal.jsx`. * Display `githubLink` as a clickable link when filled in. * Display a button that expands into an input field when `githubLink` is not filled in. * Include `githubLink` attribute in card data retrieval logic in `server/api/controllers/cards/show.js`. * Include `githubLink` attribute in card data updating logic in `server/api/controllers/cards/update.js`. * Add validation function for `githubLink` in `client/src/utils/validator.js`. * Add unit tests for `githubLink` field in `client/src/components/CardModal/CardModal.test.js`. * Test display of `githubLink` as a clickable link when filled in. * Test display of button to add `githubLink` when not filled in. * Test input field display when add `githubLink` button is clicked. * Test `onUpdate` call with `githubLink` when save button is clicked. * Test validation of `githubLink` format. --- <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:54:59 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#1173