├── .github ├── dependabot.yml └── workflows │ ├── gitartwork.yml │ └── dependabotautomerge.yml ├── action.yml ├── package.json ├── LICENSE.md ├── README.md └── gitartwork.svg /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: github-actions 4 | directory: / 5 | schedule: 6 | interval: monthly 7 | 8 | - package-ecosystem: npm 9 | directory: / 10 | schedule: 11 | interval: monthly -------------------------------------------------------------------------------- /.github/workflows/gitartwork.yml: -------------------------------------------------------------------------------- 1 | name: gitartwork from a contribution graph 2 | on: 3 | workflow_dispatch: 4 | jobs: 5 | build: 6 | name: Make gitartwork SVG 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v3 10 | - uses: jasineri/gitartwork@v1 11 | with: 12 | user_name: jasineri 13 | text: JASINERI 14 | - uses: jasineri/simple-push-action@v1 15 | -------------------------------------------------------------------------------- /.github/workflows/dependabotautomerge.yml: -------------------------------------------------------------------------------- 1 | name: "Dependabot Automerge - Action" 2 | 3 | on: 4 | workflow_dispatch: 5 | 6 | jobs: 7 | Merge_pull_request: 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v3 12 | 13 | - name: Approve pull request by GitHub-Actions bot 14 | uses: actions/github-script@v6 15 | with: 16 | github-token: ${{secrets.GITHUB_TOKEN}} 17 | script: | 18 | github.pulls.createReview({ 19 | event: "APPROVE" 20 | }); -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: gitartwork on contribution graph 2 | description: gitartwork on users contribution graph 3 | author: jasineri 4 | inputs: 5 | user_name: 6 | description: Username 7 | default: jasineri 8 | required: true 9 | text: 10 | description: Text on contribution graph 11 | default: JASINERI 12 | required: true 13 | svg_file_name: 14 | description: 'SVG file name (optional), default: gitartwork.svg' 15 | default: gitartwork.svg 16 | required: false 17 | runs: 18 | using: node16 19 | main: dist/index.js 20 | branding: 21 | icon: aperture 22 | color: blue 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gitartwork", 3 | "version": "1.0.0", 4 | "description": "

gitartwork on user's contribution graph, make a SVG image of it and finally push it back to your repository

