Skip to content

Latest commit

 

History

History
84 lines (67 loc) · 1.85 KB

TEMPLATE.md

File metadata and controls

84 lines (67 loc) · 1.85 KB

Example

Repositories

{% for repo in repositories %} Index: {{ forloop.index }}

Name: {{ repo.name }}

URL: {{ repo.url }}

Star: {{ repo.stargazerCount }}

Description: {{ repo.description }}


{% endfor %}

Contributed Repositories

{% for repo in contributed %}Index: {{ forloop.index }}

Name: {{ repo.name }}

URL: {{ repo.url }}

Star: {{ repo.stargazerCount }}

Description: {{ repo.description }}

Contributions:

{% for con in repo.contributions %} - {{ con.pullRequest.title }} {% endfor %}


{% endfor %}
query {
            user(login: "ntsd") {
              name
              repositories(first: 10, orderBy: {field:STARGAZERS, direction: DESC}) {
                nodes {
                  name
                  url
                  stargazerCount
                }
              }
              contributionsCollection {
                pullRequestContributionsByRepository(maxRepositories: 100, excludeFirst:true) {
                  repository {
                    name
                    url
                    stargazerCount
                    isPrivate
                  }
                  contributions(first: 10) {
                    nodes {
                      occurredAt
                      pullRequest {
                        title
                        url
                      }
                    }
                  }
                }
                pullRequestContributions(first: 5){
                  nodes{
                   pullRequest {
                     title
                      repository {
                        name
                        url
                      }
                   }
                  }
                }
                totalRepositoriesWithContributedPullRequests
                totalRepositoriesWithContributedCommits
              }
            }
          }