Eisenhower is a GitHub action that adds Eisenhower matrix priority labels to issues based on the content of the issue.
Eisenhower will take the following steps,
- Look through all issues
- Search for required string
- Assign label based on string found.
IF
High
Now
THEN assign label P1
IF
High
Later
THEN assign label P2
IF
Low
Now
THEN assign label P3
IF
Low
Later
THEN assign label P4
In your repo
/.github/ISSUE_TEMPLATE directory, ensure that your issue templates include the following.
body:
- type: dropdown
id: impact
attributes:
label: Impact
description: How important is this?
options:
- High
- Low
validations:
required: true
- type: dropdown
id: urgency
attributes:
label: Urgency
description: Should this be fixed now or can it be done later?
options:
- Now
- Later
validations:
required: true
This ensures that all subsequent issues will have the strings that we need to search for.
Any issues that do not feature the Impact and Urgency sections will be
assigned the label P?
and have
the following appended to the issue body.
?
?
As GitHub actions currently offers no cranial data integration, you will need to go back through these issues and complete those sections so that the correct Eisenhower labels can be assigned.
If you manually assign a Px label to an issue, Eisenhower will remove it and replace it with the correct label, as defined by the issue body.
If your repo does not already have Px labels, Eisenhower will create them.
GH_ACCESS_TOKEN
- Your chosen bot user GitHub personal access token.
- access to edit issues at minimum.
- repo secret
GH_REPOSITORY
andGH_ISSUE_NUMBER
are provided by the GitHub context, but do still need to be included.- .env(.example)
- This is for local development only.
Eisenhower takes no inputs.
Copypasta this to [repo]/.github/workflows/eisenhower.yml
name: Eisenhower
on:
issues:
types: [opened, reopened, edited]
env:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
GH_REPOSITORY: ${{ github.repository }}
GH_ISSUE_NUMBER: ${{ github.event.issue.number }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Prioritize issue with Geek.Zone Eisenhower
uses: GeekZoneHQ/eisenhower@main
Big thanks to,