•  
     
    story #10216 manage "immutable tags" with REST API
Summary
Empty
manage "immutable tags" with REST API
Empty

Update existing routes:

GET /svn/:id

{
    "id": int,
    ...
    "settings": {
        "commit_rules": {
            "mandatory_reference": boolean,
            "allow_commit_message_change": boolean
        },
        "access_file": [
            "[/]",
            "* = ",
            "Contributors = r",
            "[/stuff]",
            "Contributors = rw"
        ],
        "immutable_tags": {
            "paths": [
                "/tags"
            ],
            "whitelist": [
                "/tags/moduleX"
            ]
        }
    }
}

POST /svn

{
    ...
    "settings": {
        "commit_rules": {
            "mandatory_reference": boolean,
            "allow_commit_message_change": boolean
        },
        "access_file": [
            "[/]",
            "* = ",
            "Contributors = r",
            "[/stuff]",
            "Contributors = rw"
        ],
        "immutable_tags": {
            "paths": [
                "/tags"
            ],
            "whitelist": [
                "/tags/moduleX"
            ]
        }
    }
}

PUT /svn/:id

{
    "id": int
    "settings": {
        "commit_rules": {
            "mandatory_reference": boolean,
            "allow_commit_message_change": boolean
        },
        "access_file": [
            "[/]",
            "* = ",
            "Contributors = r",
            "[/stuff]",
            "Contributors = rw"
        ],
        "immutable_tags": {
            "paths": [
                "/tags"
            ],
            "whitelist": [
                "/tags/moduleX"
            ]
        }
    }
}
  • Changes are recorded in Project History
Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#10216
Manuel Vacelet (vaceletm)
2017-08-16 12:03
2017-05-15 11:29
3277

References

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Permissions set to