diff --git a/forwardport/__init__.py b/forwardport/__init__.py index 0650744f..f7209b17 100644 --- a/forwardport/__init__.py +++ b/forwardport/__init__.py @@ -1 +1,2 @@ from . import models +from . import controllers diff --git a/forwardport/changelog/2021-09/authorship-dedup.md b/forwardport/changelog/2021-09/authorship-dedup.md new file mode 100644 index 00000000..34f2d437 --- /dev/null +++ b/forwardport/changelog/2021-09/authorship-dedup.md @@ -0,0 +1 @@ +FIX: the deduplication of authorship in case of conflicts in multi-commit PRs diff --git a/forwardport/changelog/2021-09/authorship.md b/forwardport/changelog/2021-09/authorship.md new file mode 100644 index 00000000..ffe67c90 --- /dev/null +++ b/forwardport/changelog/2021-09/authorship.md @@ -0,0 +1 @@ +FIX: loss of authorship on conflicts in multi-commit PRs, such conflicts now generate a commit with no authorship information, which can not be merged diff --git a/forwardport/changelog/2021-09/conflict-view.md b/forwardport/changelog/2021-09/conflict-view.md new file mode 100644 index 00000000..4c6cc103 --- /dev/null +++ b/forwardport/changelog/2021-09/conflict-view.md @@ -0,0 +1 @@ +ADD: better localisation of conflicts in multi-PR commits, list all the commits in the comment and add an arrow pointing to the one which broke diff --git a/forwardport/changelog/2021-09/draft.md b/forwardport/changelog/2021-09/draft.md new file mode 100644 index 00000000..d92418a5 --- /dev/null +++ b/forwardport/changelog/2021-09/draft.md @@ -0,0 +1 @@ +REM: creation of forward ports in draft mode diff --git a/forwardport/changelog/2021-09/feedback-missing-login.md b/forwardport/changelog/2021-09/feedback-missing-login.md new file mode 100644 index 00000000..92e921e7 --- /dev/null +++ b/forwardport/changelog/2021-09/feedback-missing-login.md @@ -0,0 +1 @@ +FIX: some feedback messages didn't correctly ping the person being replied to diff --git a/forwardport/changelog/2021-09/followup-conflict.md b/forwardport/changelog/2021-09/followup-conflict.md new file mode 100644 index 00000000..6e8bf3bf --- /dev/null +++ b/forwardport/changelog/2021-09/followup-conflict.md @@ -0,0 +1 @@ +IMP: properly notify the user when an update to a pull request causes a conflict when impacted on the followup diff --git a/forwardport/changelog/2021-09/fp-remote-view.md b/forwardport/changelog/2021-09/fp-remote-view.md new file mode 100644 index 00000000..97729354 --- /dev/null +++ b/forwardport/changelog/2021-09/fp-remote-view.md @@ -0,0 +1 @@ +IMP: add the forward-port remote to the repository view, so it can be set via the UI diff --git a/forwardport/changelog/2021-09/fwbot-rplus-error.md b/forwardport/changelog/2021-09/fwbot-rplus-error.md new file mode 100644 index 00000000..e792d7ee --- /dev/null +++ b/forwardport/changelog/2021-09/fwbot-rplus-error.md @@ -0,0 +1 @@ +IMP: error messages when trying to `@fw-bot r+` on pull requests not under its purview diff --git a/forwardport/changelog/2021-09/outstanding.md b/forwardport/changelog/2021-09/outstanding.md new file mode 100644 index 00000000..8e83757d --- /dev/null +++ b/forwardport/changelog/2021-09/outstanding.md @@ -0,0 +1 @@ +ADD: list of outstanding forward-ports diff --git a/forwardport/changelog/2021-10/delegate-followup.md b/forwardport/changelog/2021-10/delegate-followup.md new file mode 100644 index 00000000..e3fcfc8b --- /dev/null +++ b/forwardport/changelog/2021-10/delegate-followup.md @@ -0,0 +1 @@ +FIX: allow delegate reviewers *on forward ports* to approve the followups, it worked fine for delegates on the original pull request but a delegation on a forward port would only work for that specific PR (note: only works if the followups don't already exist) diff --git a/forwardport/changelog/2021-10/followupdate-race.md b/forwardport/changelog/2021-10/followupdate-race.md new file mode 100644 index 00000000..06db5066 --- /dev/null +++ b/forwardport/changelog/2021-10/followupdate-race.md @@ -0,0 +1 @@ +FIX: rare condition where updating a forwardport would then require all followups to be individually approved diff --git a/forwardport/changelog/2021-10/fw-reapproval.md b/forwardport/changelog/2021-10/fw-reapproval.md new file mode 100644 index 00000000..8abdc008 --- /dev/null +++ b/forwardport/changelog/2021-10/fw-reapproval.md @@ -0,0 +1 @@ +FIX: don't trigger an error message when using `fw-bot r+` and some of the PRs were already approved diff --git a/forwardport/changelog/2021-10/outstanding-layout.md b/forwardport/changelog/2021-10/outstanding-layout.md new file mode 100644 index 00000000..c8d0a71b --- /dev/null +++ b/forwardport/changelog/2021-10/outstanding-layout.md @@ -0,0 +1 @@ +IMP: layout and features of the "outstanding forward port" page, show the oldest-merged PRs first and allow filtering by reviewer diff --git a/forwardport/controllers.py b/forwardport/controllers.py new file mode 100644 index 00000000..af464dcb --- /dev/null +++ b/forwardport/controllers.py @@ -0,0 +1,15 @@ +import pathlib + +from odoo.addons.runbot_merge.controllers.dashboard import MergebotDashboard + +class Dashboard(MergebotDashboard): + def _entries(self): + changelog = pathlib.Path(__file__).parent / 'changelog' + if not changelog.is_dir(): + return super()._entries() + + return super()._entries() + [ + (d.name, [f.read_text(encoding='utf-8') for f in d.iterdir() if f.is_file()]) + for d in changelog.iterdir() + ] + diff --git a/forwardport/data/views.xml b/forwardport/data/views.xml index fba29023..ff7f66c9 100644 --- a/forwardport/data/views.xml +++ b/forwardport/data/views.xml @@ -13,7 +13,7 @@ ('source_id', '!=', False), ('state', 'not in', ['merged', 'closed']), ])"/> -