Skip to content

Enables PR Status to be updated independently of PRs - #3132

Merged
shiftkey merged 67 commits into
masterfrom
load-ci-status-independently
Nov 13, 2017
Merged

shiftkey merged 67 commits into
masterfrom
load-ci-status-independently

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Oct 23, 2017 •

Copy link
Copy Markdown
Contributor

Fixes #3019
Fixes #3020

@j-f1

j-f1 commented Oct 23, 2017

Copy link
Copy Markdown
Contributor

Did you mean to open this against integrate-pr-store? This PR seems to be mostly changes from that branch.

@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 2, 2017
import { GitHubRepository } from '../../../models/github-repository'

const PullRequestInterval = 1000 * 60 * 3
const StatusInterval = 1000 * 60

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@joshaber

joshaber commented Nov 3, 2017

Copy link
Copy Markdown
Contributor

I worked on this PR too, so someone else will need to review it 🙏

PushedPullRequest = 'PushedPullRequestHandle',
}

export class PullRequestUpdater {

This comment was marked as spam.

@shiftkey shiftkey self-assigned this Nov 7, 2017

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. A few little things to call out, but tested it out fine in macOS just now.

Comment thread app/src/lib/stores/app-store.ts Outdated
return
}

if (!repository.gitHubRepository) {

This comment was marked as spam.

import { GitHubRepository } from '../../../models/github-repository'

const PullRequestInterval = 1000 * 60 * 3
const StatusInterval = 1000 * 60

This comment was marked as spam.

this.pullRequests = await this.getPullRequests(repository)
this.emitUpdate()
} catch (error) {
log.warn(`Error refreshing pull requests for '${repository.name}`)

This comment was marked as spam.

This comment was marked as spam.

)

return
return -1

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

import { PullRequest } from '../../../models/pull-request'
import { GitHubRepository } from '../../../models/github-repository'

const PullRequestInterval = 1000 * 60 * 3

This comment was marked as spam.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

🐰

prStatus.state === 'failure'
) {
this.currentPullRequests = this.currentPullRequests.filter(
p => p.number === prStatus.pullRequestNumber

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the mixed up review, I shouldn't be allowed to do things before ☕.

}

private async writePullRequests(
private async writePRs(

This comment was marked as spam.

This comment was marked as spam.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

☘️

@shiftkey
shiftkey merged commit 3e6e969 into master Nov 13, 2017
@shiftkey
shiftkey deleted the load-ci-status-independently branch November 13, 2017 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants