fulcrumgenomics/Fetch through merge-base
Fetch PR commits through the merge-base
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base-ref | The base ref or target branch in the workflow run. If empty or not defined, the `fallback-base-ref` input ref will be used. | no | ${{ github.base_ref }} |
| head-ref | The head ref or source branch in the workflow run. If empty or not defined, the `fallback-head-ref` input ref will be used. | no | ${{ github.head_ref }} |
| fallback-base-ref | The base ref to use when `base-ref` is empty or not defined. For example, when using `github.base_ref` for `base-ref`, and the workflow is not a `pull_request` or `pull_request_target`, then the `base-ref` is not defined, so this ref will be used. | no | main |
| fallback-head-ref | The head ref to use when `head-ref` is empty or not defined. For example, when using `github.head_ref` for `head-ref`, and the workflow is not a `pull_request` or `pull_request_target`, then the `head-ref` is not defined, so this ref will be used. | no | ${{ github.sha }} |
| deepen-length | The number of commits to increase from the tip of each base and ref history when `git merge-base` fails to find the common ancestor of the two commits. | no | 10 |
| fail-after | The number of attempts to deepen before the action fails. | no | 100 |
| working-directory | The working directory to switch to when runnign this action. | no | ./ |
| fallback-fetch-all | True to fetch all commits if number of attempts to deepen reaches its limit, false to fail the action. | no | false |
| enable-timing | True to emit per-step timings via fulcrumgenomics/gha-timer, false to skip the gha-timer setup step entirely. Set this to false in environments where installing gha-timer is undesirable (e.g. self-hosted runners with restricted egress). Accepted values are the strings 'true' and 'false'. | no | true |
Outputs
| name | description |
|---|---|
| base-ref | The base ref computed by the workflow run. This differs from the input base ref when the latter is empty and the fallback base ref is used. |
| head-ref | The head ref computed by the workflow run. This differs from the input head ref when the latter is empty and the fallback head ref is used. |
| ancestor-ref | The best common ancestor between the base and head references, or empty if none was found. |