Commit graph

51 commits

Author SHA1 Message Date
Josh Gross
d319f8f5b5
Avoid setting baseUrl to undefined when input is not provided 2023-11-17 11:59:30 -05:00
Josh Gross
5349cf9965
Merge branch 'main' into joshmgross/node-20 2023-11-08 09:45:02 -05:00
Viktorlo
044ebbb945
Merge branch 'main' into export-types 2023-11-08 11:14:47 +01:00
Rob Anderson
ea121b86f9
add base-url option 2023-10-20 10:16:28 -06:00
Josh Gross
84ab08fe8b
Update dependencies and use Node 20 2023-10-11 16:11:59 -04:00
Viktor Lott
56bdc6c318 Expose async-function argument type
We are exposing the async-function argument type for jsDoc
type declaration support. This means that we now could do:
"npm i -D @types/github-script@github:actions/github-script"
and the add:
"@param {import('@types/github-script').AsyncFunctionArguments}
AsyncFunctionArguments".

This could obviously be done in other ways too, like using
"@typed-actions/github-script" instead. But it seems better
to use the actual source repository instead of a third-party
library to import the type declaration.
2023-07-03 13:56:46 +02:00
Martijn Pieters
8d9f8fc050
Fix null handling, covered by integration tests
`core.getInput()` always returns a string, so testing for 'not null'
is always true. This then leads to previews set to an array with
a single empty string, breaking accept-header output.

Updated eslint rules should help avoid this issue in future, and new
integration tests verify that the github client configuration now
reflects the intended configuration options.
2023-04-04 22:11:47 +01:00
Martijn Pieters
78f623b2da
Add @octokit/plugin-request-log, to produce debug output for requests
Without this plugin, the debug setting is, effectively, meaningless as
none of the existing plugins produce log output.

The plugin writes the request options to octokit.log.debug, and response
times as *method path - status in ...ms* to octokit.log.info.
2023-03-30 16:00:56 +01:00
Dan Michael O. Heggø
f34078a491
Make node-fetch available 2023-01-07 00:38:19 +01:00
Luke Tomlinson
8445ca871a Fix overriding request options from @actions/github 2022-09-30 15:15:18 -04:00
Luke Tomlinson
ac0c7cb50b Core.debug 2022-09-26 11:23:56 -04:00
Luke Tomlinson
eb0f407f1a Whitespace 2022-09-23 16:30:17 -04:00
Luke Tomlinson
3faaff918c PR feedback 2022-09-23 16:16:31 -04:00
Luke Tomlinson
660d907517 refactor and add tests for retry options 2022-09-23 11:45:39 -04:00
Luke Tomlinson
355d8955d8 Add retry plugin 2022-09-23 10:56:21 -04:00
Bhavana Konchada
6456c11da2 Adding @actions/exec
adding @actions/exec

adding @qctions/exec

updated readme.md

Added license file for @actions/exec
2021-08-11 13:51:41 -07:00
Jonathan Clem
1ef7fd09ca
Remove require search fallback 2021-04-21 18:13:51 -04:00
Jonathan Clem
a49bf6b2cd
Search the cwd first, then existing module paths 2021-04-21 18:10:10 -04:00
Jonathan Clem
256da4ea4d
Update src/wrap-require.ts
Co-authored-by: Josh Gross <joshmgross@github.com>
2021-04-21 17:46:09 -04:00
Jonathan Clem
b0e12e725b
Add Webpack comment vis-a-vis eval 2021-04-21 17:12:33 -04:00
Jonathan Clem
7e12bd7395
Call resolve, then require 2021-04-21 17:10:11 -04:00
Jonathan Clem
d37f92ff11
Test eval 2021-04-21 17:06:36 -04:00
Jonathan Clem
f57c84a8e8
Try global.module 2021-04-21 17:04:41 -04:00
Jonathan Clem
ade5cea985
Use concat for paths 2021-04-21 17:02:53 -04:00
Jonathan Clem
c1c139b0ab
Add a catch to support requiring installed modules 2021-04-21 16:58:37 -04:00
Jonathan Clem
83c92d6511
Rename nativeRequire to __original_require__ 2021-04-21 16:41:31 -04:00
Jonathan Clem
c416f56b51
Pass nativeRequire, as well 2021-04-21 16:40:48 -04:00
Jonathan Clem
75e3a5b35d
Move wrapRequire to its own module 2021-04-21 16:37:24 -04:00
Jonathan Clem
f4e5d39c2a
Use a proxy to support relative requires 2021-04-21 16:32:28 -04:00
Jonathan Clem
ddba1b195d
Use non-Webpack-require in evaluated scripts 2021-04-21 16:16:20 -04:00
Matisse Hack
8920b9a6ed
Add the @actions/glob package 2021-03-29 16:06:39 -07:00
Jonathan Clem
4789b35ac3
Add pull-request-test workflow 2020-06-04 14:11:25 -04:00
Jason Macgowan
b2c461f3a2
Include @actions/io 2020-05-18 15:56:00 -04:00
Jonathan Clem
3037861304
Add ESLint and Prettier 2020-05-18 11:28:54 -04:00
Jonathan Clem
8982156783
Add core to the script context 2020-03-24 13:57:27 -04:00
Jonathan Clem
493b839630
Remove output log 2020-02-28 09:09:06 -05:00
Jonathan Clem
904b439f45
Set output 2020-02-28 09:07:52 -05:00
Jonathan Clem
1e169ae445
Remove result temporarily 2020-02-28 09:06:03 -05:00
Jonathan Clem
62fdca610c
Remove log result 2020-02-28 08:54:30 -05:00
Jonathan Clem
26ee3d2d09
Test log result 2020-02-28 08:52:13 -05:00
Jonathan Clem
be5d094bf9
Remove async from callAsyncFunction 2020-02-28 08:51:05 -05:00
Jonathan Clem
3758c2b05b
Add result log 2020-02-28 08:50:21 -05:00
Jonathan Clem
317a0746d1
Remove core again for now 2020-02-28 08:49:25 -05:00
Jonathan Clem
d73e75dea8
Separate integration workflow 2020-02-27 17:52:43 -05:00
Jonathan Clem
7afad1e364
Add core 2020-02-27 17:43:18 -05:00
Jonathan Clem
38e3ffe4c6
Add tests for the AsyncFunction 2020-02-27 17:27:49 -05:00
Jonathan Clem
2adb4f3620
Use TypeScript 2020-01-08 15:17:10 -05:00
Jonathan Clem
99889c25e0
Fix result-enoding/encoding typo 2020-01-08 14:53:04 -05:00
Jonathan Clem
9abe67e516
Encode result into output 2020-01-08 14:40:07 -05:00
Jonathan Clem
622ce3121a
Accept json or string encoding of result 2020-01-08 14:39:09 -05:00