├── .editorconfig ├── .eslintignore ├── .eslintrc.yml ├── .github └── workflows │ ├── ci.yml │ └── codeql-analysis.yml ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── lib └── index.js ├── package.json ├── src └── index.js └── test ├── index.spec.js └── resources ├── full_repo └── git │ ├── COMMIT_EDITMSG │ ├── HEAD │ ├── config │ ├── description │ ├── hooks │ ├── applypatch-msg.sample │ ├── commit-msg.sample │ ├── post-update.sample │ ├── pre-applypatch.sample │ ├── pre-commit.sample │ ├── pre-push.sample │ ├── pre-rebase.sample │ ├── prepare-commit-msg.sample │ └── update.sample │ ├── index │ ├── info │ └── exclude │ ├── logs │ ├── HEAD │ └── refs │ │ └── heads │ │ ├── another_branch │ │ ├── branch_with_multiline_msg │ │ ├── branch_with_tags │ │ └── master │ ├── objects │ ├── 13 │ │ └── 35258f70f45c6243bc674df830cd0ec7c3c714 │ ├── 90 │ │ └── 440bdc8eb3b2fa20bc578f411cf4b725ae0a25 │ ├── 4b │ │ ├── 4971e54a1cd05eab6c0ae32cf5cd330c9dcc41 │ │ └── 825dc642cb6eb9a060e54bf8d69288fbee4904 │ ├── a0 │ │ └── daa3cbe5427810d3d78076e19192bdbfb08b1d │ └── ef │ │ └── 5f0683654427ff38d43836098f6336d73c4576 │ └── refs │ ├── heads │ ├── another_branch │ ├── branch_with_multiline_msg │ ├── branch_with_tags │ └── master │ └── tags │ ├── my_tag │ ├── tag1 │ └── tag2 └── simple_repo ├── .gitkeep └── git ├── COMMIT_EDITMSG ├── HEAD ├── config ├── description ├── hooks ├── applypatch-msg.sample ├── commit-msg.sample ├── post-update.sample ├── pre-applypatch.sample ├── pre-commit.sample ├── pre-push.sample ├── pre-rebase.sample ├── prepare-commit-msg.sample └── update.sample ├── index ├── info └── exclude ├── logs ├── HEAD └── refs │ └── heads │ └── test_branch ├── objects ├── 2d │ └── 53148daf49efa45234f3c7dfa7f84d8f66fc6f ├── cb │ └── 089cd89a7d7686d284d8761201649346b5aa1c ├── d5 │ └── 64d0bc3dd917926892c55e3706cc116d5b165e └── e6 │ └── 9de29bb2d1d6434b8b29ae775ad8c2e48c5391 └── refs └── heads └── test_branch /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/.eslintrc.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | 3 | coverage 4 | .nyc_output 5 | 6 | .vscode 7 | .idea 8 | 9 | *.swp 10 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | saveExact=true 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/README.md -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/lib/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/src/index.js -------------------------------------------------------------------------------- /test/index.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/index.spec.js -------------------------------------------------------------------------------- /test/resources/full_repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/COMMIT_EDITMSG -------------------------------------------------------------------------------- /test/resources/full_repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/another_branch 2 | -------------------------------------------------------------------------------- /test/resources/full_repo/git/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/config -------------------------------------------------------------------------------- /test/resources/full_repo/git/description: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/description -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/applypatch-msg.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/commit-msg.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/commit-msg.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/post-update.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/post-update.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/pre-applypatch.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/pre-commit.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/pre-commit.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/pre-push.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/pre-push.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/pre-rebase.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/pre-rebase.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/prepare-commit-msg.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/prepare-commit-msg.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/hooks/update.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/hooks/update.sample -------------------------------------------------------------------------------- /test/resources/full_repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/index -------------------------------------------------------------------------------- /test/resources/full_repo/git/info/exclude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/info/exclude -------------------------------------------------------------------------------- /test/resources/full_repo/git/logs/HEAD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/logs/HEAD -------------------------------------------------------------------------------- /test/resources/full_repo/git/logs/refs/heads/another_branch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/logs/refs/heads/another_branch -------------------------------------------------------------------------------- /test/resources/full_repo/git/logs/refs/heads/branch_with_multiline_msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/logs/refs/heads/branch_with_multiline_msg -------------------------------------------------------------------------------- /test/resources/full_repo/git/logs/refs/heads/branch_with_tags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/logs/refs/heads/branch_with_tags -------------------------------------------------------------------------------- /test/resources/full_repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/logs/refs/heads/master -------------------------------------------------------------------------------- /test/resources/full_repo/git/objects/13/35258f70f45c6243bc674df830cd0ec7c3c714: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/objects/13/35258f70f45c6243bc674df830cd0ec7c3c714 -------------------------------------------------------------------------------- /test/resources/full_repo/git/objects/4b/4971e54a1cd05eab6c0ae32cf5cd330c9dcc41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/objects/4b/4971e54a1cd05eab6c0ae32cf5cd330c9dcc41 -------------------------------------------------------------------------------- /test/resources/full_repo/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904: -------------------------------------------------------------------------------- 1 | x+)JMU0` 2 | , -------------------------------------------------------------------------------- /test/resources/full_repo/git/objects/90/440bdc8eb3b2fa20bc578f411cf4b725ae0a25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/objects/90/440bdc8eb3b2fa20bc578f411cf4b725ae0a25 -------------------------------------------------------------------------------- /test/resources/full_repo/git/objects/a0/daa3cbe5427810d3d78076e19192bdbfb08b1d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/objects/a0/daa3cbe5427810d3d78076e19192bdbfb08b1d -------------------------------------------------------------------------------- /test/resources/full_repo/git/objects/ef/5f0683654427ff38d43836098f6336d73c4576: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/objects/ef/5f0683654427ff38d43836098f6336d73c4576 -------------------------------------------------------------------------------- /test/resources/full_repo/git/refs/heads/another_branch: -------------------------------------------------------------------------------- 1 | 90440bdc8eb3b2fa20bc578f411cf4b725ae0a25 2 | -------------------------------------------------------------------------------- /test/resources/full_repo/git/refs/heads/branch_with_multiline_msg: -------------------------------------------------------------------------------- 1 | 4b4971e54a1cd05eab6c0ae32cf5cd330c9dcc41 2 | -------------------------------------------------------------------------------- /test/resources/full_repo/git/refs/heads/branch_with_tags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/refs/heads/branch_with_tags -------------------------------------------------------------------------------- /test/resources/full_repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | ef5f0683654427ff38d43836098f6336d73c4576 2 | -------------------------------------------------------------------------------- /test/resources/full_repo/git/refs/tags/my_tag: -------------------------------------------------------------------------------- 1 | a0daa3cbe5427810d3d78076e19192bdbfb08b1d 2 | -------------------------------------------------------------------------------- /test/resources/full_repo/git/refs/tags/tag1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/refs/tags/tag1 -------------------------------------------------------------------------------- /test/resources/full_repo/git/refs/tags/tag2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/full_repo/git/refs/tags/tag2 -------------------------------------------------------------------------------- /test/resources/simple_repo/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/resources/simple_repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Add gitkeep 2 | -------------------------------------------------------------------------------- /test/resources/simple_repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/test_branch 2 | -------------------------------------------------------------------------------- /test/resources/simple_repo/git/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/config -------------------------------------------------------------------------------- /test/resources/simple_repo/git/description: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/description -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/applypatch-msg.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/commit-msg.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/commit-msg.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/post-update.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/post-update.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/pre-applypatch.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/pre-commit.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/pre-commit.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/pre-push.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/pre-push.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/pre-rebase.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/pre-rebase.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/prepare-commit-msg.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/prepare-commit-msg.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/hooks/update.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/hooks/update.sample -------------------------------------------------------------------------------- /test/resources/simple_repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/index -------------------------------------------------------------------------------- /test/resources/simple_repo/git/info/exclude: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/info/exclude -------------------------------------------------------------------------------- /test/resources/simple_repo/git/logs/HEAD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/logs/HEAD -------------------------------------------------------------------------------- /test/resources/simple_repo/git/logs/refs/heads/test_branch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/logs/refs/heads/test_branch -------------------------------------------------------------------------------- /test/resources/simple_repo/git/objects/2d/53148daf49efa45234f3c7dfa7f84d8f66fc6f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/objects/2d/53148daf49efa45234f3c7dfa7f84d8f66fc6f -------------------------------------------------------------------------------- /test/resources/simple_repo/git/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c -------------------------------------------------------------------------------- /test/resources/simple_repo/git/objects/d5/64d0bc3dd917926892c55e3706cc116d5b165e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/objects/d5/64d0bc3dd917926892c55e3706cc116d5b165e -------------------------------------------------------------------------------- /test/resources/simple_repo/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-meacham/serverless-plugin-git-variables/HEAD/test/resources/simple_repo/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 -------------------------------------------------------------------------------- /test/resources/simple_repo/git/refs/heads/test_branch: -------------------------------------------------------------------------------- 1 | 2d53148daf49efa45234f3c7dfa7f84d8f66fc6f 2 | --------------------------------------------------------------------------------