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

Update version to 1.0.75-6 on staging #3904

Merged
merged 283 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
283 commits
Select commit Hold shift + click to select a range
427dd5d
Add popover to get to paypal page
stitesExpensify Jun 23, 2021
4cc5dc7
Update the features after refactor
mountiny Jun 23, 2021
2ae6261
Remove Rajat's components
mountiny Jun 23, 2021
db6d80f
Use simply FlatList and add disabled danger button colour
mountiny Jun 23, 2021
78d3449
Add appropriate icons
stitesExpensify Jun 23, 2021
1bcdca0
Remove unused state vars
stitesExpensify Jun 23, 2021
92ad5b9
Style
stitesExpensify Jun 23, 2021
9dce8a5
Style
stitesExpensify Jun 23, 2021
064f181
Add Policy member removal functionality
mountiny Jun 23, 2021
08d4ef2
Merge main into the branch to get up-to-date changes
mountiny Jun 24, 2021
9d05861
Fix two merge conflict errors
mountiny Jun 24, 2021
826fcfd
Fix issue with undefined key
mountiny Jun 24, 2021
3f04d48
Fixing JS linting errors
mountiny Jun 24, 2021
a8703e2
Fix js lint
mountiny Jun 24, 2021
cc28cbe
Fix js lint 2
mountiny Jun 24, 2021
24d2c4e
Split paymentspage into native files because of popover positioning
stitesExpensify Jun 24, 2021
6f7e4b9
Update the texts
mountiny Jun 24, 2021
44c75fa
feat: New approach
pranshuchittora Jun 24, 2021
1906234
fix: Removed unwanted props
pranshuchittora Jun 24, 2021
4032415
Remove the admin email from list of members to remove to prevent erro…
mountiny Jun 24, 2021
cb7f241
Merge branch 'main' of github.com:Expensify/Expensify.cash into stite…
stitesExpensify Jun 24, 2021
fb43ddc
Merge branch 'main' of github.com:Expensify/Expensify.cash into stite…
stitesExpensify Jun 24, 2021
e79f03e
Revert podfile changes
stitesExpensify Jun 24, 2021
27e482d
Revert podfile lock changes
stitesExpensify Jun 24, 2021
83f43a4
Add responsive styles and make remove button in modal red
mountiny Jun 25, 2021
f9a0f61
Capitalize modal title
mountiny Jun 25, 2021
5333835
Remove debugging line
mountiny Jun 25, 2021
8b169c4
#3195 - fix wording on password form page
dklymenk Jun 25, 2021
5e610a8
fix: Minor changes to the object keys
pranshuchittora Jun 25, 2021
7d3a123
Improving the styles on smaller screen
mountiny Jun 25, 2021
d741cff
add asyncOpenURL wrapper
luacmartins Jun 25, 2021
6536e56
Add Error Growl and message
Jun 25, 2021
bb92284
Handle error correctly
Jun 25, 2021
ebd3533
Update the responsive styles and remove the tagline
mountiny Jun 25, 2021
f289841
Add translation keys to es.js
mountiny Jun 26, 2021
e7f7422
Make the remove request parameters required
mountiny Jun 26, 2021
3c19e68
Update one comment
mountiny Jun 26, 2021
de87e5b
#3195 - revert default language change
dklymenk Jun 26, 2021
1c53635
#3195 - fix translation function call for spanish
dklymenk Jun 26, 2021
69f191a
feat: Updated method doc
pranshuchittora Jun 27, 2021
ab6145f
feat: Updated method doc
pranshuchittora Jun 27, 2021
156fe87
feat: Emoji size fix
pranshuchittora Jun 27, 2021
6f04132
added CP checking for PR message
parasharrajat Jun 27, 2021
3b0c1e8
build GH actions
parasharrajat Jun 27, 2021
a394969
Pass personal policyID to InboxCallUser
jasperhuangg Jun 28, 2021
75c35a3
Update comment
jasperhuangg Jun 28, 2021
5f1d87d
fix parameter access
jasperhuangg Jun 28, 2021
f31ae48
Set default value for requestorAddressState
MariaHCD Jun 28, 2021
a4ba28d
Update logic to account for middle names
jasperhuangg Jun 28, 2021
6e42349
Fix logic for lastName
jasperhuangg Jun 28, 2021
3c6fc8b
Cleanup
jasperhuangg Jun 28, 2021
86461f2
Merge main into vit-settingsPageToConfigureWorkspace
mountiny Jun 28, 2021
00a6450
Revert debugging changes and update remove request call error handling
mountiny Jun 28, 2021
734ee3e
feat: Updated logic
pranshuchittora Jun 28, 2021
bcc0882
Merge remote-tracking branch 'origin/main' into pranshuchittora/feat/…
pranshuchittora Jun 28, 2021
2b00419
remove platform files and update input argument
luacmartins Jun 28, 2021
4bf5e08
Remove accidental update
stitesExpensify Jun 28, 2021
da1dc60
Remove accidental update
stitesExpensify Jun 28, 2021
7eb0f51
fix isDisabled check
jasperhuangg Jun 29, 2021
ea43339
cast to boolean to avoid warning
jasperhuangg Jun 29, 2021
79039c0
Remove unnecessary funtion bindings
mountiny Jun 29, 2021
7bcddf3
Fix JSDoc formatting
mountiny Jun 29, 2021
0f153ca
Refactor the toggleUser function
mountiny Jun 29, 2021
8aced19
Remove fragment and use underscore contains
mountiny Jun 29, 2021
3d9c712
Remove unnecessary props for FlatList
mountiny Jun 29, 2021
baa2dfd
Update responsive design breakpoint to work well in the modal
mountiny Jun 29, 2021
2c30a9d
Fix js linting errors
mountiny Jun 29, 2021
fd0f49f
new: added drafts in GSD mode
parasharrajat Jun 29, 2021
39a3c44
Remove useless button
stitesExpensify Jun 29, 2021
2df2702
adds delete option to attachment comments
rdjuric Jun 29, 2021
167a28c
Move getting the element location to a module
stitesExpensify Jun 29, 2021
8d7d303
Style
stitesExpensify Jun 29, 2021
5ba671f
Move PaymentsPage back into a single file
stitesExpensify Jun 29, 2021
d83dc8f
Remove unnecessary eslint comments and unnecessary prop
stitesExpensify Jun 29, 2021
9ce87fc
Move paymentList logic to its own function
stitesExpensify Jun 29, 2021
ca70a5e
fix: delete action on context menu
parasharrajat Jun 29, 2021
a491c92
Fix prop comments
stitesExpensify Jun 29, 2021
feb78ab
Adding more comments
stitesExpensify Jun 29, 2021
ff8383a
Add paypal.me to es
stitesExpensify Jun 29, 2021
63fab7c
lint fixes
rdjuric Jun 29, 2021
fecf78e
Kebab case
stitesExpensify Jun 29, 2021
ab57107
Remove remenant createMenu references
stitesExpensify Jun 29, 2021
39e7a8d
Pretty up lodash
stitesExpensify Jun 29, 2021
135b797
Style
stitesExpensify Jun 29, 2021
a3b07fd
Add better keys
stitesExpensify Jun 29, 2021
d9a9886
Update state var name to be more consistent
stitesExpensify Jun 29, 2021
bb2a83f
Move __cash__ to a const
stitesExpensify Jun 29, 2021
8371ae2
Merge branch 'main' of github.com:Expensify/Expensify.cash into stite…
stitesExpensify Jun 29, 2021
7546948
Add translations
stitesExpensify Jun 29, 2021
d0922e0
Disable max-len
Jun 29, 2021
5b6c033
Remove line too long errors
stitesExpensify Jun 29, 2021
b8df0fd
Merge branch 'main' into nmurray-update-IOU-growl
Jun 29, 2021
9884ad3
Update src/libs/reportUtils.js
rdjuric Jun 29, 2021
7436e3b
Update src/libs/reportUtils.js
rdjuric Jun 29, 2021
c9631e4
Update src/libs/reportUtils.js
rdjuric Jun 29, 2021
a9db527
Merge pull request #3804 from rdjuric/deleteAttachments
luacmartins Jun 29, 2021
905c06d
Fix grammar mistake
mountiny Jun 29, 2021
e1ecd2b
Revert suppression of touchstart to fix regressions
roryabraham Jun 29, 2021
9f28a4e
Refactor user toggling logic
mountiny Jun 29, 2021
181d7ad
Change the Confirm modal button props
mountiny Jun 30, 2021
66341fd
Add wallet constant and use wallet icon for wallet
stitesExpensify Jun 30, 2021
6bfa5ff
Remove placeholder ModalStackNavigator
mountiny Jun 30, 2021
5b869c3
Fix proptype
stitesExpensify Jun 30, 2021
4cb15d1
Update Remove members error handling and remove unnecessary translations
mountiny Jun 30, 2021
015e61e
Move paypal constant
stitesExpensify Jun 30, 2021
6c1f968
Refactor data manipulationin WorkspacePeoplePage
mountiny Jun 30, 2021
2711bf1
Remove useless inverted prop
stitesExpensify Jun 30, 2021
2aa3cf0
Remove padding that we don't want
stitesExpensify Jun 30, 2021
d00dda5
add propTypes for Plaid accounts
marcaaron Jun 30, 2021
1ae1d6e
Merge pull request #3776 from Expensify/maria-requestor-state-fix
Jag96 Jun 30, 2021
c05ef16
Check if personal policy can be found before submitting form
jasperhuangg Jun 30, 2021
c555295
Merge pull request #3786 from Expensify/jasper-fixPaymentsButton
Julesssss Jun 30, 2021
099457e
Merge main into this branch
mountiny Jun 30, 2021
1a8b58c
Remove the pressable area on fullscreen modal
mountiny Jun 30, 2021
42ed986
Fix JSDoc typo and render FlatList unconditionally
mountiny Jun 30, 2021
a5d731e
Add spanish translations
mountiny Jun 30, 2021
180501f
Update finalized Spanish translations
mountiny Jun 30, 2021
6440802
removes incorrect check for empty name
rdjuric Jun 30, 2021
8590f20
Fix route. Add back button press
marcaaron Jun 30, 2021
4853183
Merge branch 'main' of github.com:Expensify/Expensify.cash into menu-…
parasharrajat Jun 30, 2021
8695e19
remove isModal
marcaaron Jun 30, 2021
c6aaa2f
Fix up click away handler issues
marcaaron Jun 30, 2021
5087bae
fix logic
parasharrajat Jun 30, 2021
1b095ea
Merge branch 'main' of github.com:Expensify/Expensify.cash into stite…
stitesExpensify Jun 30, 2021
a7a3174
fix logic
parasharrajat Jun 30, 2021
5eccf99
Revert "Fix Desktop - CMD + K is slow and laggy #3601"
nickmurray47 Jun 30, 2021
a839927
fixes long name
rdjuric Jun 30, 2021
7920b12
use white background
marcaaron Jun 30, 2021
312e645
Merge pull request #3824 from Expensify/revert-3760-thibault-FixSearc…
tgolen Jun 30, 2021
af376d2
Merge pull request #3816 from Expensify/Rory-RevertSuppressTouch
roryabraham Jun 30, 2021
9010e08
Update version to 1.0.75-1
Jun 30, 2021
454664c
Merge pull request #3831 from Expensify/version-BUILD-312e645644c368e…
OSBotify Jun 30, 2021
0fa7796
Update version to 1.0.75-2
Jun 30, 2021
1957af2
Merge pull request #3833 from Expensify/version-BUILD-454664cb514079c…
OSBotify Jun 30, 2021
b426424
Update version to 1.0.75-3
Jun 30, 2021
5c24bd6
Merge pull request #3835 from Expensify/version-BUILD-1957af2510d1554…
OSBotify Jun 30, 2021
55bb341
Update version to 1.0.75-4
Jun 30, 2021
b330b3d
Merge pull request #3836 from Expensify/version-BUILD-5c24bd600944b84…
OSBotify Jun 30, 2021
5a1c35c
add autofocus to password and payment pages
luacmartins Jun 30, 2021
b8b98ad
get route params from whichever route we can. they might be out of or…
marcaaron Jun 30, 2021
13874c2
Move position by 20
stitesExpensify Jun 30, 2021
b70b419
clean up styles some more
marcaaron Jun 30, 2021
78615f7
remove buttonRow
marcaaron Jun 30, 2021
91e0d45
clean up badge style
marcaaron Jun 30, 2021
1ec0ea9
remove sms domain
marcaaron Jun 30, 2021
5fc03ca
Start including betas in the call to getSidebarOptions
yuwenmemon Jun 30, 2021
181625e
Make entire row touchable
marcaaron Jun 30, 2021
ce20252
fix bug discovered on android due to null policy
marcaaron Jun 30, 2021
ff0507e
make numberOfLines conditional
rdjuric Jun 30, 2021
10d70ae
Update border width to be 1px
mountiny Jun 30, 2021
1e3f882
makes isSingleLine a prop of our report fragment
rdjuric Jun 30, 2021
3eb5818
Update Spanish translation
mountiny Jun 30, 2021
dd61455
lint fixes
rdjuric Jun 30, 2021
d627947
Merge pull request #3840 from Expensify/yuwen-sidebarOptionsBetas
yuwenmemon Jun 30, 2021
9a07cbe
Update version to 1.0.75-5
Jun 30, 2021
55a8ec4
Merge pull request #3842 from Expensify/version-BUILD-d627947ae5a8d6c…
OSBotify Jun 30, 2021
72b8e1d
Merge pull request #3681 from Expensify/vit-settingsPageToConfigureWo…
marcaaron Jun 30, 2021
056f968
Merge pull request #3764 from Expensify/cmartins-async-link
Luke9389 Jul 1, 2021
162e2e9
Make default room subtitle available even for domain rooms
Jul 1, 2021
5d0748b
Merge branch 'main' of https://github.com/Expensify/Expensify.cash in…
Jul 1, 2021
27ab3cd
Merge pull request #3830 from rdjuric/fixLongDisplayName
Luke9389 Jul 1, 2021
72dc183
Merge pull request #3823 from rdjuric/fixEmptyNameChange
Jag96 Jul 1, 2021
8a22102
code clean up and style fixes
Jul 1, 2021
4a33ecc
Fix unknown policy issue in search bar
Jul 1, 2021
421f98e
Switch to switch and add in spanish translations
Jul 1, 2021
86d7ed2
remove duplicate bind of addParticipants()
rushatgabhane Jul 1, 2021
d65ee7a
Don't search for participants of a default room
Jul 1, 2021
f57d2ac
refactor and update
parasharrajat Jul 1, 2021
168d697
refactor
parasharrajat Jul 1, 2021
7416e0f
Merge pull request #3803 from parasharrajat/menu-deleted
roryabraham Jul 1, 2021
775cecb
refactor
parasharrajat Jul 1, 2021
c570743
Merge pull request #3793 from parasharrajat/parasharrajat/GSD
Jag96 Jul 1, 2021
37aeb21
added icons to the IOU payments mode
parasharrajat Jul 1, 2021
9b9a5a5
IOUAmount use arrow keys to move cursor
rushatgabhane Jul 1, 2021
3edb3e0
rename, make func more specialized
rushatgabhane Jul 1, 2021
cf8ba66
fix typo, eslint
rushatgabhane Jul 1, 2021
5a0b4e2
refactor into a function
rushatgabhane Jul 1, 2021
5475302
fix logic
jasperhuangg Jul 1, 2021
2bde5c1
implement Growl.success
jasperhuangg Jul 1, 2021
512c09a
fix: scrolling issue
parasharrajat Jul 1, 2021
832a28f
Merge pull request #3846 from rushatgabhane/fix-typo
Beamanator Jul 1, 2021
de03a02
Update the height of Edit profile button
mountiny Jul 1, 2021
de44278
Merge pull request #3777 from Expensify/jasper-requestCallPageMiddleN…
sketchydroide Jul 1, 2021
999d374
Merge pull request #3839 from Expensify/cmartins-keyboard-auto-open
MonilBhavsar Jul 1, 2021
291ef58
reorder the order
parasharrajat Jul 1, 2021
76074fb
Ner order after reorder.
parasharrajat Jul 1, 2021
3fad24e
Update the styles
mountiny Jul 1, 2021
78238db
Merge pull request #3852 from parasharrajat/pay-icons
MonilBhavsar Jul 1, 2021
8e0c6f5
Merge pull request #3771 from parasharrajat/gh-actions
roryabraham Jul 1, 2021
0b34771
fix: Minor PR changes
pranshuchittora Jul 1, 2021
6d1f555
Merge branch 'main' of github.com:Expensify/Expensify.cash into stite…
stitesExpensify Jul 1, 2021
066d88c
refactor.
rushatgabhane Jul 1, 2021
870c3db
Merge pull request #3229 from pranshuchittora/pranshuchittora/feat/ht…
roryabraham Jul 1, 2021
f7fe4e9
create validateAmount() and refactor
rushatgabhane Jul 1, 2021
5c99631
fix docs
rushatgabhane Jul 1, 2021
0e0f7b6
Fix capitalization
stitesExpensify Jul 1, 2021
34e3b85
fix JSDoc style
rushatgabhane Jul 1, 2021
046338c
Comment style
stitesExpensify Jul 1, 2021
02340f0
undo remove check for Backspace
rushatgabhane Jul 1, 2021
ca87f1c
Change name to be more generic and accurate
stitesExpensify Jul 1, 2021
6103814
Fix routing for IOU
marcaaron Jul 1, 2021
b2225da
Cleanup render
stitesExpensify Jul 1, 2021
a6693be
Style cleanup
stitesExpensify Jul 1, 2021
edf3bb6
Remove unnecessary translation
stitesExpensify Jul 1, 2021
d0c7e87
Add in Spanish translations
Jul 1, 2021
6626292
Merge branch 'main' into nmurray-update-IOU-growl
Jul 1, 2021
205e3ed
Merge main after resolving conflicts
Jul 1, 2021
5abb33c
Merge pull request #3809 from Expensify/nmurray-update-IOU-growl
mountiny Jul 1, 2021
050cdc0
Add routes, new page, modal stack navigator and link them
Jul 1, 2021
7c9370e
Exclude all default rooms from new chat and new group searches
Jul 1, 2021
6f83958
Add in IOUModal steps and new prop type
Jul 1, 2021
0c1471d
Refactor
Jul 2, 2021
cb57342
Merge pull request #3850 from rushatgabhane/arrowkey-move-cursor
roryabraham Jul 2, 2021
039b671
Merge pull request #3727 from Expensify/stites-newPaymentsPage
marcaaron Jul 2, 2021
e332724
Merge branch 'main' of github.com:Expensify/Expensify.cash into jaspe…
jasperhuangg Jul 2, 2021
5653309
Merge pull request #3854 from Expensify/vit-updateEditPhotoButton
HorusGoul Jul 2, 2021
824e85f
Merge pull request #3856 from parasharrajat/scrolling
Beamanator Jul 2, 2021
6be5a34
fix: error when draft is null
parasharrajat Jul 2, 2021
bfc14ce
Merge pull request #3860 from Expensify/nmurray-add-sendmoney-page
Jul 2, 2021
1df1e4c
linting fixed
parasharrajat Jul 2, 2021
9a4e3a0
Add clarifying comment
Jul 2, 2021
33cb4fa
fixed stalled login page
parasharrajat Jul 2, 2021
bf83784
Ensure participants aren't search criteria for default rooms
Jul 2, 2021
debd22d
Fix policy name searching
Jul 2, 2021
7fd2f10
Prioritize default rooms in searches
Jul 2, 2021
2aa5e8b
add noResultsFound to language
rushatgabhane Jul 2, 2021
84eb6fd
display message when no emojis found
rushatgabhane Jul 2, 2021
bddae03
Prioritize default rooms in search only when we start searching
Jul 2, 2021
998a741
Merge branch 'main' of https://github.com/Expensify/Expensify.cash in…
Jul 2, 2021
b9b7ec4
Merge pull request #3872 from rushatgabhane/noemoji-message
thienlnam Jul 2, 2021
854c9bf
update e-common
parasharrajat Jul 3, 2021
079c12b
Merge pull request #3878 from parasharrajat/url-fix
Jag96 Jul 3, 2021
a015896
fix: delete action is called on canceling the menu
parasharrajat Jul 4, 2021
045b394
Merge pull request #3847 from Expensify/amal-default-rooms-no-partici…
HorusGoul Jul 5, 2021
7c34010
Merge pull request #3769 from dklymenk/3195-fix-messages-on-password-…
sketchydroide Jul 5, 2021
36a3364
Merge pull request #3882 from parasharrajat/menu-deleted
jasperhuangg Jul 6, 2021
2f0c1cc
fix IOU send route + conflicts
marcaaron Jul 6, 2021
fd8184b
Merge branch 'main' of https://github.com/Expensify/Expensify.cash in…
Jul 6, 2021
e78340b
Merge pull request #3561 from pranshuchittora/pranshuchittora/feat/em…
Jul 6, 2021
d189ca6
tweak
parasharrajat Jul 6, 2021
38830cf
Merge pull request #3865 from parasharrajat/parasharrajat/GSD
chiragsalian Jul 7, 2021
4ab0654
Merge branch 'main' of github.com:Expensify/Expensify.cash into jaspe…
jasperhuangg Jul 7, 2021
bc0d300
update translation
jasperhuangg Jul 7, 2021
c956587
Merge pull request #3773 from Expensify/jasper-requestCallPersonalPolicy
Jag96 Jul 7, 2021
b992f45
Merge pull request #3845 from Expensify/amal-domain-chatroom-name
sketchydroide Jul 7, 2021
fad829f
Merge pull request #3888 from Expensify/marcaaron-iouTransitions
marcaaron Jul 7, 2021
d3b3a79
Merge pull request #3817 from Expensify/marcaaron-propTypesPlaid
marcaaron Jul 7, 2021
0f40b7b
Update version to 1.0.75-6
Jul 7, 2021
9a84fbe
Merge pull request #3903 from Expensify/version-BUILD-d3b3a7975840543…
OSBotify Jul 7, 2021
311e86a
Merge branch 'main' into update-staging-from-main
Jul 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/actions/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,30 @@ class GithubUtils {
));
}

