]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
script/redmine-upkeep: add transform to resolve merged issue
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 16 Jul 2025 18:28:59 +0000 (14:28 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 12 Aug 2025 18:31:48 +0000 (14:31 -0400)
commit057639d55ad8fc8d616acb715c5fd77e00367ccf
treea559544ade4b18c890b75356d095a9551b1930c0
parent994d2edf228851efc15ea7fa116a9d8614775149
script/redmine-upkeep: add transform to resolve merged issue

Few things:

- Add priority to transforms. Largely this is to have the "merged"
  transformation run first to update the "Merge Commit" field of the ticket
  before any other transform intends to look at that field. This avoids
  duplicating logic to set the Merge Commit field.

- Fix a bug where the github API cannot be trusted to indicate the Merge Commit
  for a PR. When the branch is rename or changed, the github backend clearly
  gets confused and gives the "HEAD" commit instead.

- Add new transform to resolve tickets that are merged to either Resolved or
  Pending Backport status.

* Note: filters on TAGS cannot be combined. There is some restructuring to deal with that.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/script/redmine-upkeep.py