Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for team deployment frequency trends #45

Merged
merged 2 commits into from
Apr 10, 2024
Merged

API for team deployment frequency trends #45

merged 2 commits into from
Apr 10, 2024

Conversation

samad-yar-khan
Copy link
Contributor

@samad-yar-khan samad-yar-khan commented Apr 10, 2024

Proposed Changes

  • Add API for team deployment frequency trends
GET {{BASE}}/team/{{TEAM_ID}}/deployment_frequency/trends?from_time=2024-01-01T13:19:58%2b00:00&to_time=2024-03-01T13:19:58%2b00:00&pr_filter={"base_branches": ["master", "main"]}&workflow_filter={"head_branches": ["XOXO"]}

Response


{
    "deployment_frequency_trends": {
        "2024-01-01T00:00:00+00:00": {
            "count": 2
        },
        "2024-01-08T00:00:00+00:00": {
            "count": 24
        },
        "2024-01-15T00:00:00+00:00": {
            "count": 15
        },
        "2024-01-22T00:00:00+00:00": {
            "count": 14
        },
        "2024-01-29T00:00:00+00:00": {
            "count": 43
        },
        "2024-02-05T00:00:00+00:00": {
            "count": 32
        },
        "2024-02-12T00:00:00+00:00": {
            "count": 20
        },
        "2024-02-19T00:00:00+00:00": {
            "count": 29
        },
        "2024-02-26T00:00:00+00:00": {
            "count": 13
        }
    }
}

@samad-yar-khan samad-yar-khan changed the title Grow API for team deployment frequency trends API for team deployment frequency trends Apr 10, 2024
@samad-yar-khan samad-yar-khan merged commit c373679 into main Apr 10, 2024
1 check passed
@samad-yar-khan samad-yar-khan deleted the GROW-1226 branch April 10, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants