{"id":13523536,"url":"https://github.com/chtaube/YOURLS-plugin-gitversion","last_synced_at":"2025-04-01T00:31:56.986Z","repository":{"id":22736249,"uuid":"26081276","full_name":"chtaube/YOURLS-plugin-gitversion","owner":"chtaube","description":"YOURLS plugin: Adds version information from git repository into the admin area","archived":true,"fork":false,"pushed_at":"2014-11-07T11:31:06.000Z","size":144,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-02T07:33:43.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chtaube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-02T13:31:58.000Z","updated_at":"2023-01-28T11:21:33.000Z","dependencies_parsed_at":"2022-08-21T10:30:31.155Z","dependency_job_id":null,"html_url":"https://github.com/chtaube/YOURLS-plugin-gitversion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chtaube%2FYOURLS-plugin-gitversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chtaube%2FYOURLS-plugin-gitversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chtaube%2FYOURLS-plugin-gitversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chtaube%2FYOURLS-plugin-gitversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chtaube","download_url":"https://codeload.github.com/chtaube/YOURLS-plugin-gitversion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563353,"owners_count":20797443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:01:01.021Z","updated_at":"2025-04-01T00:31:56.724Z","avatar_url":"https://github.com/chtaube.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":["G"],"readme":"YOURLS-gitversion plugin\n========================\n\nIf you are running [YOURLS](http://yourls.org) from a release tarball this\nplugin is nothing for you.\n\nBut if you are following the [YOURLS repository on\nGitHub](https://github.com/YOURLS/YOURLS) to stay on the edge of the latest\ncommits and improvements, maybe this plugin is for you!\n\nThis plugin adds version information from the git repository into the\nfooter of the admin page. The version information is derived from the output of\n`git describe --long --tags`.\n\nBefore:\n\n\tPowered by YOURLS v 1.7.1 – 3 queries\n\nAfter:\n\n\tPowered by YOURLS v 1.7.1 – 3 queries\n\tv 1.7-git-80.37f54c7 (remotes/upstream/master)\n\nMeaning the last commit in your repository is named\n[37f54c7](https://github.com/YOURLS/YOURLS/commit/37f54c79223c21f0ef7cd15ab62992f9205f748e)\nwhich is *80 commits* in the future of [version tag\n*1.7*](https://github.com/YOURLS/YOURLS/tree/1.7). – Now, how cool is that!? ;)\n\n\n# Installation\n\n## Git Hooks\n\nCurrently, the plugin does not execute `git describe` directly, but depends on\na `version` file that is being updated on each checkout or commit by a Git\nhook. Some simple hook files are included in the `git-hooks/` directory. Just\ncopy them into `.git/hooks/` of your YOURLS installation and make them\nexecutable (on POSIX like systems: `chmod +x\n.git/hooks/post-{commit,checkout}`).\n\n\n## Plugin installation\n\nCopy the directory `gitversion/` from this repository to your YOURLS plugin\ndirectory `user/plugins/` (as a result the YOURLS-directory\n`user/plugins/gitversion` should show the file `plugin.php`).\n\nGo to the admin panel and activate the plugin *Git Version*.\n\nPlease note, the `version` file will be written on the next *checkout* or\n*commit*.  Before that, the plugin will simply tell you that it is missing the file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchtaube%2FYOURLS-plugin-gitversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchtaube%2FYOURLS-plugin-gitversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchtaube%2FYOURLS-plugin-gitversion/lists"}