Esempio n. 1
0
        public void BugCommitBefore(CBug bug, BugAction nBugAction, CBugEvent bugevent,
			bool fPublic)
        {
            /* Set the preCommitAwesomenessLevel member variable, but only set the plugin
             * field value if it's not -1 (no change) */

            if (api.Request[api.AddPluginPrefix("ixAwesomeness")] != null)
            {
                preCommitAwesomenessLevel = Convert.ToInt32(bug.GetPluginField(PLUGIN_ID,
                        "ixAwesomeness"));

                if (Convert.ToInt32(api.Request[api.AddPluginPrefix("ixAwesomeness")]) > 0)
                    bug.SetPluginField(PLUGIN_ID, "ixAwesomeness",
                        Convert.ToInt32(api.Request[api.AddPluginPrefix("ixAwesomeness")]));
            }

            return;
        }
Esempio n. 2
0
        public void BugCommitAfter(CBug bug, BugAction nBugAction, CBugEvent bugevent,
			bool fPublic)
        {
        }