├── CODEOWNERS ├── docs ├── .gitignore ├── themes │ └── hugo-geekdoc │ │ ├── VERSION │ │ ├── layouts │ │ ├── taxonomy │ │ │ ├── list.html │ │ │ └── taxonomy.html │ │ ├── partials │ │ │ ├── head │ │ │ │ ├── custom.html │ │ │ │ ├── favicons.html │ │ │ │ ├── meta.html │ │ │ │ └── others.html │ │ │ ├── svg-icon-symbols.html │ │ │ ├── title.html │ │ │ ├── content.html │ │ │ ├── search.html │ │ │ ├── menu.html │ │ │ ├── foot.html │ │ │ ├── menu-extra.html │ │ │ ├── site-footer.html │ │ │ ├── menu-filetree.html │ │ │ ├── page-footer.html │ │ │ ├── menu-bundle.html │ │ │ ├── page-header.html │ │ │ └── site-header.html │ │ ├── shortcodes │ │ │ ├── hint.html │ │ │ ├── icon.html │ │ │ ├── columns.html │ │ │ ├── toc.html │ │ │ ├── tab.html │ │ │ ├── mermaid.html │ │ │ ├── expand.html │ │ │ ├── include.html │ │ │ ├── tabs.html │ │ │ ├── button.html │ │ │ ├── katex.html │ │ │ ├── toc-tree.html │ │ │ └── img.html │ │ ├── _default │ │ │ ├── _markup │ │ │ │ ├── render-image.html │ │ │ │ ├── render-link.html │ │ │ │ └── render-heading.html │ │ │ ├── list.html │ │ │ ├── single.html │ │ │ └── baseof.html │ │ ├── posts │ │ │ ├── single.html │ │ │ └── list.html │ │ └── 404.html │ │ ├── static │ │ ├── custom.css │ │ ├── favicon │ │ │ ├── favicon.ico │ │ │ ├── mstile-70x70.png │ │ │ ├── favicon-16x16.png │ │ │ ├── favicon-32x32.png │ │ │ ├── mstile-144x144.png │ │ │ ├── mstile-150x150.png │ │ │ ├── mstile-310x150.png │ │ │ ├── mstile-310x310.png │ │ │ ├── apple-touch-icon.png │ │ │ ├── android-chrome-192x192.png │ │ │ ├── android-chrome-512x512.png │ │ │ ├── browserconfig.xml │ │ │ ├── site.webmanifest │ │ │ └── safari-pinned-tab.svg │ │ ├── js │ │ │ ├── clipboard-loader-f0b5fbd5f6.min.js │ │ │ ├── katex-loader-3cfedeea38.min.js │ │ │ ├── mermaid-loader-1bd1515cbf.min.js │ │ │ ├── groupBy-174feb11c7.min.js │ │ │ ├── darkmode-ce906ea916.min.js │ │ │ ├── auto-render-e6e57901eb.min.js │ │ │ └── clipboard-27784b7376.min.js │ │ ├── fonts │ │ │ ├── Metropolis.woff │ │ │ ├── GeekdocIcons.woff │ │ │ ├── GeekdocIcons.woff2 │ │ │ ├── Metropolis.woff2 │ │ │ ├── KaTeX_Main-Bold.ttf │ │ │ ├── KaTeX_Main-Bold.woff │ │ │ ├── LiberationMono.woff │ │ │ ├── LiberationMono.woff2 │ │ │ ├── LiberationSans.woff │ │ │ ├── LiberationSans.woff2 │ │ │ ├── KaTeX_AMS-Regular.ttf │ │ │ ├── KaTeX_AMS-Regular.woff │ │ │ ├── KaTeX_AMS-Regular.woff2 │ │ │ ├── KaTeX_Fraktur-Bold.ttf │ │ │ ├── KaTeX_Fraktur-Bold.woff │ │ │ ├── KaTeX_Main-Bold.woff2 │ │ │ ├── KaTeX_Main-Italic.ttf │ │ │ ├── KaTeX_Main-Italic.woff │ │ │ ├── KaTeX_Main-Italic.woff2 │ │ │ ├── KaTeX_Main-Regular.ttf │ │ │ ├── KaTeX_Main-Regular.woff │ │ │ ├── KaTeX_Math-Italic.ttf │ │ │ ├── KaTeX_Math-Italic.woff │ │ │ ├── KaTeX_Math-Italic.woff2 │ │ │ ├── KaTeX_Size1-Regular.ttf │ │ │ ├── KaTeX_Size2-Regular.ttf │ │ │ ├── KaTeX_Size3-Regular.ttf │ │ │ ├── KaTeX_Size4-Regular.ttf │ │ │ ├── KaTeX_Fraktur-Bold.woff2 │ │ │ ├── KaTeX_Fraktur-Regular.ttf │ │ │ ├── KaTeX_Main-BoldItalic.ttf │ │ │ ├── KaTeX_Main-Regular.woff2 │ │ │ ├── KaTeX_Math-BoldItalic.ttf │ │ │ ├── KaTeX_SansSerif-Bold.ttf │ │ │ ├── KaTeX_SansSerif-Bold.woff │ │ │ ├── KaTeX_Script-Regular.ttf │ │ │ ├── KaTeX_Script-Regular.woff │ │ │ ├── KaTeX_Size1-Regular.woff │ │ │ ├── KaTeX_Size1-Regular.woff2 │ │ │ ├── KaTeX_Size2-Regular.woff │ │ │ ├── KaTeX_Size2-Regular.woff2 │ │ │ ├── KaTeX_Size3-Regular.woff │ │ │ ├── KaTeX_Size3-Regular.woff2 │ │ │ ├── KaTeX_Size4-Regular.woff │ │ │ ├── KaTeX_Size4-Regular.woff2 │ │ │ ├── LiberationSans-Bold.woff │ │ │ ├── LiberationSans-Bold.woff2 │ │ │ ├── KaTeX_Caligraphic-Bold.ttf │ │ │ ├── KaTeX_Caligraphic-Bold.woff │ │ │ ├── KaTeX_Caligraphic-Bold.woff2 │ │ │ ├── KaTeX_Fraktur-Regular.woff │ │ │ ├── KaTeX_Fraktur-Regular.woff2 │ │ │ ├── KaTeX_Main-BoldItalic.woff │ │ │ ├── KaTeX_Main-BoldItalic.woff2 │ │ │ ├── KaTeX_Math-BoldItalic.woff │ │ │ ├── KaTeX_Math-BoldItalic.woff2 │ │ │ ├── KaTeX_SansSerif-Bold.woff2 │ │ │ ├── KaTeX_SansSerif-Italic.ttf │ │ │ ├── KaTeX_SansSerif-Italic.woff │ │ │ ├── KaTeX_SansSerif-Italic.woff2 │ │ │ ├── KaTeX_SansSerif-Regular.ttf │ │ │ ├── KaTeX_SansSerif-Regular.woff │ │ │ ├── KaTeX_Script-Regular.woff2 │ │ │ ├── KaTeX_Typewriter-Regular.ttf │ │ │ ├── LiberationSans-Italic.woff │ │ │ ├── LiberationSans-Italic.woff2 │ │ │ ├── KaTeX_Caligraphic-Regular.ttf │ │ │ ├── KaTeX_Caligraphic-Regular.woff │ │ │ ├── KaTeX_SansSerif-Regular.woff2 │ │ │ ├── KaTeX_Typewriter-Regular.woff │ │ │ ├── KaTeX_Typewriter-Regular.woff2 │ │ │ ├── LiberationSans-BoldItalic.woff │ │ │ ├── KaTeX_Caligraphic-Regular.woff2 │ │ │ └── LiberationSans-BoldItalic.woff2 │ │ ├── print-f79fc3e5d7.min.css │ │ ├── mobile-c344439d04.min.css │ │ └── brand.svg │ │ ├── data │ │ ├── assets-static.json │ │ └── assets.json │ │ ├── images │ │ ├── tn.png │ │ ├── readme.png │ │ └── screenshot.png │ │ ├── archetypes │ │ ├── posts.md │ │ └── docs.md │ │ ├── theme.toml │ │ ├── assets │ │ ├── search-data.json │ │ └── js │ │ │ └── search.js │ │ ├── LICENSE │ │ └── README.md ├── content │ ├── usage │ │ ├── source.md │ │ ├── circleci.md │ │ ├── gobinaries.md │ │ ├── docker.md │ │ ├── gitlab.md │ │ ├── binary.md │ │ └── github.md │ ├── intro.md │ ├── contributing │ │ ├── pipelines.mdx │ │ ├── filtering.mdx │ │ └── get_started.md │ └── configuration │ │ ├── flags.md │ │ └── config-file.md ├── archetypes │ └── default.md └── config.toml ├── .tool-versions ├── FUNDING.yml ├── .mise.toml ├── .replit ├── testdata ├── .gitignore ├── long-history.bundle ├── commits-on-master.bundle ├── commits-on-different-branches.bundle └── setup-test-repos.sh ├── renovate.json ├── internal ├── prpipeline │ ├── docs.go │ ├── types.go │ ├── pipeline.go │ ├── title.go │ ├── run.go │ └── run_test.go ├── commitpipeline │ ├── docs.go │ ├── log_branch_test.go │ ├── log_branch.go │ ├── pipeline.go │ ├── commits_between_hashes_test.go │ ├── commits_between_hashes.go │ ├── identify_same_branch.go │ ├── commits_between_branches_test.go │ ├── commits_between_branches.go │ └── run.go ├── dispatcher │ ├── handle_errors.go │ ├── success_handler.go │ ├── pipeline.go │ ├── work.go │ ├── dispatcher_test.go │ └── dispatcher.go ├── version_runner │ ├── version_runner.go │ └── version_runner_test.go └── root_runner │ ├── root_runner.go │ ├── run.go │ └── run_test.go ├── config ├── testdata │ └── .commitsar.yaml ├── commits.go └── commits_test.go ├── .gitignore ├── tools.go ├── .dockerignore ├── pkg ├── text │ ├── docs.go │ ├── is_revert_commit.go │ ├── is_initial_commit_test.go │ ├── is_initial_commit.go │ ├── is_merge_commit.go │ ├── is_revert_commit_test.go │ ├── check_required_scopes.go │ ├── format_failing_commits.go │ ├── is_merge_commit_test.go │ ├── format_failing_commits_test.go │ ├── check_required_scopes_test.go │ ├── check_message_title.go │ └── check_message_title_test.go └── jira │ ├── build_regex_test.go │ ├── find_references.go │ ├── build_regex.go │ └── find_references_test.go ├── .commitsar.yaml ├── CONTRIBUTING.md ├── entrypoint.sh ├── mage.go ├── action.yml ├── .github └── workflows │ ├── semgrep.yml │ ├── goreleaser-check.yml │ ├── release.yml │ ├── build.yml │ ├── linters.yml │ └── test.yml ├── .goreleaser.yml ├── Makefile ├── scripts └── publish_to_pages.sh ├── LICENSE ├── README.md ├── Dockerfile ├── .kodiak.toml ├── go.mod ├── CODE_OF_CONDUCT.md └── main.go /CODEOWNERS: -------------------------------------------------------------------------------- 1 | @aevea/OSS -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | public -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | golang 1.25.5 -------------------------------------------------------------------------------- /FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: fallion 2 | -------------------------------------------------------------------------------- /.mise.toml: -------------------------------------------------------------------------------- 1 | [tools] 2 | go = "1.25.5" 3 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/VERSION: -------------------------------------------------------------------------------- 1 | v0.17.1 2 | -------------------------------------------------------------------------------- /.replit: -------------------------------------------------------------------------------- 1 | language = "go" 2 | run = "make test" 3 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/layouts/taxonomy/list.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/layouts/taxonomy/taxonomy.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !*.bundle 3 | !setup-test-repos.sh -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/custom.css: -------------------------------------------------------------------------------- 1 | /* You can add custom styles here. */ 2 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/data/assets-static.json: -------------------------------------------------------------------------------- 1 | { 2 | "custom.css": "custom.css" 3 | } 4 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "postUpdateOptions": ["gomodTidy"], 3 | "extends": ["config:base"] 4 | } 5 | -------------------------------------------------------------------------------- /docs/content/usage/source.md: -------------------------------------------------------------------------------- 1 | --- 2 | id: source 3 | title: Building from source 4 | --- 5 | 6 | TODO 7 | -------------------------------------------------------------------------------- /testdata/long-history.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/testdata/long-history.bundle -------------------------------------------------------------------------------- /testdata/commits-on-master.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/testdata/commits-on-master.bundle -------------------------------------------------------------------------------- /internal/prpipeline/docs.go: -------------------------------------------------------------------------------- 1 | /*package prpipeline handles all actions related to PR checking */ 2 | package prpipeline 3 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/images/tn.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/layouts/partials/head/custom.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /internal/commitpipeline/docs.go: -------------------------------------------------------------------------------- 1 | // Package commitpipeline handles all work related to commits 2 | package commitpipeline 3 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/archetypes/posts.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | --- 5 | -------------------------------------------------------------------------------- /docs/archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | draft: true 5 | --- 6 | 7 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/images/readme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/images/readme.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/images/screenshot.png -------------------------------------------------------------------------------- /testdata/commits-on-different-branches.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/testdata/commits-on-different-branches.bundle -------------------------------------------------------------------------------- /config/testdata/.commitsar.yaml: -------------------------------------------------------------------------------- 1 | verbose: true 2 | commits: 3 | strict: false 4 | limit: 100 5 | all: true 6 | upstreamBranch: origin/main -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | testdata/commits_on_branch 3 | testdata/git_tags 4 | www/**/_gen/** 5 | **/node_modules/** 6 | www/public 7 | tmp 8 | .idea 9 | dist -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/layouts/partials/head/favicons.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/favicon.ico -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/js/clipboard-loader-f0b5fbd5f6.min.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded",function(n){new ClipboardJS(".clip")}); -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/Metropolis.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/Metropolis.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/js/katex-loader-3cfedeea38.min.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded",function(){renderMathInElement(document.body)}); -------------------------------------------------------------------------------- /tools.go: -------------------------------------------------------------------------------- 1 | // +build tools 2 | 3 | package tools 4 | 5 | import ( 6 | _ "github.com/magefile/mage" 7 | ) 8 | 9 | func main() { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | testdata 2 | www 3 | scripts 4 | renovate.json 5 | .drone.yml 6 | .goreleaser.yml 7 | .kodiak.toml 8 | CNAME 9 | .github 10 | .commitsar.yaml -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/layouts/shortcodes/hint.html: -------------------------------------------------------------------------------- 1 |
2 | {{ .Inner | $.Page.RenderString }} 3 |4 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/mstile-70x70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/mstile-70x70.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/GeekdocIcons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/GeekdocIcons.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/GeekdocIcons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/GeekdocIcons.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/Metropolis.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/Metropolis.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/favicon-16x16.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/favicon-32x32.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/mstile-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/mstile-144x144.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/mstile-150x150.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/mstile-310x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/mstile-310x150.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/mstile-310x310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/mstile-310x310.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationMono.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationMono.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationMono.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationMono.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans.woff2 -------------------------------------------------------------------------------- /pkg/text/docs.go: -------------------------------------------------------------------------------- 1 | // Package text contains functions to parse Git Commit texts and some basic helpers for identifying type of commit by its message. 2 | package text 3 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_AMS-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_AMS-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_AMS-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_AMS-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_AMS-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_AMS-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Italic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Italic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-Italic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-Italic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size1-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size1-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size2-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size2-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size3-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size3-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size4-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size4-Regular.ttf -------------------------------------------------------------------------------- /.commitsar.yaml: -------------------------------------------------------------------------------- 1 | version: 1 2 | verbose: true 3 | commits: 4 | strict: true 5 | disabled: false 6 | ## Needs investigation 7 | # pull_request: 8 | # conventional: true 9 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-BoldItalic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-BoldItalic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Script-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Script-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Script-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Script-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size1-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size1-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size1-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size1-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size2-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size2-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size2-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size2-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size3-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size3-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size3-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size3-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size4-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size4-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size4-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Size4-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/android-chrome-192x192.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/favicon/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/favicon/android-chrome-512x512.png -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Bold.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Bold.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Fraktur-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-BoldItalic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Main-BoldItalic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-BoldItalic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Math-BoldItalic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Bold.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Italic.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Italic.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Script-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Script-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Typewriter-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Typewriter-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Italic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans-Italic.woff2 -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Contributions are most welcome. Please check the [CONTRIBUTING](https://commitsar.aevea.ee/contributing/get_started) section of documentation. 4 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Regular.ttf -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_SansSerif-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Typewriter-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Typewriter-Regular.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Typewriter-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Typewriter-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans-BoldItalic.woff -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/layouts/shortcodes/icon.html: -------------------------------------------------------------------------------- 1 | {{ $id := .Get 0 }} 2 | 3 | {{- with $id -}} 4 | 5 | {{- end -}} 6 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/KaTeX_Caligraphic-Regular.woff2 -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/static/fonts/LiberationSans-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aevea/commitsar/HEAD/docs/themes/hugo-geekdoc/static/fonts/LiberationSans-BoldItalic.woff2 -------------------------------------------------------------------------------- /internal/prpipeline/types.go: -------------------------------------------------------------------------------- 1 | package prpipeline 2 | 3 | type PRStyle = string 4 | 5 | const ( 6 | JiraStyle PRStyle = "jira" 7 | ConventionalStyle PRStyle = "conventional" 8 | ) 9 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/archetypes/docs.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ .Name | humanize | title }}" 3 | weight: 1 4 | # geekdocFlatSection: false 5 | # geekdocToc: 6 6 | # geekdocHidden: false 7 | --- 8 | -------------------------------------------------------------------------------- /docs/themes/hugo-geekdoc/layouts/_default/_markup/render-image.html: -------------------------------------------------------------------------------- 1 |
9 | {{- .Inner -}}
10 |
11 |
--------------------------------------------------------------------------------
/internal/dispatcher/success_handler.go:
--------------------------------------------------------------------------------
1 | package dispatcher
2 |
3 | import (
4 | "sync"
5 |
6 | "github.com/apex/log"
7 | )
8 |
9 | func (dispatch *Dispatcher) handleSuccess(
10 | wg *sync.WaitGroup,
11 | channel <-chan PipelineSuccess,
12 | results *Results,
13 | ) {
14 | defer wg.Done()
15 |
16 | for message := range channel {
17 | log.Debugf("[%s] %s", message.PipelineName, message.Message)
18 |
19 | results.SuccessfulPipelines = append(results.SuccessfulPipelines, message)
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/pkg/jira/find_references.go:
--------------------------------------------------------------------------------
1 | package jira
2 |
3 | import (
4 | "regexp"
5 | )
6 |
7 | // FindReferences scans a given message looking for all issues that match the keys. Default to the JIRA default regex if no keys are provided.
8 | func FindReferences(keys []string, message string) ([]string, error) {
9 | regex, err := regexp.Compile(buildRegex(keys))
10 |
11 | if err != nil {
12 | return nil, err
13 | }
14 |
15 | matches := regex.FindAllString(message, -1)
16 |
17 | return matches, nil
18 | }
19 |
--------------------------------------------------------------------------------
/.github/workflows/semgrep.yml:
--------------------------------------------------------------------------------
1 | # name: Semgrep
2 | # on: [pull_request]
3 | # jobs:
4 | # semgrep:
5 | # name: Scan
6 | # runs-on: ubuntu-latest
7 | # steps:
8 | # - uses: actions/checkout@v1
9 | # - uses: returntocorp/semgrep-action@v1
10 | # env: # Optional environment variable for inline PR comments (beta)
11 | # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 | # with:
13 | # publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
14 | # publishDeployment: 174
15 |
--------------------------------------------------------------------------------
/internal/version_runner/version_runner.go:
--------------------------------------------------------------------------------
1 | package version_runner
2 |
3 | import "github.com/apex/log"
4 |
5 | // VersionInfo houses all info regarding to the version. It is here to avoid global variables in this package.
6 | type VersionInfo struct {
7 | Version string
8 | Date string
9 | }
10 |
11 | // Run executes the command to get version and prints it into stdout
12 | func Run(versionInfo VersionInfo) error {
13 | log.Infof("Commitsar version: %s\t Built on: %s", versionInfo.Version, versionInfo.Date)
14 | return nil
15 | }
16 |
--------------------------------------------------------------------------------
/docs/themes/hugo-geekdoc/static/print-f79fc3e5d7.min.css:
--------------------------------------------------------------------------------
1 | @media print{.editpage,.gdoc-footer .container span:not(:first-child),.gdoc-nav{display:none}.gdoc-footer{border-top:1px solid #dee2e6}.gdoc-markdown pre{white-space:pre-wrap;overflow-wrap:break-word}.chroma code{border:1px solid #dee2e6;padding:.5rem!important;font-weight:400!important}.gdoc-markdown code{font-weight:700}a,a:visited{color:inherit!important;text-decoration:none!important}.gdoc-toc{flex:none}.gdoc-toc nav{position:relative;width:auto}.wrapper{display:block}.wrapper main{display:block}}
--------------------------------------------------------------------------------
/.goreleaser.yml:
--------------------------------------------------------------------------------
1 | # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2 | # Make sure to check the documentation at https://goreleaser.com
3 | version: 2
4 |
5 | before:
6 | hooks:
7 | - go mod download
8 |
9 | builds:
10 | - env:
11 | - CGO_ENABLED=0
12 | main: ./main.go
13 | goos:
14 | - windows
15 | - linux
16 | - darwin
17 |
18 | checksum:
19 | name_template: "checksums.txt"
20 |
21 | snapshot:
22 | version_template: "{{ .Tag }}-next"
23 |
24 | changelog:
25 | disable: true
26 |
--------------------------------------------------------------------------------
/docs/content/usage/docker.md:
--------------------------------------------------------------------------------
1 | ---
2 | id: docker
3 | title: Docker
4 | ---
5 |
6 | For running in docker just use the following command:
7 |
8 | ```sh
9 | docker run --rm --name="commitsar" -w /src -v "$(pwd)":/src aevea/commitsar
10 | ```
11 |
12 | ```sh
13 | docker run --rm --name="commitsar" -w /src -v "$(pwd)":/src aevea/commitsar ./path-to-repo
14 | ```
15 |
16 | Make sure to load the working directory where `.git` folder is present. Commitsar will not work without the `.git` folder. This can be overridden by setting the path argument.
17 |
--------------------------------------------------------------------------------
/docs/content/usage/gitlab.md:
--------------------------------------------------------------------------------
1 | ---
2 | id: gitlab
3 | title: Gitlab CI
4 | ---
5 |
6 | For Gitlab usage you can include the following job:
7 |
8 | ```yaml
9 | validate-commits:
10 | stage: test
11 | image: aevea/commitsar
12 | script:
13 | - git fetch origin master
14 | - commitsar
15 | ```
16 |
17 | **Important** In case of an error such as: `reference not found` please set a higher `GIT_DEPTH` variable setting. Commitsar currently relies on full commit objects which do not get pulled in on the shallow clone that `GIT_DEPTH` uses.
18 |
--------------------------------------------------------------------------------
/docs/themes/hugo-geekdoc/layouts/partials/search.html:
--------------------------------------------------------------------------------
1 | {{ if default true .Site.Params.GeekdocSearch }}
2 |