MCPcopy
hub / github.com/peter-evans/create-pull-request / savePersistedAuth

Method savePersistedAuth

src/git-config-helper.ts:122–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 async savePersistedAuth(): Promise<void> {
123 const serverUrl = new URL(`https://${this.getGitRemote().hostname}`)
124 this.extraheaderConfigKey = `http.${serverUrl.origin}/.extraheader`
125 // Backup checkout@v6 credential files if they exist
126 await this.hideCredentialFiles()
127 // Save and unset persisted extraheader credential in git config if it exists
128 this.persistedExtraheaderConfigValue = await this.getAndUnset()
129 }
130
131 async restorePersistedAuth(): Promise<void> {
132 // Restore checkout@v6 credential files if they were backed up

Callers 1

createMethod · 0.95

Calls 3

getGitRemoteMethod · 0.95
hideCredentialFilesMethod · 0.95
getAndUnsetMethod · 0.95

Tested by

no test coverage detected