Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into node18-workflows
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/nodeCI.yml
  • Loading branch information
baruchiro committed Dec 10, 2024
2 parents 6ba98a8 + 28fd0e9 commit bba8db9
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 27 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/component-owners.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: prepare default version
run: npm run prepare:default
- name: Release to Github
uses: cycjimmy/semantic-release-action@v2
uses: cycjimmy/semantic-release-action@v4
id: semantic # Need an `id` for output variables
with:
semantic_version: 16.0.2
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Close stale issues and PRs'
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
ascending: true
days-before-close: 14
stale-issue-message: 'Issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
stale-pr-message: 'Pull request has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
close-issue-reason: 'not_planned'
exempt-issue-labels: 'not-stale'
exempt-pr-labels: 'not-stale'
4 changes: 2 additions & 2 deletions src/scrapers/leumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ async function fetchTransactions(page: Page, startDate: Moment): Promise<Transac
for (const accountId of accountsIds) {
if (accountsIds.length > 1) {
// get list of accounts and check accountId
await clickByXPath(page, 'xpath//*[contains(@class, "number") and contains(@class, "combo-inner")]');
await clickByXPath(page, `xpath//span[contains(text(), '${accountId}')]`);
await clickByXPath(page, 'xpath///*[contains(@class, "number") and contains(@class, "combo-inner")]');
await clickByXPath(page, `xpath///span[contains(text(), '${accountId}')]`);
}

accounts.push(await fetchTransactionsForAccount(page, startDate, removeSpecialCharacters(accountId)));
Expand Down
5 changes: 4 additions & 1 deletion src/scrapers/mizrahi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,12 @@ class MizrahiScraper extends BaseScraperWithBrowser<ScraperSpecificCredentials>
await waitUntilElementFound(this.page, `a[href*="${TRANSACTIONS_PAGE}"]`);
await this.page.$eval(`a[href*="${TRANSACTIONS_PAGE}"]`, (el) => (el as HTMLElement).click());

const accountNumberElement = await this.page.$('#dropdownBasic b');
const accountNumberElement = await this.page.$('#dropdownBasic b span');
const accountNumberHandle = await accountNumberElement?.getProperty('title');
const accountNumber = ((await accountNumberHandle?.jsonValue()) as string);
if (!accountNumber) {
throw new Error('Account number not found');
}

const response = await Promise.any(TRANSACTIONS_REQUEST_URLS.map(async (url) => {
const request = await this.page.waitForRequest(url);
Expand Down

0 comments on commit bba8db9

Please sign in to comment.