From f9f090732575b0c9c5b789c15e01ea50b5859b7b Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:24:53 +0100 Subject: [PATCH 1/5] docs: add xontab as a contributor for code (#441) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 9 +++++++++ README.md | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index a8a750ec..43701849 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -226,6 +226,15 @@ "question", "doc" ] + }, + { + "login": "xontab", + "name": "Shaun Tabone", + "avatar_url": "https://avatars.githubusercontent.com/u/4987684?v=4", + "profile": "http://www.xontab.com", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index 02ecd97c..ae91a54c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # actions-template-sync -[![All Contributors](https://img.shields.io/badge/all_contributors-22-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-23-orange.svg?style=flat-square)](#contributors-) [![actions-template-sync](https://github.com/AndreasAugustin/actions-template-sync/actions/workflows/actions_template_sync.yml/badge.svg)](https://github.com/AndreasAugustin/actions-template-sync/actions/workflows/actions_template_sync.yml) @@ -461,6 +461,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d jellllly420
jellllly420

🤔 💬 📖 + Shaun Tabone
Shaun Tabone

💻 From 4a42410a3c63b359844b20860359bc2f8ab4e6fa Mon Sep 17 00:00:00 2001 From: Shaun Tabone Date: Thu, 18 Jan 2024 08:26:08 +0100 Subject: [PATCH 2/5] feat(hooks): added precommit hook (#439) Co-authored-by: andy Augustin --- README.md | 5 +++++ docs/ARCHITECTURE.md | 2 +- src/sync_template.sh | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae91a54c..5270009d 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,7 @@ The following hooks are supported (please check [docs/ARCHITECTURE.md](docs/ARCH * `install` is executed after the container has started and after reading and setting up the environment. * `prepull` is executed before the code is pulled from the source repository +* `precommit` is executed before the code is commited * `prepush` is executed before the push is executed, right after the commit * `prepr` is executed before the PR is done @@ -320,6 +321,10 @@ hooks: commands: - echo 'hi, we are within the prepull phase' - echo 'maybe you want to do adjustments on the local code' + precommit: + commands: + - echo 'hi, we are within the precommit phase' + - echo 'maybe you want to add further changes before the code is committed' prepush: commands: - echo 'hi, we are within the prepush phase' diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 73375c6e..843f0ddc 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -35,7 +35,7 @@ GitCommitSync["fa:fa-code-commit Commit the changes"] CheckIsDryRun{"Check if is_dry_run is set to true"} GitPushSync["Push the changes to GitHub"] GitPullRequestSync["fa:fa-code-pull-request Create a pull request on GitHub"] -Hook{{"hooks, prepush | prepush | prepr"}} +Hook{{"hooks, prepull | precommit | prepush | prepr"}} subgraph githubactions["fa:fa-github GitHubActions"] diff --git a/src/sync_template.sh b/src/sync_template.sh index 8408ecb2..e114ef4d 100644 --- a/src/sync_template.sh +++ b/src/sync_template.sh @@ -94,6 +94,8 @@ if [ -s "${TEMPLATE_SYNC_IGNORE_FILE_PATH}" ]; then echo "::endgroup::" fi +cmd_from_yml_file "precommit" + echo "::group::commit changes" git add . From a946a62232bbde490e5af1a741e08558ebbc131d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:28:47 +0100 Subject: [PATCH 3/5] chore(main): release 1.3.0 (#442) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02dc7bf5..ea215907 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.3.0](https://github.com/AndreasAugustin/actions-template-sync/compare/v1.2.0...v1.3.0) (2024-01-18) + + +### Features + +* **hooks:** added precommit hook ([#439](https://github.com/AndreasAugustin/actions-template-sync/issues/439)) ([4a42410](https://github.com/AndreasAugustin/actions-template-sync/commit/4a42410a3c63b359844b20860359bc2f8ab4e6fa)) + ## [1.2.0](https://github.com/AndreasAugustin/actions-template-sync/compare/v1.1.9...v1.2.0) (2024-01-06) From 3e1473ce3106b122d7dc4a0a01c75f63a432166a Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:30:29 +0100 Subject: [PATCH 4/5] docs: add kevin-aude as a contributor for ideas, and code (#443) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 10 ++++++++++ README.md | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 43701849..c1215dd3 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -235,6 +235,16 @@ "contributions": [ "code" ] + }, + { + "login": "kevin-aude", + "name": "Kevin AUDE", + "avatar_url": "https://avatars.githubusercontent.com/u/98819045?v=4", + "profile": "https://github.com/kevin-aude", + "contributions": [ + "ideas", + "code" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index 5270009d..f3271d78 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # actions-template-sync -[![All Contributors](https://img.shields.io/badge/all_contributors-23-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-24-orange.svg?style=flat-square)](#contributors-) [![actions-template-sync](https://github.com/AndreasAugustin/actions-template-sync/actions/workflows/actions_template_sync.yml/badge.svg)](https://github.com/AndreasAugustin/actions-template-sync/actions/workflows/actions_template_sync.yml) @@ -467,6 +467,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d jellllly420
jellllly420

🤔 💬 📖 Shaun Tabone
Shaun Tabone

💻 + Kevin AUDE
Kevin AUDE

🤔 💻 From eee574b6a8ca3f50a5ce039fe05784043ac409a2 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:31:26 +0100 Subject: [PATCH 5/5] docs: add aairey as a contributor for review (#444) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index c1215dd3..c0e6d22c 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -204,7 +204,8 @@ "avatar_url": "https://avatars.githubusercontent.com/u/7644094?v=4", "profile": "https://blog.airey.be", "contributions": [ - "bug" + "bug", + "review" ] }, { diff --git a/README.md b/README.md index f3271d78..76b907a6 100644 --- a/README.md +++ b/README.md @@ -461,7 +461,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Eleanor Bronson
Eleanor Bronson

🤔 Marvin Osswald
Marvin Osswald

📖 David Calvert
David Calvert

📖 🐛 💻 🚧 📝 - Andy Airey
Andy Airey

🐛 + Andy Airey
Andy Airey

🐛 👀 Surya Asriadie
Surya Asriadie

🐛