Check done issues on a GitHub project board
Project description
check_done
Check_done is a command line tool to check that GitHub issues and pull requests in a project board with a status of "Done" are really done.
It checks that:
- It is closed.
- It has an assignee.
- It is assigned to a milestone.
- All tasks are completed (checkboxes in the description).
Additionally, for pull requests, it checks if they reference an issue.
This ensures a consistent quality on done issues and pull requests, and helps to notice if they were accidentally deemed to be done too early.
Installation
In order to gain access to your project board, issues, and pull requests, check_done needs to be authorized. The exact way to do that depends on whether your project belongs to a GitHub user or organization.
For user projects, create a personal access token with the permission: read:project
.
For organization projects, follow the instructions to Installing a GitHub App from a third party using the Check_done app. Remember the app ID and private key of the installed app in order to use for configuration.
Configuration
Check_done can be configured by having a .check_done.yaml
in your current directory, or any of the directories above.
Alternatively, you can specify a specific location, for example:
check_done --config some/path/.check_done.yaml
Project and authentication
A minimum configuration requires the URL of the project board and the authentication information from the installation.
The project URL can be seen in the web browser's URL bar when visiting the project board, for example: https://github.com/users/my-username/projects/1/views/1
(for a user) or https://github.com/my-organization/projects/1/
(for an organization).
An example of a user project could look like this:
project_url: "https://github.com/users/my-username/projects/1/views/1"
personal_access_token: "ghp_xxxxxxxxxxxxxxxxxxxxxx"
For an organization project:
project_url: "https://github.com/orgs/my_username/projects/1/views/1"
github_app_id: "1234567"
github_app_private_key: "-----BEGIN RSA PRIVATE KEY-----
something_something
-----END RSA PRIVATE KEY-----
"
In order to avoid having to commit tokens and keys into your repository, you can use environment variables for the values in the configuration YAML by starting them with a $
symbol and wrapping them with curly braces. For example:
personal_access_token: ${MY_PERSONAL_ACCESS_TOKEN_ENVVAR}
Changing the project status to check
By default, check_done checks all issues and pull requests in the last selectable project status. If you left the default names when creating the GitHub project board, this would be the "✅ Done"
project status.
If you want to check a different project status, you can specify a partial or exact matching name with this option. For example:
project_status_name_to_check = "Done"
The name takes the first project status that partially matches the case sensitivity. For example, "Done"
will also match "✅ Done"
, but not "done"
.
If no project status matches, the resulting error messages will show you the exact name of the available project status selections.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file check_done-1.0.0.tar.gz
.
File metadata
- Download URL: check_done-1.0.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b180f8c6ca732b2bfa1dd3f8fd4e86112962a31c017f2895d96ccb1737340ef |
|
MD5 | c62307625ef1cb4bad14781ced3df064 |
|
BLAKE2b-256 | d989697d53f63168df531b8f2cf1f26f0ce494239ac57ea6716a92c2de72074e |
File details
Details for the file check_done-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: check_done-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efac3e55c949a3e73daf6c5c9fd58342a922224ff9507edb1899f2923106d04 |
|
MD5 | db15c4bb1142e89d684aac498955396a |
|
BLAKE2b-256 | 39eae315f9a090f52d537212ed729e25c6590a212465b5aa874ea5d8662a28c3 |