Polyman Documentation - v2.2.2
    Preparing search index...

    Function remoteCommitProblemAction

    • Commits local changes to Polygon problem. Similar to git commit - creates new revision on Polygon. Requires problem ID in Config.json or as argument.

      Parameters

      • problemIdOrPath: string

        Problem ID or path to directory with Config.json

      • commitMessage: string

        Commit message describing changes

      Returns Promise<void>

      Resolves when commit completes

      If credentials are not registered

      If problem not found or no uncommitted changes

      If Polygon API request fails

      // From CLI: polyman remote-commit ./my-problem "Updated time limits"
      await remoteCommitProblemAction('./my-problem', 'Updated time limits');
      // Commits changes with message