Skip to content

Commit

Permalink
Update Flow types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed May 16, 2022
1 parent 4b10ff2 commit 3411cf6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gerald-pr.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/__test__/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ describe('test that the mock works', () => {
const context = {
issue: {owner: '__TESTING__', repo: '__TESTING__', number: -1},
payload: {
pull_request: {base: {ref: '__TESTING__'}, user: {login: '__testUser'}},
pull_request: {base: {ref: '__TESTING__', sha: '__TESTING__'}, user: {login: '__testUser'}},
before: 'suite1-commit1',
after: 'suite1-commit2',
commits: [makeTestCommit('suite1-commit2', 'test')],
Expand Down Expand Up @@ -194,7 +194,7 @@ describe('test simple working case', () => {
const context = {
issue: {owner: '__TESTING__', repo: '__TESTING__', number: -1},
payload: {
pull_request: {base: {ref: '__TESTING__'}, user: {login: '__testUser'}},
pull_request: {base: {ref: '__TESTING__', sha: '__TESTING__'}, user: {login: '__testUser'}},
before: 'suite2-commit1',
after: 'suite2-commit5',
commits: [
Expand Down Expand Up @@ -238,7 +238,7 @@ describe("test that changes on a merge commit don't notify people", () => {
const context = {
issue: {owner: '__TESTING__', repo: '__TESTING__', number: -1},
payload: {
pull_request: {base: {ref: '__TESTING__'}, user: {login: '__testUser'}},
pull_request: {base: {ref: '__TESTING__', sha: '__TESTING__'}, user: {login: '__testUser'}},
before: 'suite3-commit1',
after: 'suite3-commit3',
commits: [
Expand Down Expand Up @@ -277,7 +277,7 @@ describe('test that changes to verified commits dont notify people', () => {
const context = {
issue: {owner: '__TESTING__', repo: '__TESTING__', number: -1},
payload: {
pull_request: {base: {ref: '__TESTING__'}, user: {login: '__testUser'}},
pull_request: {base: {ref: '__TESTING__', sha: '__TESTING__'}, user: {login: '__testUser'}},
before: 'suite4-commit1',
after: 'suite4-commit3',
commits: [
Expand Down
2 changes: 1 addition & 1 deletion src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type Context =
| {|
issue: {|owner: '__TESTING__', repo: '__TESTING__', number: -1|},
payload: {|
pull_request: {|base: {|ref: '__TESTING__'|}, user: {|login: '__testUser'|}|},
pull_request: {|base: {|ref: '__TESTING__', sha: '__TESTING__'|}, user: {|login: '__testUser'|}|},
before: string,
after: string,
commits: Array<{
Expand Down

0 comments on commit 3411cf6

Please sign in to comment.