Skip to content

[Feature]: Add function Add-ServiceDeskReminder #49

[Feature]: Add function Add-ServiceDeskReminder

[Feature]: Add function Add-ServiceDeskReminder #49

name: Add issue to project
on:
workflow_dispatch:
issues:
types:
- opened
- reopened
- labeled
jobs:
add-to-project:
name: Add issue [${{ github.event.issue.number }}] to project
runs-on: ubuntu-latest
steps:
- name: Add issue to project [PowerShell Modules]
if: github.event.issue.state != 'closed'
uses: actions/[email protected]
with:
project-url: ${{ vars.MODULES_PROJECT_URL }}
github-token: ${{ secrets.CLASSIC_TOKEN }}
labeled: >
item: chat bot,
item: documentation,
item: function,
item: module,
item: script,
item: unit test,
item: integration test,
type: bug,
type: enhancement,
type: feature request,
type: question,
type: research
label-operator: OR
- name: Set card fields for project [PowerShell Modules]
if: |
github.event.issue.state != 'closed' && (
contains(github.event.issue.labels.*.name, 'item: chat bot') ||
contains(github.event.issue.labels.*.name, 'item: documentation') ||
contains(github.event.issue.labels.*.name, 'item: function') ||
contains(github.event.issue.labels.*.name, 'item: module') ||
contains(github.event.issue.labels.*.name, 'item: script') ||
contains(github.event.issue.labels.*.name, 'item: unit test') ||
contains(github.event.issue.labels.*.name, 'item: integration test') ||
contains(github.event.issue.labels.*.name, 'type: bug') ||
contains(github.event.issue.labels.*.name, 'type: enhancement') ||
contains(github.event.issue.labels.*.name, 'type: feature request') ||
contains(github.event.issue.labels.*.name, 'type: question') ||
contains(github.event.issue.labels.*.name, 'type: research')
)
uses: endbug/project-fields@v2
with:
project_url: ${{ vars.MODULES_PROJECT_URL }}
operation: set
fields: Created At,Status
values: ${{ github.event.issue.created_at }},Backlog
github_token: ${{ secrets.CLASSIC_TOKEN }}
- name: Add issue to project [Workflow Automation]
if: github.event.issue.state != 'closed'
uses: actions/[email protected]
with:
project-url: ${{ vars.AUTOMATION_PROJECT_URL }} # Workflow Automation
github-token: ${{ secrets.CLASSIC_TOKEN }}
labeled: >
item: webhook,
item: custom action,
item: workflow,
item: template
label-operator: OR
- name: Set card fields for project [Workflow Automation]
if: |
github.event.issue.state != 'closed' && (
contains(github.event.issue.labels.*.name, 'item: webhook') ||
contains(github.event.issue.labels.*.name, 'item: custom action') ||
contains(github.event.issue.labels.*.name, 'item: workflow') ||
contains(github.event.issue.labels.*.name, 'item: template')
)
uses: endbug/project-fields@v2
with:
project_url: ${{ vars.AUTOMATION_PROJECT_URL }} # PowerShell Modules
operation: set
fields: Created At,Status
values: ${{ github.event.issue.created_at }},Backlog
github_token: ${{ secrets.CLASSIC_TOKEN }}