mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 06:04:25 +01:00
@@ -26,24 +26,3 @@ module.exports = {
|
||||
getId,
|
||||
getToken
|
||||
}
|
||||
|
||||
// ;(async () => {
|
||||
// const repo = 'gitpear'
|
||||
// const url = `pear://d1672d338b8e24223cd0dc6c6b5e04ebabf091fc2b470204abdb98fa5fc59072/${repo}`
|
||||
// const commit = '1837a4bae8497f71fb8f01305c3ace1e3dedcdba'
|
||||
// const method = 'push'
|
||||
// const branch = 'test'
|
||||
// const data = `${branch}#${commit}`
|
||||
//
|
||||
// let payload
|
||||
// let npub
|
||||
//
|
||||
// payload = await getToken({ url, method, data })
|
||||
// npub = await getId({ payload, url, method, data })
|
||||
//
|
||||
// payload = await getToken({url, method: 'get-repos'})
|
||||
// npub = await getId({ payload, url, method: 'get-repos' })
|
||||
//
|
||||
// payload = await getToken({url, method: 'get-refs', data: { repo }})
|
||||
// npub = await getId({ payload, url, method: 'get-refs', data: { repo }})
|
||||
// })()
|
||||
|
||||
Reference in New Issue
Block a user