Skip to content

Commit b8094b7

Browse files
authored
Merge pull request #35 from ipshipyard/status-gateway
feat: allow customizing the gateway used for the commit status updates.
2 parents 6e1cd2f + 9ea9aef commit b8094b7

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## [1.6.0] - 2025-05-16
11+
12+
### Added
13+
14+
- Add optional `github-status-gw` input to allow for customizing the gateway used for the commit status updates.
15+
1016
## [1.5.0] - 2025-03-07
1117

1218
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The signing key and proof will be used as [inputs](#inputs) to the action.
8383
| `filebase-secret-key` | Filebase secret key | - |
8484
| `set-github-status` | Set GitHub commit status with build CID. Use "true" or "false" (as strings) | `'true'` |
8585
| `set-pr-comment` | Set PR comments with IPFS deployment information. Use "true" or "false" (as strings) | `'true'` |
86+
| `github-status-gw` | Gateway to use for the links in commit status updates (The green checkmark with the CID) | `'inbrowser.link'` |
8687
| `upload-car-artifact` | Upload and publish the CAR file on GitHub Action Summary pages | `'true'` |
8788
| `cluster-retry-attempts` | Number of retry attempts for IPFS Cluster uploads | `'5'` |
8889
| `cluster-timeout-minutes` | Timeout in minutes for each IPFS Cluster upload attempt | `'2'` |

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ inputs:
7777
description: 'Set GitHub commit status with build CID. Use "true" or "false" (as strings)'
7878
default: 'true'
7979
required: false
80+
github-status-gw:
81+
description: 'Gateway URL to use for the commit status target_url. Defaults to `inbrowser.link`'
82+
default: 'inbrowser.link'
83+
required: false
8084
set-pr-comment:
8185
description: 'Set PR comments with IPFS deployment information. Use "true" or "false" (as strings)'
8286
default: 'true'
@@ -327,7 +331,7 @@ runs:
327331
repo: context.repo.repo,
328332
sha: sha,
329333
state: 'success',
330-
target_url: `https://inbrowser.link/ipfs/${cid}`,
334+
target_url: `https://${{ inputs.github-status-gw }}/ipfs/${cid}`,
331335
description: `CID: ${cid}`,
332336
context: 'IPFS'
333337
});

0 commit comments

Comments
 (0)