tf / redmine_merge_request_links

Display links to associated Gitlab merge requests and GitHub pull requests on Redmine's issue page.
https://www.redmine.org/plugins/redmine_merge_request_links
MIT License
35 stars 26 forks source link

Change issue status after merge request is merged. #20

Open sandratatarevicova opened 5 years ago

sandratatarevicova commented 5 years ago

This pull request adds support for changing issue status after merging pull request / merge request. The target status and journal author is configurable using environment variables REDMINE_MERGE_REQUEST_LINKS_AFTER_MERGE_STATUS, REDMINE_MERGE_REQUEST_LINKS_GITLAB_REDMINE_USER_ID and REDMINE_MERGE_REQUEST_LINKS_FIXING_KEYWORD_PATTERN.

tf commented 5 years ago

Thanks for your contribution. I'll be on vacation next week, but will have a look afterwards. I took a quick peak at the code and saw that the new features are not covered by tests yet. I imagine those new cases will fit in well with the existing unit tests.

sandratatarevicova commented 4 years ago

@tf If this PR will be merged, we might use the REDMINE_MERGE_REQUEST_LINKS_GITLAB_REDMINE_USER_ID to create journals when merge request is created or updated. Do you think it is good idea? Should I create some issue? :-)

tf commented 4 years ago

we might use the REDMINE_MERGE_REQUEST_LINKS_GITLAB_REDMINE_USER_ID to create journals when merge request is created or updated.

Oh that could be really cool! Let's do it in a separate PR, though, once this one is merged.

Just now i noticed the "GITLAB" in the name of the variable REDMINE_MERGE_REQUEST_LINKS_GITLAB_REDMINE_USER_ID. What do you think about just calling it REDMINE_MERGE_REQUEST_LINKS_REDMINE_USER_ID instead since it will also be used for journal entries caused by GitHub or Gitea web hook calls?

sandratatarevicova commented 4 years ago

Just now i noticed the "GITLAB" in the name of the variable REDMINE_MERGE_REQUEST_LINKS_GITLAB_REDMINE_USER_ID. What do you think about just calling it REDMINE_MERGE_REQUEST_LINKS_REDMINE_USER_ID instead since it will also be used for journal entries caused by GitHub or Gitea web hook calls?

You are right, the GITLAB in the name of the variable does not make sense. It was probably some thinko :-) Fixed.