Commit Graph
20 Commits
Author SHA1 Message Date
Lauri Ojansivu 935e68dfdd GitHub organization import: repositories, issues, releases, Actions, wiki.
Import -> GitHub -> Import a whole GitHub organization makes every
repository of an organization or user its own board, opening in Board View
/ Version Control. Issues go through the ordinary importBoard, as the person
who started the job, with their comments, labels and files. Releases are
cards in a Releases list, their files attached only when chosen. Each
.github/workflows file becomes Rules. The wiki is read from its git
repository with isomorphic-git (1.42.4, pinned), every request through the
SSRF guard and only to github.com: a page is a card in the Wiki list, its
[[links]] point at and are attached to the linked pages' cards, and each
commit that changed it is a dated edit in the card's history, so Restore
brings back an older version. The job shows progress, can be cancelled,
pauses on a restart and stops at a rate limit; the token is kept in memory
only.

Version Control gains Releases and Wiki tabs: the wiki as GitHub shows it,
with the page list, _Sidebar and _Footer, links that stay in the tab, and
each page's history with Restore.

GitHub Actions workflows map to Rules: issue events to triggers, label,
close, reopen, comment, assign and create steps to actions, actions/stale to
an aging rule. Code - builds, tests, scripts - is never run: such a workflow
is a disabled rule with its YAML as the description. WeKan's Rules gain what
they lacked for it: a "commented on" trigger, an "add comment" action written
as the person whose change ran the rule and only where they may comment,
cron schedules in UTC, and a rule description shown on the rule. A disabled
rule no longer fires on a schedule or from its button, which it did.

The new strings are translated in every locale.

Thanks to xet7 !
2026-10-14 12:43:36 +03:00
Lauri Ojansivu eac524380f Add rule triggers for a card moved forward or back.
The reporter puts a card at the bottom of the next list when it moves on and
at the top when it moves back. With only "moved to" and "moved from" a list
triggers, that needs a rule for every pair of lists. "A card is moved forward
to a later list" and "moved back to an earlier list" now fire on any move
between two lists of the board, compared by the lists' order rather than by
the screen, so they also work in right-to-left languages. They are matched
on the rule's own board, like the other trigger kinds
(models/lib/ruleMoveDirection.js).

tests/ruleMoveDirection.test.cjs covers the directions and what has none; a
Playwright case moves cards both ways through the REST API. The RepointBleed
guard counts the new matching path. New text is in English, pending
Transifex.

Thanks to rlach and xet7 !

Fixes #2076.
2026-10-08 12:25:29 +03:00
Lauri Ojansivu 29488f8d52 Add rule triggers for due/start/end/received date changes.
server/triggersDef.js now registers the 'a-dueAt'/'a-startAt'/'a-endAt'/
'a-receivedAt' activityTypes that models/cards.js's setDue/setStart/
setEnd/setReceived already log via server/models/cards.js's timing-field
hook (the same activity the due-date-change-count feature, #6081, already
reads). This wires those existing activities into the Rules matcher so a
rule can trigger "when the due/start/end/received date is set or changed",
reusing the TriggersDef-driven matching machinery every other trigger
already uses.

Thanks to justinr1234 and xet7 !

Closes #2474,
2026-09-10 20:41:40 +03:00
Lauri Ojansivu 4eb54caca8 CHANGELOG: global admin board takeover, and #3249's other three asks.
Thanks to relikd and xet7 !
2026-09-10 20:05:47 +03:00
Lauri Ojansivu f0bce67a3b More Import Export and Rules features.
Thanks to xet7 and Claude !
2026-06-15 04:07:33 +03:00
Harry Adel 63ce45c538 Split shared models from Meteor 3 server runtime 2026-03-24 01:50:39 +02:00
Justin Reynolds 3eb4d2c341 Prettier & eslint project style update 2019-06-28 12:56:51 -05:00
Angelo Gallarello 477d71e0b9 Fixes 2019-02-12 23:40:12 +01:00
Angelo Gallarello 4d8b2029d2 Fixed errors 2019-01-02 22:51:00 +01:00
Angelo Gallarello 25968a35cc Finished triggers improvements 2019-01-02 14:45:45 +01:00
Angelo Gallarello a2d756074f Added swimlane trigger 2018-12-30 22:08:34 +01:00
Angelo Gallarello 9d1d66b0f5 Added triggers by username 2018-12-29 16:59:50 +01:00
Angelo Gallarello 1f02321e27 Fixed rules about member and box dropdowns width 2018-09-21 14:53:04 +02:00
Lauri Ojansivu df84a2be9a Fix lint errors. 2018-09-16 01:50:36 +03:00
Angelo Gallarello 3b62b5ec5d Fixed triggers to use names and not id 2018-08-17 14:16:56 +02:00
Angelo Gallarello 2f24dcfc7d Progress on triggers UI 2018-08-16 23:37:29 +02:00
Angelo Gallarello cc285afd59 Complete checklist activities 2018-08-16 21:49:56 +02:00
Angelo Gallarello f7446ba934 Remove attachment activity 2018-08-16 17:18:55 +02:00
Angelo Gallarello 9c6d374b95 Labels activities 2018-08-16 16:54:29 +02:00
Angelo Gallarello 6828ccd7f1 Main flow implemented 2018-08-16 00:32:31 +02:00