/**
* Fetch all pull requests given a list of PR numbers.
*
* @param {Array<Number>} pullRequestNumbers
* @returns {Promise}
*/
static fetchAllPullRequests(pullRequestNumbers) {
const oldestPR = _.first(_.sortBy(pullRequestNumbers));
return this.octokit.paginate(this.octokit.pulls.list, {
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
state: 'all',
sort: 'created',
direction: 'desc',
per_page: 100,
}, ({data}, done) => {
if (_.find(data, pr => pr.number === oldestPR)) {
done();
}
return data;
})
.then(prList => _.filter(prList, pr => _.contains(pullRequestNumbers, pr.number)));
}

/**
* Create comment on pull request
*
Expand Down
24 changes: 24 additions & 0 deletions .github/actions/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,30 @@ class GithubUtils {
));
}

/**
* Fetch all pull requests given a list of PR numbers.
*
* @param {Array<Number>} pullRequestNumbers
* @returns {Promise}
*/
static fetchAllPullRequests(pullRequestNumbers) {
const oldestPR = _.first(_.sortBy(pullRequestNumbers));
return this.octokit.paginate(this.octokit.pulls.list, {
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
state: 'all',
sort: 'created',
direction: 'desc',
per_page: 100,
}, ({data}, done) => {
if (_.find(data, pr => pr.number === oldestPR)) {
done();
}
return data;
})
.then(prList => _.filter(prList, pr => _.contains(pullRequestNumbers, pr.number)));
}

