Skip to content

Commit 0495078

Browse files
authored
Ci/add concurrency-add back feature template (#262)
* Add concurrency to workflows so that a new commit to a PR or a new push to a tagged branch runs the workflow while cancelling the already running ones for the same workflow and PR/tag. * Add back the feature issue template * Steps for implementing the feature is no longer required.
1 parent 3d560f4 commit 0495078

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: 💡 New feature
2+
description: Enhancements to the code
3+
title: "Add ..."
4+
labels: ["enhancement"]
5+
assignees: [""]
6+
7+
body:
8+
9+
- type: markdown
10+
attributes:
11+
value: '# 📝 **New Feature**'
12+
13+
- type: textarea
14+
id: feature-description
15+
attributes:
16+
label: Description of the feature
17+
placeholder: Describe what feature you devised and why it is useful for the project
18+
validations:
19+
required: true
20+
21+
- type: markdown
22+
attributes:
23+
value: '# 💡 **Implementation**'
24+
25+
- type: textarea
26+
id: implementation-description
27+
attributes:
28+
label: Steps for implementing the feature
29+
placeholder: Describe how this new feature can be implemented
30+
validations:
31+
required: false
32+
33+
- type: markdown
34+
attributes:
35+
value: '# 🔗 **References**'
36+
37+
- type: textarea
38+
id: references
39+
attributes:
40+
label: Useful links and references
41+
placeholder: A list of links and references to help when implementing the feature
42+
validations:
43+
required: false

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- master
1212
- "release*"
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
1418
env:
1519
PYANSYS_OFF_SCREEN: True
1620
DPF_PORT: 32772

.github/workflows/style.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- master
1313
- "release*"
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
build:
1721
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)