Skip to main content

Selection of tools to use with GitHub

Project description

ops-py-github-tools

Description

A collection of various GitHub Tools:

  • Create or get GitHub Repo Milestones
  • Get GitHub repo Pull Requests info
  • Create GitHub repo issue templates
  • Perform requests to GitHub

Installation pip install ops-py-github-tools

Usage

Please refer to github_tools_examples.py

Create desired template based on the title of the GitHub Issue

Example:

python3 -m github_tools.github_issue_templates --title "📇 mc-isb: Monitoring documentation" --templates_dir .github/ISSUE_TEMPLATE \
     --template_filenames c_epic.md c_epic_maintenance.md d_collection.md d_collection_maintenance.md e_task.md --team_alias myt --team_name "My Team" \
     --team_alias_placeholder "<team_alias>" --team_name_placeholder "<team_name>" \
     --write_templates "" --templates_version v2.0.1 > template.md

Example output:

cat template.md 
---
name: "\U0001f4c7 Collection"
about: "Group(s) of tasks"
title: "\U0001f4c7 c-myt:"
version: "v2.0.1"
---

## Purpose

> Remember the goal type of your tasks here. If any existing tasks are related to another :trophy: Goal type, they should be moved to respective :crown: Epic ->  inside that specific :card_index: collection.

### Summary

DevOps link: `none` / AB#ticketNumber

This collection includes tasks related to..... <!-- Summarise overall reason for tasks in this collection -->

#### Acceptance Criteria

- None

#### Task(s)

- [ ] None

#### Pull Requests

- [ ] None


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ops_py_github_tools-1.1.5.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ops_py_github_tools-1.1.5-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ops_py_github_tools-1.1.5.tar.gz.

File metadata

  • Download URL: ops_py_github_tools-1.1.5.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ops_py_github_tools-1.1.5.tar.gz
Algorithm Hash digest
SHA256 12365ae9b198464efdb4af7a44b471febe6f77f1d553555f6e7fdcc9e058d5ee
MD5 73bf8858f59ed88346628594477198e5
BLAKE2b-256 c571bb8b687d80588eaa1c2181fe275fb57688e9b279e3e2f12019424f91ad1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ops_py_github_tools-1.1.5.tar.gz:

Publisher: build_pypi.yml on equinor/ops-py-github-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ops_py_github_tools-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ops_py_github_tools-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 af997663052f2cfb542781487ad245fc41b83c70ef29b9fa5192619a629fa227
MD5 9d54f788c9001690a778462e3d150c05
BLAKE2b-256 df554f75c7d000f9ddfc93cfee1f311e612ce85a2d1a0d08a435d2a20417598d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ops_py_github_tools-1.1.5-py3-none-any.whl:

Publisher: build_pypi.yml on equinor/ops-py-github-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page