Skip to content

Commit

Permalink
feat: upstream merge (#22)
Browse files Browse the repository at this point in the history
* update screenshot

* temporary remove NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_API_KEY from deployment values

* Syncronize dev ENVs presets (blockscout#2093)

* base functionality

* update presets

* update docs

* change counter labels to H2

* update evn

* return back wallet validation

* add secret

* update tests

* Changing the description for flatteners during the verification

Replaced POA flattener with instructions on Hardhat flattener

* update screenshots

* add mixpanel events

* implement rating change

* disable wallet validation

* RPC tests (blockscout#2101)

* test for degraded block details tab

* fix marketplace app test

* more tests for degraded block

* test for address degradation view

* delete gas used utilization for some rollups

* remove unnecessary style

* update tests

* moved the use of the hook to another place

* dapps lazy loading

* fix svg icon

* change toast margins

* move csp for marketplace to separate file

* rename var

* move favorite icon to separate file

* remove padding on last element

* fix rating records duplication

* add try-catch

* fix tooltip width

* update screenshots with toast

* fix style of menu tooltip

* add tests for useRatings hook

* Block Countdown page (blockscout#2091)

* page placeholder

* block info snippet

* add actions for calendar buttons

* add timer

* add redirect when timer runs out

* add redirect from not found block page

* block countdown index page

* link to countdown index page

* add link to search suggest

* add URL to an event

* add link to block countdown on mobile

* tests

* add countdown text to search result page

* update margins

* show block countdown when search results are not empty

* Token name is shortened incorrectly on CSV export page (blockscout#2079)

Fixes blockscout#2043

* Update navigation menu styles (blockscout#2094)

Fixes blockscout#2028

* Show error if contract method has invalid data structure (blockscout#2087)

* show error if contract method has invalid data structure

* convert address to checksum when reading from contract method

* Public tags design updates (blockscout#2078)

* update styles of name tags

* update screenshots

* update screenshots

* fix tests

* update screenshot

* update screenshots

* chore: remove trailing spaces and add newline at end of file

* Update Address.pw.tsx_default_degradation-view-1.png

* remove action button experiment

* lock marketplace action bar at the top of the page

* add get gas button

* Add tooltip with full date on "age" fields

* Stats: give emphasis to incomplete data days (blockscout#2085)

* draw dotted line for incomplete data

* add title to tooltip

* refactor parts into separate components

* move utils

* refactor render logic of tooltip

* more refactoring

* fix issue in safari

* tweaks

* test

* make an approximation as a straight line.

* update screenshots

* fix the tooltip hiding behavior.

* add prop for disabling animation

* remove the second shadow

* fix margins

* Update ENVS.md

* replace chain id at init

* change min number of txs

* change texts

* update screenshots

* make usd_threshold required

* move get gas button to a separate file and refactor

* Don't retry SolidityScan resources (blockscout#2110)

Fixes blockscout#2104

* change button text

* MUD

* design fixes 1

* mud mobile views

* design fixes and tests

* env fix

* remove get gas button from address page

* replace '--chmod=+x' with '--chmod=755' for 'COPY' instructions in Dockerfile to be podman-friendly

* remove usd_threshold prop

* move get gas button to top bar

* add test

* Update ENVS.md

* design fixes and tests 2

* change verification type and validator title for Arbitrum and zkEvm

* fix review variables

* remove marketplace env vars from deployment values

* fix empty state

* return envs back to review and remove secret from review-l2

* add preset selection for review-l2

* remove NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL

* Fix: using `===` to check `NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE`

* use `=== 'false' ? false : true`  to keep compatibility

Co-authored-by: tom goriunov <[email protected]>

* add item to the table of contents

* Support hiding "REST API" and "GraphQL" links from navigation

Fixes blockscout#2127

* fix tests

* fix ETH value tooltip in contract read result

* fis stats on home page when there is no gas info

* fix time ago increment hook

* Update verification methods in the UI

* update foundary template

* mud fixes

* update stats icon and fix horizontal menu popover position

* mud review fixes

* fix initial loading with existing search query

* fix deletion of other query params

* fix nesting

* return 404 for graphIQl page if the features is disabled

* hide tooltip when modal is open

* replace Text with Box

* display ens in tx interpretation

* fix marketplace sorting display

* arbitrum latest batches and deposits

* New homepage layout loading bug on mobile

Fixes blockscout#2137

* return maxW for Layout Container

* add garnet to L2 demo workflow

* improve loading

* add test

* display address name and tag in tx interpretation

* add arbitrum batch DA

* process unexpected response from solidityscan

* display ens on wallet button and in menu

* add signers mobile view

* mud design fixes

* add tests for wallet menu

* add tests for loading state

* check redirect only on search bar submit

* Hide toggle "Show external call data" when data is not available (blockscout#2158)

Fixes blockscout#2103

* UML diagram caching (blockscout#2157)

Fixes blockscout#2124

* ENS: add offchain support and fix bugs (blockscout#2156)

* ens: add offchain support and fix bugs

Fixes blockscout#2136

* fix ts

* Pack Chakra theme into NPM package (blockscout#2115)

* build package

* update version

* fix name collision

* add workflow

* add article

* Cancel previous search queries when typing

Fixes blockscout#2149

* fix web3modal csp issue

* fix time ago

* fix typo

* Display shortened address for proxy contracts

* review fixes

* Arbitrum: tx page - add L1 tx

* Add support for zkSync smart-contracts (blockscout#2173)

* additional form fields

* pass optimization modes from API and handle single verification method case

* display zk contract info

* Top accounts: show public tag next to address (blockscout#2163)

* Public tags: remove references to old tags from the code

Fixes blockscout#1894

* show name tag of proxy contracts in list views

* ENS: add offchain support and fix bugs (blockscout#2156)

* ens: add offchain support and fix bugs

Fixes blockscout#2136

* fix ts

* fix condition

* Using wildcard version of blockscout helm for review envs

* SolidityScan API response schema validation (blockscout#2190)

* add schema validation to solidity scan report resource

* report invalid API schema event to prometheus

* use bens api for domain query

* rename components

* update tests

* update snapshots

* add rating count

* put the airtable api key back

* Metadata: show Notes (blockscout#2191)

Fixes blockscout#2174

* Mixpanel - add Theme parameter to Page view event (blockscout#2193)

Fixes blockscout#2126

* Limit page content width (blockscout#2197)

* limit content width for horizontal menu layout

* limit content width for vertical menu layout

* limit amout of tabs in routed tabs skeleton

* fix width of error screen

* add NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL L2 review envs

* add tests

* fixes

* fix tests

* move content wrapper to render fixture

* update screenshots and fix tests

* Celo: Block views customizations (blockscout#2185)

* show flag next to epoch block

* block view customizations

* add hint with link

* display block epoch transfers

* show epoch election reward types

* show reward details

* show base fee token from API

* display current epoch on main page

* mobile view

* tests

* add infinite scroll loading to reward details resource

* update useApiQuery options

* update screenshots

* update layout of reward details on desktop

* change hints of block epoch reward distribution

* add copy link button

* update snapshots

* reuse CopyToClipboard component

* remove env var

* update snapshot

* truncate app url

* fix param default value

* add share button to app modal and update colors

* update snapshots

* support "alertStatus" field in address metadata payload

* add support of raw string inputs for json-like config ENVs

* fix tests

* fix note metadata alert on mobile

* remove isMounted check for AddressDetails component

* fix address blocks validated

* fix arbitrum tx message info

* fix csp when default color mode is dark

* remove AddressCoinBalanceHistoryChartOld

* remove unnecessary sx props

* OP rollup: Batch view and DA fields (blockscout#2210)

* tx batches view adjustments

* blocks and txs tabs of batch page

* batch details

* add batch info to block details view

* display batch blob data in EIP-4844 and calldata container

* display batch blob data in celestia container

* tests

* add optimism_celestia preset

* review fixes

* update screenshots

* Main search vs search on page (blockscout#2212)

Fixes blockscout#2131

* Stats Update: secondary token icon (blockscout#2206)

Fixes blockscout#1849

* NFT collection view: animation/image (blockscout#2202)

Fixes blockscout#2196

* Hero banner: more customizations (blockscout#2199)

* add ENVs to configure typefaces

* migrate current evns to new config

* add env to configure the banner border

* make button variants for hero and header

* add customization for hero button

* tests for new button variants

* envs for demo

* update button styles and tests

* add tests for banner

* remove unnecessary test

* remove demo values

* move optimism mocks to separate folder

* remove optimization fields for zkSync contract verification

* add mud release version

* Fix the "Scroll to active tab" behavior on mobile devices (blockscout#2214)

* fix scroll left position calculation when changing the tab

* do not scroll if the selected tab is on the first page

* fix docs

* fix tests

* Bump micromatch from 4.0.5 to 4.0.8

Bumps [micromatch](https:/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https:/micromatch/micromatch/releases)
- [Changelog](https:/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Favicon generator: escape special characters in master url (blockscout#2225)

favicon generator: escape special characters in master url

* Bump webpack from 5.93.0 to 5.94.0 in /theme (blockscout#2224)

Bumps [webpack](https:/webpack/webpack) from 5.93.0 to 5.94.0.
- [Release notes](https:/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.93.0...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Next.js compliant command for production builds (blockscout#2219)

* feat: Vercel compliant command for prod builds

* feat: simplify to a single command, rename command

Also included the script to download assets.

* fix: exclude vercel injected env vars

Vercel injects a number of environment variables, that in some cases can result in run time errors when the app is reading from envs.js. Exclude these.

* Bump axios from 1.6.2 to 1.7.7 (blockscout#2226)

Bumps [axios](https:/axios/axios) from 1.6.2 to 1.7.7.
- [Release notes](https:/axios/axios/releases)
- [Changelog](https:/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.6.2...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump micromatch from 4.0.7 to 4.0.8 in /theme (blockscout#2227)

Bumps [micromatch](https:/micromatch/micromatch) from 4.0.7 to 4.0.8.
- [Release notes](https:/micromatch/micromatch/releases)
- [Changelog](https:/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.7...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Public tags: dedicated tag page  (blockscout#2217)

* page layout

* text with results number

* fix ts

* tests

* add quotes to network id env value

* fix null balance and result num

* fix mobile layout

* Home page stats config (blockscout#2221)

Fixes blockscout#2143

* Bump path-to-regexp from 6.2.1 to 8.1.0 (blockscout#2228)

* Bump path-to-regexp from 6.2.1 to 8.0.0

Bumps [path-to-regexp](https:/pillarjs/path-to-regexp) from 6.2.1 to 8.0.0.
- [Release notes](https:/pillarjs/path-to-regexp/releases)
- [Changelog](https:/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](pillarjs/path-to-regexp@v6.2.1...v8.0.0)

---
updated-dependencies:
- dependency-name: path-to-regexp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* bump path-to-regexp up to v8.1.0

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tom <[email protected]>

* Bump up packages versions (blockscout#2229)

* Bump up packages vertions

* fix wagmi config, wc csp policy and id type in account resources

* Display proxy pattern info on contract page (blockscout#2230)

* Display proxy pattern info in UI

Fixes blockscout#2209

* update texts

* [skip ci] adjust alert condition

* Long `Call` field value in `Decoded input data` breaks adaptive UI on mobile (blockscout#2239)

Fixes blockscout#2216

* Support new CSV export limit in the UI (blockscout#2237)

Fixes blockscout#2215

* Display checksum-ed addresses (blockscout#2240)

Fixes blockscout#2222

* GasHawk integration (blockscout#2232)

* GasHawk integration

Fixes blockscout#2205

* change link url

* Pass the file path when verifying a multi-part contract (blockscout#2208)

Fixes blockscout#2207

* Change max width of page content

* Tx interpretation: change margins between elements (blockscout#2241)

Paddings: icons + amount/text in interpretation

Fixes blockscout#1997

* fix paddings

* add blackfort validators

* Arbitrum: handle case with partial data in latest deposits on main page (blockscout#2244)

* Arbitrum: handle case with partial data in latest deposits on main page

Fixes blockscout#2243

* [skip ci] roll back arbitrum envs

* up nextjs version

* Merge Upstream main

* Fix Build errors

* Remove build errors

* Small corrections

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Max Alekseenko <[email protected]>
Co-authored-by: tom <[email protected]>
Co-authored-by: isstuev <[email protected]>
Co-authored-by: NikitaSavik <[email protected]>
Co-authored-by: Igor Stuev <[email protected]>
Co-authored-by: Or Noyman <[email protected]>
Co-authored-by: Cheng Wei <[email protected]>
Co-authored-by: Revolution1 <[email protected]>
Co-authored-by: Nick Zenchik <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: omnus <[email protected]>
  • Loading branch information
12 people authored Oct 10, 2024
1 parent 74f355a commit 1852d92
Show file tree
Hide file tree
Showing 1,938 changed files with 44,739 additions and 21,432 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=xxx
NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY=xxx
NEXT_PUBLIC_AUTH0_CLIENT_ID=xxx
FAVICON_GENERATOR_API_KEY=xxx
NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY=xxx
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ const RESTRICTED_MODULES = {
{ name: '@chakra-ui/icons', message: 'Using @chakra-ui/icons is prohibited. Please use regular svg-icon instead (see examples in "icons/" folder)' },
{ name: '@metamask/providers', message: 'Please lazy-load @metamask/providers or use useProvider hook instead' },
{ name: '@metamask/post-message-stream', message: 'Please lazy-load @metamask/post-message-stream or use useProvider hook instead' },
{ name: 'playwright/TestApp', message: 'Please use render() fixture from test() function of playwright/lib module' },
{
name: '@chakra-ui/react',
importNames: [ 'Popover', 'Menu', 'useToast' ],
message: 'Please use corresponding component or hook from ui/shared/chakra component instead',
},
{
name: 'lodash',
message: 'Please use `import [package] from \'lodash/[package]\'` instead.',
},
],
patterns: [
'icons/*',
'!lodash/*',
],
};

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/chakra-npm-publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish Chakra theme package to NPM

on:
workflow_dispatch:
inputs:
version:
description: Package version
type: string
required: true
workflow_call:
inputs:
version:
description: Package version
type: string
required: true

jobs:
publish:
runs-on: ubuntu-latest
name: Publish package to NPM registry
permissions:
id-token: write

steps:
- name: Checkout repo
uses: actions/checkout@v4

# Also it will setup .npmrc file to publish to npm
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Update package version
run: |
cd ./theme
npm version ${{ inputs.version }}
- name: Build the package
run: |
cd ./theme
yarn
yarn build
- name: Publish to NPM registry
run: |
cd ./theme
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
116 changes: 116 additions & 0 deletions .github/workflows/copy-issues-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Copy issues labels to pull request

on:
workflow_dispatch:
inputs:
pr_number:
description: Pull request number
required: true
type: string
issues:
description: JSON encoded list of issue ids
required: true
type: string
workflow_call:
inputs:
pr_number:
description: Pull request number
required: true
type: string
issues:
description: JSON encoded list of issue ids
required: true
type: string

jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Find unique labels
id: find_unique_labels
uses: actions/github-script@v7
env:
ISSUES: ${{ inputs.issues }}
with:
script: |
const issues = JSON.parse(process.env.ISSUES);
const WHITE_LISTED_LABELS = [
'client feature',
'feature',
'bug',
'dependencies',
'performance',
'chore',
'enhancement',
'refactoring',
'tech',
'ENVs',
]
const labels = await Promise.all(issues.map(getIssueLabels));
const uniqueLabels = uniqueStringArray(labels.flat().filter((label) => WHITE_LISTED_LABELS.includes(label)));
if (uniqueLabels.length === 0) {
core.info('No labels found.\n');
return [];
}
core.info(`Found following labels: ${ uniqueLabels.join(', ') }.\n`);
return uniqueLabels;
async function getIssueLabels(issue) {
core.info(`Obtaining labels list for the issue #${ issue }...`);
try {
const response = await github.request('GET /repos/{owner}/{repo}/issues/{issue_number}/labels', {
owner: 'blockscout',
repo: 'frontend',
issue_number: issue,
});
return response.data.map(({ name }) => name);
} catch (error) {
core.error(`Failed to obtain labels for the issue #${ issue }: ${ error.message }`);
return [];
}
}
function uniqueStringArray(array) {
return Array.from(new Set(array));
}
- name: Update pull request labels
id: update_pr_labels
uses: actions/github-script@v7
env:
LABELS: ${{ steps.find_unique_labels.outputs.result }}
PR_NUMBER: ${{ inputs.pr_number }}
with:
script: |
const labels = JSON.parse(process.env.LABELS);
const prNumber = Number(process.env.PR_NUMBER);
if (labels.length === 0) {
core.info('Nothing to update.\n');
return;
}
for (const label of labels) {
await addLabelToPr(prNumber, label);
}
core.info('Done.\n');
async function addLabelToPr(prNumber, label) {
console.log(`Adding label to the pull request #${ prNumber }...`);
return await github.request('POST /repos/{owner}/{repo}/issues/{issue_number}/labels', {
owner: 'blockscout',
repo: 'frontend',
issue_number: prNumber,
labels: [ label ],
});
}
34 changes: 10 additions & 24 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ on:
push:
branches:
- main
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.husky/**'
- '.vscode/**'
- 'docs/**'
- 'jest/**'
- 'mocks/**'
- 'playwright/**'
- 'stubs/**'
- 'tools/**'
workflow_dispatch:

concurrency:
Expand All @@ -15,27 +25,3 @@ jobs:
name: Publish Docker image
uses: './.github/workflows/publish-image.yml'
secrets: inherit

deploy_main:
name: Deploy frontend
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: front
globalEnv: main
helmfileDir: deploy
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev
vaultRole: ci-dev
secrets: inherit

deploy_l2:
name: Deploy frontend (L2)
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: l2-optimism-goerli
globalEnv: optimism-goerli
helmfileDir: deploy
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev
vaultRole: ci-dev
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/deploy-review-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@ name: Deploy review environment (L2)

on:
workflow_dispatch:
inputs:
envs_preset:
description: ENVs preset
required: false
default: ""
type: choice
options:
- none
- arbitrum
- arbitrum_nova
- base
- celo_alfajores
- garnet
- gnosis
- eth
- eth_sepolia
- eth_goerli
- optimism
- optimism_celestia
- optimism_sepolia
- polygon
- rootstock
- stability
- zkevm
- zksync

jobs:
make_slug:
Expand All @@ -23,6 +48,7 @@ jobs:
uses: './.github/workflows/publish-image.yml'
with:
tags: ghcr.io/blockscout/frontend:review-${{ needs.make_slug.outputs.REF_SLUG }}
build_args: ENVS_PRESET=${{ inputs.envs_preset }}
secrets: inherit

deploy_review_l2:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/deploy-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@ name: Deploy review environment

on:
workflow_dispatch:
inputs:
envs_preset:
description: ENVs preset
required: false
default: ""
type: choice
options:
- none
- arbitrum
- arbitrum_nova
- base
- celo_alfajores
- garnet
- gnosis
- eth
- eth_sepolia
- eth_goerli
- optimism
- optimism_celestia
- optimism_sepolia
- polygon
- rootstock
- stability
- zkevm
- zksync

jobs:
make_slug:
Expand All @@ -23,6 +48,7 @@ jobs:
uses: './.github/workflows/publish-image.yml'
with:
tags: ghcr.io/blockscout/frontend:review-${{ needs.make_slug.outputs.REF_SLUG }}
build_args: ENVS_PRESET=${{ inputs.envs_preset }}
secrets: inherit

deploy_review:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ jobs:
label_description: Tasks in pre-release right now
secrets: inherit

# Temporary disable this step because it is broken
# There is an issue with building web3modal deps
upload_source_maps:
name: Upload source maps to Sentry
if: false
uses: './.github/workflows/upload-source-maps.yml'
secrets: inherit
20 changes: 15 additions & 5 deletions .github/workflows/project-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
issues: "[${{ github.event.issue.number }}]"
secrets: inherit

review_requested_issues:
pr_linked_issues:
name: Get issues linked to PR
runs-on: ubuntu-latest
if: ${{ github.event.pull_request && github.event.action == 'review_requested' }}
Expand Down Expand Up @@ -76,14 +76,24 @@ jobs:
return issues;
review_requested_tasks:
issues_in_review:
name: Update status for issues in review
needs: [ review_requested_issues ]
if: ${{ needs.review_requested_issues.outputs.issues }}
needs: [ pr_linked_issues ]
if: ${{ needs.pr_linked_issues.outputs.issues }}
uses: './.github/workflows/update-project-cards.yml'
secrets: inherit
with:
project_name: ${{ vars.PROJECT_NAME }}
field_name: Status
field_value: Review
issues: ${{ needs.review_requested_issues.outputs.issues }}
issues: ${{ needs.pr_linked_issues.outputs.issues }}

copy_labels:
name: Copy issues labels to pull request
needs: [ pr_linked_issues ]
if: ${{ needs.pr_linked_issues.outputs.issues }}
uses: './.github/workflows/copy-issues-labels.yml'
secrets: inherit
with:
pr_number: ${{ github.event.pull_request.number }}
issues: ${{ needs.pr_linked_issues.outputs.issues }}
11 changes: 10 additions & 1 deletion .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: Image tags
required: false
type: string
build_args:
description: Build-time variables
required: false
type: string
platforms:
description: Image platforms (you can specify multiple platforms separated by comma)
required: false
Expand All @@ -18,6 +22,10 @@ on:
description: Image tags
required: false
type: string
build_args:
description: Build-time variables
required: false
type: string
platforms:
description: Image platforms (you can specify multiple platforms separated by comma)
required: false
Expand Down Expand Up @@ -72,4 +80,5 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
${{ inputs.build_args }}
Loading

0 comments on commit 1852d92

Please sign in to comment.