<commit_before>Update custom fields on commit
==============================

Update custom fields when closing an issue via commit.

Copyright (c) 2011 <NAME>, released under the MIT license.

Forked from `projects-page-forward`_, which was:

Forked from `single-project-forward`_: Copyright (c) 2010 [<NAME>], released under the MIT license

 .. _`projects-page-forward`: https://github.com/jmcb/projects-page-forward
 .. _`single-project-forward`: https://github.com/jkassemi/single-project-forward
<commit_msg>Update README.<commit_after>******************************
Update custom fields on commit
******************************

This plug-in allows you to specify a "close" value for IssueCustomFields. Thus,
whenever an issue is closed from a commit message, all custom fields for that
tracker are iterated; for fields which have a "close" value defined (defined as
anything other than ""), this value is then set as the custom field value for
the issue being closed.

Therefore, if you have issue #111 in your "Bug" tracker, and you have a "Bug
resolution" issue custom field with the possible values of "New", "Fixed",
"Won't fix", it's now possible to define both a default value ("New", say; this
value is used whenever a new Issue is created), as well as a "default close"
value (say, "Fixed"). Now, when you make a commit that includes "Resovle #111"
(or whatever keyword you've set-up for referencing issues from commit
messages), not only will the status of issue #111 be changed to "Closed", but
the value of "Bug resolution" will be set to fixed.

Installation
============

Install by::

    git clone git://github.com/jmcb/update-custom-fields-commit vendor/plugins/update-custom-fields-commit rake db:migrate:plugins
    RAILS_ENV=production

Then restart your Redmine installtion.

You should now be able to set "Default close" values in the "Edit Issue Custom
Field" view.

Info
====

Copyright (c) 2011 <NAME>, released under the MIT license.

Forked from `projects-page-forward`_, which was:

Forked from `single-project-forward`_: Copyright (c) 2010 [<NAME>],
released under the MIT license

 .. _`projects-page-forward`: https://github.com/jmcb/projects-page-forward
 .. _`single-project-forward`: https://github.com/jkassemi/single-project-forward

{'fraction_non_alphanumeric': 0.1366432337434095, 'fraction_numerical': 0.010984182776801407, 'mean_word_length': 4.853470437017995, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4167813', 'n_tokens_mistral': 659, 'n_tokens_neox': 609, 'n_words': 273}