839191211 days ago14 lines · 458 B| 1 | const PULL_REF_PREFIX = 'refs/pull/'; |
| 2 | |
| 3 | export function pullHeadRef(number |
| 4 | return `${PULL_REF_PREFIX}${ |
| 5 | } |
| 6 | |
| 7 | export function pullMergeRef(number |
| 8 | return `${PULL_REF_PREFIX}${ |
| 9 | } |
| 10 | |
| 11 | /** Ghost writes these itself; a client push may only touch them when it is the import that carries a repository's history over from GitHub. */ |
| 12 | export function isPullRef(ref |
| 13 | return ref.startsWith |
| 14 | } |