Is it possible to access an object Git history using the API?

Options
rmnvncnt
rmnvncnt Registered Posts: 41 ✭✭✭✭✭
I'd like to know if a project has been modified during a given period of time (to manage version control in an automatic way). Is it possible to access projects elements using the API to know if they have been modified?

Best Answer

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Answer ✓
    Options

    Hi,

    When GETting some objects, you may have a versionTag in the response with a lastModifiedOn timestamp. However, this is not available at project level. It would be possible to reconstruct it by iterating over all objects within a project, but is more involved.

    A simpler approach would be to use the internal commits database, as shown below:

    This dataset has all the commits by date for all projects. It can be used in a Scenario to automate the identification of recently modified vs "stale" projects.

    Hope it helps,

    Alex

Answers

Setup Info
    Tags
      Help me…