loxygenK / better-tracking-issue

🏁 A github action for making tracking issue more easy to manage and see (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loxygenK/better-tracking-issue

🚩 Make the relation of task list more visible
🌐 README is available in [English] [ζ—₯本θͺž]

Lint and formatting Build and release Testing

codecov (I'm working on it)

WIP

This action is still WIP, so there might be nasty bugs.

Currently, the action is available on v0.*.*. Bug reports are more than welcome!

What does this Action do?

This action detects the change in the task list and adds the parent issue number to the title and description of issues in the list.

  • οΈπŸ—ƒοΈ You can see what the issue belongs to in the issue list at a glance.
  • οΈπŸ—ƒοΈ A tiny tracking issue list is created at the bottom of the body.
  • οΈπŸ—ƒοΈ It can display tags even the issue is tracked by multiple issues.

Detailed description

  • Number tag (The red one)
    The tracker issue's number. The tag is added to the head of the issue's title. The emoji can be configured.

  • Title tag (The green one)
    The tracker issue's title. If the tracked issue is tracked by multiple issues, the most recent issue that started tracking is shown.

  • Annotation text (The purple one)
    The tracker issue's number. (The same information with the number tag) The text is appended to the body.

How it works (mp4)

recorded.mp4

Installing

Example workflow

on:
  issues:
    types:
      - opened
      - edited

permissions:
  issues: write

jobs:
  update-issue:
    runs-on: ubuntu-latest
    
    steps:
      - uses: loxygenK/better-tracking-issue@v0.1.0
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
Version to use

I highly recommend using one of the following to select the workflow version since this is still v0:

  • Specify the tag in the full name of the tag. ( ❌ v0 / β­• v0.1.0 )
  • Specify the full commit hash. ( ❌ built-result / β­• 01234567...89abcdef )

Avoid these for most cases!

  • ️️❌ Using the latest tag directly.
    Since there will be breaking changes in API and behavior, using the latest tag is very risky!

  • ️️❌ **Using the tags that start with intl-dev- **
    These tags are meant to be used only for the development of this workflow. These tags most likely contain bugs, so using these is very risky too!

Inputs

token (πŸ”Ά Requried)

A token to access issues. Set permission.issues: write to use GITHUB_TOKEN!

number-tag-prefix

Set the prefix used in the tag prepended to the issue title to display tracking issues' number. 🚩 is set in default.

title-tag-prefix

Set the prefix used in the tag appended to the issue title to display tracking issues' title. 🚩 is set in default.

title-tag-strategy

Specify how to select the issue to be displayed in the title tag. (Currently only one issue can be displayed to the title tag.)

Try using this if you felt that the behavior of title tags is unnatural when the issue is tracked by multiple issues.

Default? Value When a tracking issue is added Wnen a tracking issue is removed
fixed-lowest The issue with the lowest number (ID) The issue with the lowest number
fixed-highest The issue with the highest number The issue with the highest number
β˜‘οΈ latest-lowest The newly added issue The issue with the lowest number
latest-highest The newly added issue The issue with the highest number

Note I am planning to add a method to directly specify the issue to display using the issue's number.


Note Currently, changing the settings does not break existing issues.

Warning This action is still v0, so there might be breaking changes! Even in this case, I will do my best to be able to migrate the existing issue.

Detailed description

  • Number tag (The red one)
    The tracker issue's number. The tag is added to the head of the issue's title. The emoji can be configured.

  • Title tag (The green one)
    The tracker issue's title. If the tracked issue is tracked by multiple issues, the most recent issue that started tracking is shown.

  • Annotation text (The purple one)
    The tracker issue's number. (The same information with the number tag) The text is appended to the body.

Roadmaps

  • Deal with the configuration change
    • I decided to restrict the configuration instead. (At first, I thought I could log the commit hash of the setting (GitHub Action config file), but I thought that was too much effort… Maybe I will do this and be able to do a more flexible configuration in the far future)
  • Add tracking issue's title to the tracked issues (v0.1.0 here possibly)
  • Make annotation text in the body configurable

About

🏁 A github action for making tracking issue more easy to manage and see (WIP)

License:MIT License


Languages

Language:TypeScript 96.8%Language:JavaScript 2.9%Language:Shell 0.3%