Skip to main content

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


Metadata

Release files for ops-py-github-tools 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ops-py-github-tools 1.1.5
File Size Uploaded
ops_py_github_tools-1.1.5.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ops-py-github-tools 1.1.5
File Interpreter ABI Platform
ops_py_github_tools-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / ops_py_github_tools-1.1.5.tar.gz

Download URL ops_py_github_tools-1.1.5.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
12365ae9b198464efdb4af7a44b471febe6f77f1d553555f6e7fdcc9e058d5ee
BLAKE2b-256 checksum
How to use checksums
c571bb8b687d80588eaa1c2181fe275fb57688e9b279e3e2f12019424f91ad1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2024.

Transparency log

Release files / ops_py_github_tools-1.1.5-py3-none-any.whl

Download URL ops_py_github_tools-1.1.5-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af997663052f2cfb542781487ad245fc41b83c70ef29b9fa5192619a629fa227
BLAKE2b-256 checksum
How to use checksums
df554f75c7d000f9ddfc93cfee1f311e612ce85a2d1a0d08a435d2a20417598d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page