-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.22 KB
/
scrum_new_epic.yml
File metadata and controls
37 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: 🔁 SCRUM PROJECT
on:
workflow_call:
secrets:
TEAM_PROJECT_URL:
description: "URL del tablero de Github del equipo"
required: true
ADD_TO_PROJECT_PAT:
description: "Token de generación"
required: true
jobs:
createEpic:
name: 🗄 Creating Epic
if: contains( github.event.issue.labels.*.name, 'milestone') || contains( github.event.issue.labels.*.name, 'milestone') || contains( github.event.issue.title, '[Epic]')
uses: ./.github/workflows/create_milestone_from_issue.yml
secrets:
TEAM_PROJECT_URL: ${{ secrets.TEAM_PROJECT_URL }}
ADD_TO_PROJECT_PAT: ${{ secrets.ADD_TO_PROJECT_PAT }}
addMilestoneToIssueCreated:
# Asignar issue de milestone al milestone creado
name: ✔ Add issue to Epic
if: contains(github.event.issue.labels.*.name, 'milestone')
needs: createEpic
runs-on: ubuntu-latest
steps:
- uses: guguducken/milestone-add-action@v0.0.1
with:
action-token: ${{ secrets.ADD_TO_PROJECT_PAT}}
co-milestones: >
{
"${{ github.event.issue.title }}":"${{ github.event.issue.title }}"
}
# Crear las tareas https://github.com/marketplace/actions/issue-creator