/**
* Create comment on pull request
*
Expand Down
24 changes: 24 additions & 0 deletions .github/actions/getMergeCommitForPullRequest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,30 @@ class GithubUtils {
));
}

/**
* Fetch all pull requests given a list of PR numbers.
*
* @param {Array<Number>} pullRequestNumbers
* @returns {Promise}
*/
static fetchAllPullRequests(pullRequestNumbers) {
const oldestPR = _.first(_.sortBy(pullRequestNumbers));
return this.octokit.paginate(this.octokit.pulls.list, {
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
state: 'all',
sort: 'created',
direction: 'desc',
per_page: 100,
}, ({data}, done) => {
if (_.find(data, pr => pr.number === oldestPR)) {
done();
}
return data;
})
.then(prList => _.filter(prList, pr => _.contains(pullRequestNumbers, pr.number)));
}

/**
* Create comment on pull request
*
Expand Down
24 changes: 24 additions & 0 deletions .github/actions/getReleaseBody/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,30 @@ class GithubUtils {
));
}

/**
* Fetch all pull requests given a list of PR numbers.
*
* @param {Array<Number>} pullRequestNumbers
* @returns {Promise}
*/
static fetchAllPullRequests(pullRequestNumbers) {
const oldestPR = _.first(_.sortBy(pullRequestNumbers));
return this.octokit.paginate(this.octokit.pulls.list, {
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
state: 'all',
sort: 'created',
direction: 'desc',
per_page: 100,
}, ({data}, done) => {
if (_.find(data, pr => pr.number === oldestPR)) {
done();
}
return data;
})
.then(prList => _.filter(prList, pr => _.contains(pullRequestNumbers, pr.number)));
}