", 5 | "main": "dist/index.js", 6 | "scripts": { 7 | "prestart" : "npm run format && npm run build", 8 | "start": "( node dist/index.js )", 9 | "build": "tsc && ncc -m build lib/main.js", 10 | "format": "prettier --write **/*.ts" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "git+https://github.com/jasineri/gitartwork.git" 15 | }, 16 | "keywords": [], 17 | "author": "jasineri", 18 | "license": "ISC", 19 | "bugs": { 20 | "url": "https://github.com/jasineri/gitartwork/issues" 21 | }, 22 | "homepage": "https://github.com/jasineri/gitartwork#readme", 23 | "dependencies": { 24 | "@actions/core": "^1.10.0", 25 | "@actions/github": "^5.1.1" 26 | }, 27 | "devDependencies": { 28 | "@types/node": "^18.14.2", 29 | "@vercel/ncc": "^0.36.1", 30 | "node-html-parser": "^6.1.13", 31 | "prettier": "^2.8.4", 32 | "typescript": "^4.9.5" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2022, Nerijus Jasinskas 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright notice, 12 | this list of conditions and the following disclaimer in the documentation 13 | and/or other materials provided with the distribution. 14 | 15 | * Neither the name of the copyright holder nor the names of its 16 | contributors may be used to endorse or promote products derived from 17 | this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 23 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # gitartwork on user's contribution graph 2 | 3 | gitartwork on user's contribution graph, make a SVG image of it and finally push it back to your repository. 4 | 5 | An example result: 6 | [![jasineri/gitartwork](gitartwork.svg)](https://github.com/jasineri/gitartwork) 7 | 8 | ## Usage: 9 | 10 | ### Option #1: Use gitartwork as a GitHub Action 11 | 1. Ensure that under Settings > Actions > General > Workflow permissions, the "Read and write permissions" is set! 12 | 2. Copy the workflow code into a `.github/workflows/gitartwork.yml` file in your repository. 13 | 14 | name: gitartwork from a contribution graph 15 | on: 16 | push: 17 | jobs: 18 | build: 19 | name: Make gitartwork SVG 20 | runs-on: ubuntu-latest 21 | steps: 22 | - uses: actions/checkout@v3 23 | - uses: jasineri/gitartwork@v1 24 | with: 25 | # Use this username's contribution graph 26 | user_name: jasineri 27 | # Text on contribution graph 28 | text: JASINERI 29 | - uses: jasineri/simple-push-action@v1 30 | 31 | 2. A few moments later it will generate `gitartwork.svg` image in your repository, so then you can include it in your `README.md` like `![gitartwork](gitartwork.svg)` 32 | 3. Have fun :) 33 | 34 | ## Troubleshooting 35 | 1. If your gitartwork's image is missing and the action workflow ends with an error message stating "Permission to ... denied to github-actions\[bot\]", check the workflow permissions settings (see "Usage" above). 36 | 37 | ### Option #2: Make gitartwork locally on your environment 38 | Still in progress... 39 | -------------------------------------------------------------------------------- /gitartwork.svg: -------------------------------------------------------------------------------- 1 | 1697 | 1698 | 1699 | 1700 | 1701 | 1702 | 1703 | 1704 | 1705 | 1706 | 1707 | 1708 | 1709 | 1710 | 1711 | 1712 | 1713 | 1714 | 1715 | 1716 | 1717 | 1718 | 1719 | 1720 | 1721 | 1722 | 1723 | 1724 | 1725 | 1726 | 1727 | 1728 | 1729 | 1730 | 1731 | 1732 | 1733 | 1734 | 1735 | 1736 | 1737 | 1738 | 1739 | 1740 | 1741 | 1742 | 1743 | 1744 | 1745 | 1746 | 1747 | 1748 | 1749 | 1750 | 1751 | 1752 | 1753 | 1754 | 1755 | 1756 | 1757 | 1758 | 1759 | 1760 | 1761 | 1762 | 1763 | 1764 | 1765 | 1766 | 1767 | 1768 | 1769 | 1770 | 1771 | 1772 | 1773 | 1774 | 1775 | 1776 | 1777 | 1778 | 1779 | 1780 | 1781 | 1782 | 1783 | 1784 | 1785 | 1786 | 1787 | 1788 | 1789 | 1790 | 1791 | 1792 | 1793 | 1794 | 1795 | 1796 | 1797 | 1798 | 1799 | 1800 | 1801 | 1802 | 1803 | 1804 | 1805 | 1806 | 1807 | 1808 | 1809 | 1810 | 1811 | 1812 | 1813 | 1814 | 1815 | 1816 | 1817 | 1818 | 1819 | 1820 | 1821 | 1822 | 1823 | 1824 | 1825 | 1826 | 1827 | 1828 | 1829 | 1830 | 1831 | 1832 | 1833 | 1834 | 1835 | 1836 | 1837 | 1838 | 1839 | 1840 | 1841 | 1842 | 1843 | 1844 | 1845 | 1846 | 1847 | 1848 | 1849 | 1850 | 1851 | 1852 | 1853 | 1854 | 1855 | 1856 | 1857 | 1858 | 1859 | 1860 | 1861 | 1862 | 1863 | 1864 | 1865 | 1866 | 1867 | 1868 | 1869 | 1870 | 1871 | 1872 | 1873 | 1874 | 1875 | 1876 | 1877 | 1878 | 1879 | 1880 | 1881 | 1882 | 1883 | 1884 | 1885 | 1886 | 1887 | 1888 | 1889 | 1890 | 1891 | 1892 | 1893 | 1894 | 1895 | 1896 | 1897 | 1898 | 1899 | 1900 | 1901 | 1902 | 1903 | 1904 | 1905 | 1906 | 1907 | 1908 | 1909 | 1910 | 1911 | 1912 | 1913 | 1914 | 1915 | 1916 | 1917 | 1918 | 1919 | 1920 | 1921 | 1922 | 1923 | 1924 | 1925 | 1926 | 1927 | 1928 | 1929 | 1930 | 1931 | 1932 | 1933 | 1934 | 1935 | 1936 | 1937 | 1938 | 1939 | 1940 | 1941 | 1942 | 1943 | 1944 | 1945 | 1946 | 1947 | 1948 | 1949 | 1950 | 1951 | 1952 | 1953 | 1954 | 1955 | 1956 | 1957 | 1958 | 1959 | 1960 | 1961 | 1962 | 1963 | 1964 | 1965 | 1966 | 1967 | 1968 | 1969 | 1970 | 1971 | 1972 | 1973 | 1974 | 1975 | 1976 | 1977 | 1978 | 1979 | 1980 | 1981 | 1982 | 1983 | 1984 | 1985 | 1986 | 1987 | 1988 | 1989 | 1990 | 1991 | 1992 | 1993 | 1994 | 1995 | 1996 | 1997 | 1998 | 1999 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2006 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 2013 | 2014 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 2027 | 2028 | 2029 | 2030 | 2031 | 2032 | 2033 | 2034 | 2035 | 2036 | 2037 | 2038 | 2039 | 2040 | 2041 | 2042 | 2043 | 2044 | 2045 | 2046 | 2047 | 2048 | 2049 | 2050 | 2051 | 2052 | 2053 | 2054 | 2055 | 2056 | 2057 | 2058 | 2059 | 2060 | 2061 | 2062 | 2063 | 2064 | 2065 | 2066 | 2067 | 2068 | 2069 | 2070 | 2071 | 2072 | 2073 | 2074 | 2075 | 2076 | 2077 | 2078 | 2079 | 2080 | 2081 | 2082 | 2083 | 2084 | 2085 | 2086 | 2087 | 2088 | 2089 | 2090 | 2091 | 2092 | 2093 | 2094 | 2095 | 2096 | 2097 | 2098 | 2099 | 2100 | 2101 | 2102 | 2103 | 2104 | 2105 | 2106 | 2107 | 2108 | 2109 | 2110 | 2111 | 2112 | 2113 | 2114 | 2115 | 2116 | 2117 | 2118 | 2119 | 2120 | 2121 | 2122 | 2123 | 2124 | 2125 | 2126 | 2127 | 2128 | 2129 | 2130 | 2131 | 2132 | 2133 | 2134 | 2135 | 2136 | 2137 | 2138 | 2139 | 2140 | 2141 | 2142 | 2143 | 2144 | 2145 | 2146 | 2147 | 2148 | 2149 | 2150 | 2151 | 2152 | 2153 | 2154 | 2155 | 2156 | 2157 | 2158 | 2159 | 2160 | 2161 | 2162 | 2163 | 2164 | 2165 | 2166 | 2167 | 2168 | 2169 | 2170 | 2171 | 2172 | 2173 | 2174 | 2175 | Get your own gitartwork on jasineri/gitartwork 2176 | --------------------------------------------------------------------------------