<feed xmlns='http://www.w3.org/2005/Atom'>
<title>janschoenfeld/checkout.git/src/github-api-helper.ts, branch users/vmjoseph/no-proxy</title>
<subtitle>Action for checking out a repo
</subtitle>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/'/>
<entry>
<title>Inject GitHub host to be able to clone from another GitHub instance (#922)</title>
<updated>2022-09-26T16:34:52+00:00</updated>
<author>
<name>Peter Murray</name>
<email>681306+peter-murray@users.noreply.github.com</email>
</author>
<published>2022-09-26T16:34:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=e33cfa574212e8722034156757f8383979e76cb9'/>
<id>e33cfa574212e8722034156757f8383979e76cb9</id>
<content type='text'>
* Adding the ability to specify the GitHub Server URL and allowing for it to differ from the Actions workflow host

* Adding tests for injecting the GitHub URL

* Addressing code review comments for PR #922</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Adding the ability to specify the GitHub Server URL and allowing for it to differ from the Actions workflow host

* Adding tests for injecting the GitHub URL

* Addressing code review comments for PR #922</pre>
</div>
</content>
</entry>
<entry>
<title>update dev dependencies and react to new linting rules (#611)</title>
<updated>2021-10-19T14:52:57+00:00</updated>
<author>
<name>eric sciple</name>
<email>ericsciple@users.noreply.github.com</email>
</author>
<published>2021-10-19T14:52:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=5ee37f14842852931cb987e86d63ffb679abd036'/>
<id>5ee37f14842852931cb987e86d63ffb679abd036</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing `await`s (#379)</title>
<updated>2020-11-03T14:44:09+00:00</updated>
<author>
<name>Johannes Schindelin</name>
<email>dscho@github.com</email>
</author>
<published>2020-11-03T14:44:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=2267990cd9bb5381259f49c66a8476d75f41e36e'/>
<id>2267990cd9bb5381259f49c66a8476d75f41e36e</id>
<content type='text'>
* auth-helper: properly await replacement of the token value in the config

After writing the `.extraheader` config, we manually replace the token
with the actual value. This is done in an `async` function, but we were
not `await`ing the result.

In our tests, this commit fixes a flakiness we observed where
`remote.origin.url` sometimes (very rarely, actually) is not set for
submodules. Our interpretation is that the configs are in the process of
being rewritten with the correct token value _while_ another `git
config` that wants to set the `insteadOf` value is reading the config,
which is currently empty.

A more idiomatic way to fix this in Typescript would use
`Promise.all()`, like this:

      await Promise.all(
        configPaths.map(async configPath =&gt; {
          core.debug(`Replacing token placeholder in '${configPath}'`)
          await this.replaceTokenPlaceholder(configPath)
        })
      )

However, during review of https://github.com/actions/checkout/pull/379
it was decided to keep the `for` loop in the interest of simplicity.

Reported by Ian Lynagh.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;

* downloadRepository(): await the result of recursive deletions

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;

* Ask ESLint to report floating Promises

This rule is quite helpful in avoiding hard-to-debug missing `await`s.

Note: there are two locations in `src/main.ts` that trigger warnings:
the `run()` and the `cleanup()` function are called without `await` and
without any `.catch()` clause.

In the initial version of https://github.com/actions/checkout/pull/379,
this was addressed by adding `.catch()` clauses. However, it was
determined that this is boilerplate code that will need to be fixed in a
broader way.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;

* Rebuild

This trick was brought to you by `npm ci &amp;&amp; npm run build`. Needed to
get the PR build to pass.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* auth-helper: properly await replacement of the token value in the config

After writing the `.extraheader` config, we manually replace the token
with the actual value. This is done in an `async` function, but we were
not `await`ing the result.

In our tests, this commit fixes a flakiness we observed where
`remote.origin.url` sometimes (very rarely, actually) is not set for
submodules. Our interpretation is that the configs are in the process of
being rewritten with the correct token value _while_ another `git
config` that wants to set the `insteadOf` value is reading the config,
which is currently empty.

A more idiomatic way to fix this in Typescript would use
`Promise.all()`, like this:

      await Promise.all(
        configPaths.map(async configPath =&gt; {
          core.debug(`Replacing token placeholder in '${configPath}'`)
          await this.replaceTokenPlaceholder(configPath)
        })
      )

However, during review of https://github.com/actions/checkout/pull/379
it was decided to keep the `for` loop in the interest of simplicity.

Reported by Ian Lynagh.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;

* downloadRepository(): await the result of recursive deletions

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;

* Ask ESLint to report floating Promises

This rule is quite helpful in avoiding hard-to-debug missing `await`s.

Note: there are two locations in `src/main.ts` that trigger warnings:
the `run()` and the `cleanup()` function are called without `await` and
without any `.catch()` clause.

In the initial version of https://github.com/actions/checkout/pull/379,
this was addressed by adding `.catch()` clauses. However, it was
determined that this is boilerplate code that will need to be fixed in a
broader way.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;

* Rebuild

This trick was brought to you by `npm ci &amp;&amp; npm run build`. Needed to
get the PR build to pass.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>fix default branch for .wiki and when using ssh (#284)</title>
<updated>2020-06-18T14:20:33+00:00</updated>
<author>
<name>eric sciple</name>
<email>ericsciple@users.noreply.github.com</email>
</author>
<published>2020-06-18T14:20:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=b8cb77a290d6bf1500962ef3fdb92249d45b0ac6'/>
<id>b8cb77a290d6bf1500962ef3fdb92249d45b0ac6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>determine default branch (#278)</title>
<updated>2020-06-16T17:41:01+00:00</updated>
<author>
<name>eric sciple</name>
<email>ericsciple@users.noreply.github.com</email>
</author>
<published>2020-06-16T17:41:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=17570e7adbcebf582c615bdac7f07339940d90e3'/>
<id>17570e7adbcebf582c615bdac7f07339940d90e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>consume new @actions/github for GHES support (#236)</title>
<updated>2020-05-07T16:11:11+00:00</updated>
<author>
<name>eric sciple</name>
<email>ericsciple@users.noreply.github.com</email>
</author>
<published>2020-05-07T16:11:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=e55727d418e99c52db29fa5e822f0eb64ce9b1ca'/>
<id>e55727d418e99c52db29fa5e822f0eb64ce9b1ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>changes to support ghes alpha release (#199)</title>
<updated>2020-03-25T19:12:22+00:00</updated>
<author>
<name>eric sciple</name>
<email>ericsciple@users.noreply.github.com</email>
</author>
<published>2020-03-25T19:12:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=18fd0bc59958dd73f02ac7a98cb5995f83e6f1de'/>
<id>18fd0bc59958dd73f02ac7a98cb5995f83e6f1de</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add input persist-credentials (#107)</title>
<updated>2019-12-12T18:49:26+00:00</updated>
<author>
<name>eric sciple</name>
<email>ericsciple@users.noreply.github.com</email>
</author>
<published>2019-12-12T18:49:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=ca3a763d5ed9e04331c8a6aea85ddabcb3a6aa4d'/>
<id>ca3a763d5ed9e04331c8a6aea85ddabcb3a6aa4d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fallback to REST API to download repo (#104)</title>
<updated>2019-12-12T18:16:16+00:00</updated>
<author>
<name>eric sciple</name>
<email>ericsciple@users.noreply.github.com</email>
</author>
<published>2019-12-12T18:16:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dieschoenewolke.de/janschoenfeld/checkout.git/commit/?id=25ac60e43ded675f082e10f444b0ad95ea43622e'/>
<id>25ac60e43ded675f082e10f444b0ad95ea43622e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
