github-issue-due-dates-action icon indicating copy to clipboard operation
github-issue-due-dates-action copied to clipboard

Configurable labels

Open mmkal opened this issue 3 years ago • 0 comments

Would be nice if we could do something like this:

name: Main Workflow
on:
  schedule:
    - cron:  '0 * * * *'
jobs:
  Ubuntu:
    name: Add labels to issues
    runs-on: ubuntu-latest
    steps:
      - name: GitHub Issue Due Dates Action
        uses: alexleventer/[email protected]
        with:
          labels:
            - days: 14
              label: 'Due in 2 weeks'
            - days: 28
              label: 'Due in 4 weeks'
          GH_TOKEN: "${{ secrets.GH_TOKEN }}"

Where the default value is

            - days: 7
              label: 'Due in 1 week'

To match the current behaviour.

mmkal avatar Mar 28 '22 12:03 mmkal