Federico Grandi
f7edecabb7
feat: add fetch input ( #423 )
...
* chore: add additional log notes
* feat: add `fetch` input
Ref #386
* fix: add warnings about not fetching
* docs: `fetch` input & large repos FAQ
* chore: fix typo
2022-08-22 19:26:22 +02:00
Federico Grandi
cbc4f17c16
fix: correct typo in error
2022-06-26 19:09:57 +00:00
Federico Grandi
0d52df43e8
fix: re-stage files after pulling ( #411 )
...
* fix: re-stage files after pulling
This should fix an issue that prevented changes from being committed
when `git pull --rebase --autostash` used.
Issue #406
* chore: mark pre-commit hook as executable
* fix: detect conflicts after pull
2022-06-26 20:58:34 +02:00
Federico Grandi
4c184a79ea
chore: bump simple-git ( #380 )
2022-03-18 11:22:57 +01:00
Federico Grandi
0b47528fc7
fix!: fail when there's an error while committing ( #376 )
2022-03-11 22:44:53 +01:00
Federico Grandi
0e4f5f6417
feat: add tag_push input and tag_pushed output ( #374 )
2022-03-11 19:01:06 +01:00
Federico Grandi
017fbd6dce
chore: lint source code
2022-01-23 23:13:35 +01:00
mcargille
bfbc660a1b
fix: add check to allow empty commits ( #352 )
...
* add check to allow empty commits if arg is set
* fix: target only the desired argument
* fix: add debug message
* fix: fix debug message
Co-authored-by: Federico Grandi <fgrandi30@gmail.com >
2022-01-23 23:05:54 +01:00
Federico Grandi
0e1feea77e
feat: add commit_long_sha output ( #349 )
2022-01-20 13:18:16 +01:00
Federico Grandi
a790c74dfe
fix: merge existing inputs into new new_branch input
2022-01-19 21:41:48 +01:00
Federico Grandi
d4d39927bf
fix!: don't switch branch unless explicitly told so
2021-12-09 18:35:35 +01:00
Federico Grandi
249b415d1b
chore: move io-related code to dedicated file
2021-12-09 18:13:17 +01:00
Federico Grandi
7d7466136c
fix!: remove pull_strategy
2021-12-03 21:44:12 +01:00
Federico Grandi
7392614f5c
feat!: add commit input ( #331 )
...
* fix!: remove `signoff` input
* feat: add `commit` input
2021-12-03 21:38:30 +01:00
Federico Grandi
7d94da29b1
feat: support new remote branch creation ( #329 )
...
* fix: don't pull on new branch creation
* fix: don't show useless errors on branch creation
* feat: add branch_mode input
* fix: properly exit after fialed input check
* docs(README): document new input
2021-12-03 19:42:39 +01:00
Federico Grandi
314739c46f
feat: add pull input, deprecate pull_strategy ( #294 )
...
* feat: add pull input and deprecate pull_strategy
* docs(README): update pull docs
* fix: fix DeepScan issue
* fix: minor formatting change
2021-09-30 09:33:32 +02:00
Federico Grandi
4d9c6e96c4
feat: add pathspec_error_handling input ( #280 )
...
* feat: add pathspec_error_handling input
* fix: show add/rm errors on same line
* docs(README): add docs for new input
2021-09-06 16:45:37 +02:00
Federico Grandi
5c82f36c45
Add commit_sha output ( #275 )
...
* feat: add commit_sha output
* docs(README): add docs for commit_sha
2021-08-24 12:10:46 +02:00
Federico Grandi
83f497690e
Custom committer support ( #264 )
...
* feat: add support for a custom committer
* chore: update build
* chore: remove redundant code
The author is correctly set by the git config (line 40)
* docs: add new feature docs
* docs(README): add example use of committer info
Closes #265
2021-08-24 11:45:20 +02:00
dependabot[bot]
b2ad943ed9
chore(deps): bump @actions/core from 1.2.7 to 1.3.0 ( #203 )
...
* chore(deps): bump @actions/core from 1.2.7 to 1.3.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core ) from 1.2.7 to 1.3.0.
- [Release notes](https://github.com/actions/toolkit/releases )
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md )
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core )
Signed-off-by: dependabot[bot] <support@github.com >
* feat: switch to YAML boolean for inputs
The parsing is now handled by `@actions/core` package
* docs(README): minor changes
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Federico Grandi <fgrandi30@gmail.com >
2021-05-24 16:45:13 +02:00
Federico Grandi
3cbcd603a6
fix: ditch actions-toolkit for outputs
2021-05-11 19:37:31 +02:00
Federico Grandi
2ef699642a
fix: double-set outputs to avoid issues
...
`actions-toolkit` should do that already, but I feel like this is hte easiest way to fix the issue.
Ref #189
2021-05-11 19:28:17 +02:00
Federico Grandi
5aac6ebaf9
chore(deps-dev): upgrade @vercel/ncc to 0.28.x
2021-05-11 11:15:42 +02:00
Federico Grandi
245f959e32
fix: drop require
2021-05-06 10:28:43 +02:00
Federico Grandi
c698699df7
feat: add default_author ( #181 )
...
* feat: add deafult_author and start using actions-toolkit
* fix: go back to @actions/core for logs
* chore: add debug after fetching user
* test: keep build not minified
* fix: don't use tools.exit
* fix: author_displayname
* fix: check github_token
* fix: back to minified builds
* fix: fetch email too
* fix: change option names
* docs: document changes
* docs: update "github-actions" example
2021-04-22 17:15:47 +02:00
Federico Grandi
5c12301e2f
fix: rely on string-argv for git arg parsing ( #180 )
...
* fix: switch to string-argv for git args parsing
* chore: fix debug messages for matchGitArgs
* docs: add paragraph about git args parsing
2021-04-21 22:08:30 +02:00
Federico Grandi
bc9a4cf987
fix: fix matchGitArgs ( #174 )
...
* fix: fix matchGitArgs
* fix: improve matchGitArgs
* chore: add ref in JSDoc
2021-04-16 08:15:25 +02:00
Federico Grandi
f4b07e6873
fix: improve git args parsing
2021-03-30 12:16:23 +02:00
Federico Grandi
f5554ef7f0
Add 'NO-PULL' feature ( #150 )
...
* feat(pull_strategy): add `NO-PULL` option
* fix: add additional NO-PULL debug log
2021-03-03 09:00:13 +01:00
Federico Grandi
267e04bd5b
chore: remove obsolete input from Input type
2021-01-16 17:14:41 +01:00
Federico Grandi
fab2511822
chore(deps): bump js-yaml
2021-01-16 16:57:37 +01:00
Dominik Schilling
9c056146c1
Use github.actor as default value for commit author ( #128 )
2021-01-16 16:03:32 +01:00
Federico Grandi
03660a0218
fix: don't try to fill author info when not needed
...
fix #126
2021-01-04 21:23:21 +01:00
Federico Grandi
a51640c51f
feat: support git push arguments
...
ref issue #100
2020-12-23 12:55:50 +01:00
Federico Grandi
5c9f1f7cef
fix: add a couple of debug lines
2020-12-22 20:31:18 +01:00
Federico Grandi
4d73263e3e
fix: add 'token' to Input type
2020-12-22 20:27:21 +01:00
Benedek Kozma
75a30a545a
feat: deprecate GITHUB_TOKEN env var and use token input instead with default value ( #112 )
...
* deprecate GITHUB_TOKEN env var and use token input instead with default value
* update readme
* npm run lint:fix
2020-12-22 20:18:16 +01:00
Federico Grandi
9e04524704
chore: fix mess made by merge
2020-12-19 21:44:23 +01:00
Federico Grandi
6f812a4e2c
Support YAML/JSON arrays for add and remove inputs ( #114 )
...
* feat: support arrays as add/remove inputs
re #95
* chore: add debug log for parsed input type
2020-12-19 21:37:26 +01:00
Federico Grandi
b17846f438
Upgrade simple-git ( #111 )
...
* chore: upgrade simple-git
* [auto] build: update compiled version
2020-12-19 17:05:44 +01:00
Federico Grandi
334c6c32a5
fix(outputs): keep failing on tag error
...
This is just not to introduce breaking changes
2020-12-12 17:07:05 +01:00
Federico Grandi
d8573f888f
fix(tag): fix tag logs
...
It seems like simple-git handlers don't work for custom git tag commands
Promises still work, we'll try to use them then
2020-12-12 17:01:09 +01:00
Federico Grandi
655a68b116
fix(outputs): fix outputs not displaying in logs
2020-12-12 16:36:50 +01:00
Federico Grandi
6da0ea7f9b
fix(outputs): add debug log
2020-12-12 16:32:21 +01:00
Federico Grandi
bc31c50167
fix(outputs): update output format in log
2020-12-12 16:25:26 +01:00
Federico Grandi
0f3c8c6996
fix(util): fix build issue
...
This may be caused by ncc not correctly using edModuleInterlop
2020-12-06 17:43:05 +01:00
Federico Grandi
fe1fb219a6
feat: add outputs
...
re #96
2020-12-05 16:34:50 +01:00
Federico Grandi
3140d34146
chore: add prettier
2020-11-29 17:51:26 +01:00
Federico Grandi
3ed8463058
chore: remove compiled imputs
2020-11-29 17:41:48 +01:00
Federico Grandi
b36969554e
feat(push): add push option
...
re #86
2020-11-11 18:11:50 +01:00