Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Fetching TOTAL issue count?

you are right, I didn't think about the github client, but you also weren't mentioning that.

I am not a Github API expert so I don't know on which REST API the count you want is exposed.
A quick grep on the github client sources doesn't find any line containing 'issue' which returns an int

org.eclipse.egit.github.core (master)]$ git grep -i  issue | grep int
README.md:classes are defined for the resources they interact with such as `IssueService`,
src/org/eclipse/egit/github/core/Issue.java:   public Issue setComments(int comments) {
src/org/eclipse/egit/github/core/Issue.java:   public Issue setNumber(int number) {
src/org/eclipse/egit/github/core/Milestone.java:       private int closedIssues;
src/org/eclipse/egit/github/core/Milestone.java:       private int openIssues;
src/org/eclipse/egit/github/core/Milestone.java:       public int getClosedIssues() {
src/org/eclipse/egit/github/core/Milestone.java:       public Milestone setClosedIssues(int closedIssues) {
src/org/eclipse/egit/github/core/Milestone.java:       public int getOpenIssues() {
src/org/eclipse/egit/github/core/Milestone.java:       public Milestone setOpenIssues(int openIssues) {
src/org/eclipse/egit/github/core/Repository.java:       private int openIssues;
src/org/eclipse/egit/github/core/Repository.java:       public int getOpenIssues() {
src/org/eclipse/egit/github/core/Repository.java:       public Repository setOpenIssues(int openIssues) {
src/org/eclipse/egit/github/core/SearchIssue.java:     public SearchIssue setComments(int comments) {
src/org/eclipse/egit/github/core/SearchIssue.java:     public SearchIssue setNumber(int number) {
src/org/eclipse/egit/github/core/SearchIssue.java:     public SearchIssue setPosition(int position) {
src/org/eclipse/egit/github/core/SearchIssue.java:     public SearchIssue setVotes(int votes) {
src/org/eclipse/egit/github/core/SearchRepository.java: private int openIssues;
src/org/eclipse/egit/github/core/SearchRepository.java: public int getOpenIssues() {
src/org/eclipse/egit/github/core/service/IssueService.java:     public Issue getIssue(String user, String repository, int issueNumber)
src/org/eclipse/egit/github/core/service/IssueService.java:     public Issue getIssue(IRepositoryIdProvider repository, int issueNumber)
src/org/eclipse/egit/github/core/service/IssueService.java:     int issueNumber) throws IOException {
src/org/eclipse/egit/github/core/service/IssueService.java:     int issueNumber) throws IOException {
src/org/eclipse/egit/github/core/service/IssueService.java:     int issueNumber, String comment) throws IOException {
src/org/eclipse/egit/github/core/service/IssueService.java:     int issueNumber, String comment) throws IOException {
src/org/eclipse/egit/github/core/service/IssueService.java:     String repository, int issueId) {
src/org/eclipse/egit/github/core/service/IssueService.java:     String repository, int issueId, int size) {
src/org/eclipse/egit/github/core/service/IssueService.java:     String repository, int issueId, int start, int size) {
src/org/eclipse/egit/github/core/service/PullRequestService.java:       int issueId, String head, String base) throws IOException {

so I guess, if Github Rest API exposes such a method, it isn't implemented in the github client.

Maybe you want to contribute the missing functionality ? Let me know if you need help to get started.

-Matthias

On Wed, Aug 24, 2016 at 11:59 PM, Raun, Austin <araun@xxxxxxxx> wrote:

import org.eclipse.egit.github.core.client.GitHubClient;

import org.eclipse.egit.github.core.service.IssueService;

import org.eclipse.egit.github.core.service.RepositoryService;

 

I was working with the above imports on Eclipse – perhaps I am asking in the wrong forum. Are these only associated with mylyn list?

 

Thanks

 

From: Matthias Sohn [mailto:matthias.sohn@gmail.com]
Sent: Wednesday, August 24, 2016 2:50 PM
To: Raun, Austin
Cc: egit-dev@xxxxxxxxxxx
Subject: Re: [egit-dev] Fetching TOTAL issue count?

 

On Wed, Aug 24, 2016 at 6:19 PM, Raun, Austin <araun@xxxxxxxx> wrote:

I was wondering if there is current functionality to be able to get a count for the number of total issues (both open & closed). Currently I am only able to get a count for .openIssues() which doesn’t satisfy the requirement of the project I am working on. Can anyone help me out with this or is there a workaround?

 

EGit has no API for issues, did you want to ask this question on the mylyn list ?

 

-Matthias

This message is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to disclose, distribute, copy or use this message or any information contained in this message. If you are not the intended recipient, please notify us immediately by reply e-mail or telephone and please delete this message. Thank you very much for your cooperation


Back to the top