Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support prefixed labels like points/3 #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

negz
Copy link

@negz negz commented May 27, 2021

Fixes #10

I've tested this out on a dummy repo and it appears to work as expected. I used the below config:

name: Project Story Points

on:
  issues:
    types: [labeled, unlabeled, opened, closed]
  project_card:
    types: [moved, created, deleted]
  project_column:
    types: [moved, created, deleted, updated]

jobs:
  aggregate:
    runs-on: ubuntu-18.04
    steps:
      - name: Update Project Column Estimates
        uses: negz/github-estimates-action@prefix
        with:
          owner: negz
          repo: fiddle
          token: ${{ secrets.GITHUB_TOKEN }}
          prefix: 'points/

Dragging the below issue between the two columns results in the column titles being updated.

pointy

negz added 2 commits May 27, 2021 05:22
Signed-off-by: Nic Cope <negz@rk0n.org>
Signed-off-by: Nic Cope <negz@rk0n.org>
@negz
Copy link
Author

negz commented May 27, 2021

I've also confirmed that an issue labelled as points/NaN doesn't cause any issues - it's just ignored and not counted.

nananana

Signed-off-by: Nic Cope <negz@rk0n.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept action input, with label prefix, to support labels with a specific prefix over a static description.
1 participant