{"id":20374885,"url":"https://github.com/gisce/apply_pr","last_synced_at":"2025-06-27T11:41:38.240Z","repository":{"id":20908312,"uuid":"24196057","full_name":"gisce/apply_pr","owner":"gisce","description":"Fabric tools to apply pull requests on production","archived":false,"fork":false,"pushed_at":"2025-02-05T11:18:34.000Z","size":302,"stargazers_count":4,"open_issues_count":8,"forks_count":3,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-12T07:16:53.776Z","etag":null,"topics":["deployment","fabric","github","hacktoberfest","pull-requests"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gisce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-18T16:32:25.000Z","updated_at":"2025-02-05T11:18:38.000Z","dependencies_parsed_at":"2024-01-17T10:49:29.335Z","dependency_job_id":"650a2209-03d1-41f0-a430-fb37d19f5bdc","html_url":"https://github.com/gisce/apply_pr","commit_stats":{"total_commits":265,"total_committers":21,"mean_commits":"12.619047619047619","dds":0.6716981132075472,"last_synced_commit":"adeea04866743a18bc25b26ee7d3bf12efcef076"},"previous_names":[],"tags_count":89,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fapply_pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fapply_pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fapply_pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fapply_pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gisce","download_url":"https://codeload.github.com/gisce/apply_pr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530609,"owners_count":21119601,"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":["deployment","fabric","github","hacktoberfest","pull-requests"],"created_at":"2024-11-15T01:27:31.828Z","updated_at":"2025-04-12T07:17:01.688Z","avatar_url":"https://github.com/gisce.png","language":"Python","readme":"## Apply pull requests\n\nFabric tools to apply pull requests in servers using `git format-patch` and\n`git am`.\nIs integrated with the new [deployment\nAPI](https://developer.github.com/v3/repos/deployments/) from GitHub.\n\nTo use you must [generate an OAuth token](https://github.com/settings/tokens/new)\nfrom GitHub and set to the `GITHUB_TOKEN` environment variable.\n\n## Command line scripts\n\nThis repository uses the [Click](http://click.pocoo.org/5/) package to\nregister commands that call the fabric scripts.\n\nThe following commands are supported with `sastre`:\n\n| Console Command    | Description                                                         | Wiki page                                                                                          |\n|:---------------:   |:--------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|\n| `deploy`           | Apply a PR to a remote server                                       | [Deploy a pull request](https://github.com/gisce/apply_pr/wiki/Apply-a-Pull-Request)               |\n| `check_prs`        | Check the status of the PRs for a set of PRs                        | [Check pull requests status](https://github.com/gisce/apply_pr/wiki/Check-pull-requests-status)    |\n| `status`           | Update the status of a deploy into GitHub                           | [Mark deploy status](https://github.com/gisce/apply_pr/wiki/Mark-deploy-status)                    |\n| `create_changelog` | Create a chnagelog for the given milestone                          | [Create Changelog](https://github.com/gisce/apply_pr/wiki/Create-Changelog)                        |\n| `check_pr`         | **Deprecated:** Check if the PR's commits are applied on the server | [Check Applied patches](https://github.com/gisce/apply_pr/wiki/Check-applied-patches-(deprecated)) |\n\n## Install\n\n```bash\n# Install from Pypi\npip install apply_pr\n```\n\n## Usage\n\n**NOTE**: do not include braces on the following commands\n\n### DEPLOY\n\n```bash\nUsage: deploy [OPTIONS]\n\nOptions:\n  --pr TEXT              Pull request to deploy  [required]\n  --host TEXT            Host to where to be deployed  [required]\n  --from-number INTEGER  From commit number\n  --from-commit TEXT     From commit hash (included)\n  --force-hostname TEXT  Force hostname  [default: False]\n  --owner TEXT           GitHub owner name  [default: gisce]\n  --repository TEXT      GitHub repository name  [default: erp]\n  --src TEXT             Remote src path  [default: /home/erp/src]\n  --help                 Show this message and exit.\n```\n\n### STATUS\n\n```bash\nUsage: status [OPTIONS]\n\nOptions:\n  --deploy-id TEXT                Deploy id to mark\n  --status [success|error|failure]\n                                  Status to set  [default: success]\n  --owner TEXT                    GitHub owner name  [default: gisce]\n  --repository TEXT               GitHub repository name  [default: erp]\n  --help                          Show this message and exit.\n```\n\n### CHECK PRS\n\n```bash\nUsage: check_prs [OPTIONS]\n\nOptions:\n  --prs TEXT         List of pull request separated by space (by default)\n                     [required]\n  --separator TEXT   Character separator of list by default is space\n                     [default:  ; required]\n  --owner TEXT       GitHub owner name  [default: gisce]\n  --repository TEXT  GitHub repository name  [default: erp]\n  --help             Show this message and exit.\n```\n\n### CREATE CHANGELOG\n\n```bash\nUsage: create_changelog [OPTIONS]\n\nOptions:\n  -m, --milestone TEXT    Milestone to get the issues from (version)\n                          [required]\n  --issues / --no-issues  Also get the data on the issues  [default: False]\n  --changelog_path TEXT   Path to drop the changelog file in  [default: /tmp]\n  --owner TEXT            GitHub owner name  [default: gisce]\n  --repository TEXT       GitHub repository name  [default: erp]\n  --help                  Show this message and exit.\n```\n\n### CHECK PR (deprecated)\n\n```bash\nUsage: check_pr [OPTIONS]\n\nOptions:\n  --pr TEXT          Pull request to check  [required]\n  --host TEXT        Host to check  [required]\n  --owner TEXT       GitHub owner name  [default: gisce]\n  --repository TEXT  GitHub repository name  [default: erp]\n  --src TEXT         Remote src path  [default: /home/erp/src]\n  --help             Show this message and exit.\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fapply_pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgisce%2Fapply_pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fapply_pr/lists"}