Skip to main content

Python package Coverage Status

github-project-automation

This tool will help you maintain and organize your GitHub project using an automation tool.

Use case

In case you work with GitHub projects, and maintain a board for your project this tool is for you. As we offer a functionality of managing your board in GitHub project boards. This is by searching for the issues or pull request you wish to include in the board (By a set of filter you provide) and placing them in the right place in your board for you - both in the correct column and the correct place within the column.

The supported functionality is:

  • Adding new issues or pull requests to your board.
  • Moving issues or pull requests to the correct column of your project, with the priority in mind.
  • Sorting your issues or pull requests within your existing columns by their priorities and creation times.
  • Removing issues or pull requests that fail to meet your filters.

In order to configure github-project-automation you will need to create an .ini file, here is an example:

[General]
closed_issues_column = Done
merged_pull_requests_column = Merged
project_owner = khulnasoft
repository_name = test
project_number = 1
priority_list = Critical,High,Medium,Low
filter_labels=bug
must_have_labels=test
cant_have_labels=not test
column_names = Queue,In progress,Review in progress,Waiting for Docs
column_rule_desc_order = Queue,Waiting for Docs,Review in progress,In progress

[Actions]
remove
add
move

[Queue]
issue.assignees = false

[In progress]
issue.assignees = true
pull_request.assignees = true

[Review in progress]
issue.assignees = true
issue.pull_request = true
issue.pull_request.review_requested = true
pull_request.review_requested = true

[Waiting for Docs]
issue.assignees = true
issue.pull_request = true
issue.pull_request.review_requested = true
issue.pull_request.review_completed = true
issue.pull_request.assignees = khulnasoft

While the General and Actions sections must be in the .ini the rest of the sections are dynamic, and each represents the rules for each of your columns. The keys listed in the column section are the attributes of the classes which represent the issue or pull request you are working on. For a more detailed explanation please click here

GitHub Actions

In order to use this in a github action please follow this documentation.


Usage

There are three options to run the tool:

  1. Configure an .ini file like described above and then using the github-project-automation manage -c <path to ini> command or the wehbhook-manage command which is used for events.
  2. Import the code and create some more custom rules for your self, like importing issues from another board(FYI this will be added to the tool as well).
  3. GitHub actions - In order to use this in a github action please follow this documentation.

Token

In any solution you will have to set an envioroonment variable GITHUB_TOKEN which is the token you will generate in order for the tool to connect to your GitHub project. Although we do offer the option to pass that along with your client object while taking the API option(Usage case number 2).

Metadata

Release files for github-project-automation 1.1.0

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

Source distribution (sdist)

Source distribution for github-project-automation 1.1.0
File Size Uploaded
github_project_automation-1.1.0.tar.gz 34.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for github-project-automation 1.1.0
File Interpreter ABI Platform
github_project_automation-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.3 kB

Release files / github_project_automation-1.1.0.tar.gz

Download URL github_project_automation-1.1.0.tar.gz
Size 34.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b642ad2845cbb2df73ed92409dfc6f3f6e0233338febb40b4c07c3ca77831628
BLAKE2b-256 checksum
How to use checksums
c73ddcebbe97a57b4ca79d9aa7f777998620dba63d4e8e9e5cb1d0baba545d2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / github_project_automation-1.1.0-py3-none-any.whl

Download URL github_project_automation-1.1.0-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f027d64f248eb3026d5d6087475fd8a9b813e244df57ce516d64a1901c9a3c56
BLAKE2b-256 checksum
How to use checksums
269e00dd01e330f8c2467298048a9a3e7a2a2e476b59e3c5eba59ca4c487547b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

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