#4173 add resolve, resolves, resolved as keywords for fixing issues
Closed 2 years ago by ryanlerch. Opened 2 years ago by ryanlerch.
ryanlerch/pagure issue4039  into  master

file modified
+2 -2
@@ -21,7 +21,7 @@ 

  

  FIXES = [

      re.compile(r"(?:.*\s+)?{0}?[sd]?:?\s*?#(\d+)".format(kw), re.I)

-     for kw in ["fixe", "merge", "close"]

+     for kw in ["fixe", "merge", "close", "resolve"]

  ]

  FIXES += [

      re.compile(
@@ -31,7 +31,7 @@ 

          ),

          re.I,

      )

-     for kw in ["fixe", "merge", "close"]

+     for kw in ["fixe", "merge", "close", "resolve"]

  ]

  

  

@@ -294,6 +294,13 @@ 

          issue_match('Merge #137', '137')

          issue_match('Merges #137', '137')

          issue_match('Merges: #137', '137')

+         issue_match('Resolves: #137', '137')

+         issue_match('Resolved: #138', '138')

+         issue_match('Resolve: #138', '139')

+         issue_match('Resolves #137', '137')

+         issue_match('Resolved #138', '138')

+         issue_match('Resolve #138', '139')

+ 

  

          # no match

          def no_match(text):

this adds resolve as a keyword for fixing issues when put in
commit messages.

fixes #4039

The recognized keywords are listed on settings page for Pagure hook. Maybe this new one should be added there too?

Pull-Request has been closed by ryanlerch

2 years ago