Пример #1
0
    public List <string> commitChangedFiles(string key, List <int> indexes, string comment, int runID)
    {
        if (!CurrentContext.Admin)
        {
            return(new List <string>(new string[] { "Access Denied" }));
        }

        List <string> output = ChangesContainer.Commit(key, indexes, comment, CurrentContext.GitUser);

        TestRun tr = new TestRun(runID.ToString())
        {
            USERID = CurrentContext.UserID.ToString(), COMMENT = comment
        };

        tr.AddTTID(CbstHelper.GetTTfromText(comment));
        tr.Store();

        CbstHelper.FeedLog("Etalon files have been committed to git repository: " + comment);
        return(output);
    }