/**
* Create comment on pull request
*
Expand Down
24 changes: 24 additions & 0 deletions .github/actions/isPullRequestMergeable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,30 @@ class GithubUtils {
));
}

/**
* Fetch all pull requests given a list of PR numbers.
*
* @param {Array<Number>} pullRequestNumbers
* @returns {Promise}
*/
static fetchAllPullRequests(pullRequestNumbers) {
const oldestPR = _.first(_.sortBy(pullRequestNumbers));
return this.octokit.paginate(this.octokit.pulls.list, {
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
state: 'all',
sort: 'created',
direction: 'desc',
per_page: 100,
}, ({data}, done) => {
if (_.find(data, pr => pr.number === oldestPR)) {
done();
}
return data;
})
.then(prList => _.filter(prList, pr => _.contains(pullRequestNumbers, pr.number)));
}

/**
* Create comment on pull request
*
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/isStagingDeployLocked/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ inputs:
outputs:
IS_LOCKED:
description: Whether or not the open StagingDeployCash issue is locked.
NUMBER:
description: StagingDeployCash issue number
runs:
using: 'node12'
main: 'index.js'
28 changes: 27 additions & 1 deletion .github/actions/isStagingDeployLocked/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ const GithubUtils = __nccwpck_require__(7999);

const run = function () {
return GithubUtils.getStagingDeployCash()
.then(({labels}) => {
.then(({labels, number}) => {
console.log(`Found StagingDeployCash with labels: ${_.pluck(labels, 'name')}`);
core.setOutput('IS_LOCKED', _.contains(_.pluck(labels, 'name'), '🔐 LockCashDeploys 🔐'));
core.setOutput('NUMBER', number);
})
.catch((err) => {
console.warn('No open StagingDeployCash found, continuing...', err);
core.setOutput('IS_LOCKED', false);
core.setOutput('NUMBER', 0);
});
};

Expand Down Expand Up @@ -300,6 +302,30 @@ class GithubUtils {
));
}

/**
* Fetch all pull requests given a list of PR numbers.
*
* @param {Array<Number>} pullRequestNumbers
* @returns {Promise}
*/
static fetchAllPullRequests(pullRequestNumbers) {
const oldestPR = _.first(_.sortBy(pullRequestNumbers));
return this.octokit.paginate(this.octokit.pulls.list, {
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
state: 'all',
sort: 'created',
direction: 'desc',
per_page: 100,
}, ({data}, done) => {
if (_.find(data, pr => pr.number === oldestPR)) {
done();
}
return data;
})
.then(prList => _.filter(prList, pr => _.contains(pullRequestNumbers, pr.number)));
}

/**
* Create comment on pull request
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ const GithubUtils = require('../../libs/GithubUtils');

const run = function () {
return GithubUtils.getStagingDeployCash()
.then(({labels}) => {
.then(({labels, number}) => {
console.log(`Found StagingDeployCash with labels: ${_.pluck(labels, 'name')}`);
core.setOutput('IS_LOCKED', _.contains(_.pluck(labels, 'name'), '🔐 LockCashDeploys 🔐'));
core.setOutput('NUMBER', number);
})
.catch((err) => {
console.warn('No open StagingDeployCash found, continuing...', err);
core.setOutput('IS_LOCKED', false);
core.setOutput('NUMBER', 0);
});
};

Expand Down
7 changes: 3 additions & 4 deletions .github/actions/markPullRequestsAsDeployed/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ inputs:
description: "Check if deploying to production"
required: false
default: "false"
IS_CHERRY_PICK:
description: "Did this deploy happen as part of a cherry-pick?"
required: false
default: "false"
STAGING_DEPLOY_NUMBER:
description: "StagingDeployCash issue number"
required: true
DEPLOY_VERSION:
description: "The app version in which the pull requests were deployed"
required: true
Expand Down
Loading