Skip to content

Commit

Permalink
feat(issues): manage templates for all semrel_formulas
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Sep 30, 2019
1 parent 0148c20 commit 65cd3a9
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ ssf:
- vim
- vsftpd
semrel_files:
- .github/ISSUE_TEMPLATE/bug_report.md
- .github/ISSUE_TEMPLATE/feature_request.md
- bin/kitchen
- docs/CONTRIBUTING.rst
- docs/TOFS_pattern.rst
Expand Down
4 changes: 2 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length
title: 'feat(semantic-release): implement for this formula'
body: '* Checked using https://github.com/myii/ssf-formula/pull/42'
title: 'chore(issues): provide `Bug report` & `Feature request` templates [skip ci]'
body: '* Automated using https://github.com/myii/ssf-formula/pull/48'
# yamllint enable rule:line-length
github:
owner: saltstack-formulas
Expand Down
54 changes: 54 additions & 0 deletions ssf/files/default/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Bug report
about: Create a report to help us improve
title: '[BUG] '
labels: 'bug'
assignees: ''

---

<!--
Notes:
1. Only post _bug reports_ here.
2. Use the appropriate template for _feature requests_.
3. Please direct questions to the [`#formulas` channel on Slack](https://saltstackcommunity.slack.com/messages/C7LG8SV54/), which is bridged to `#saltstack-formulas` on Freenode.
-->

#### Describe the bug
<!-- A clear and concise description of what the bug is. -->



#### Setup
<!-- Provide links to the SLS files and/or relevant configs (be sure to remove sensitive info). -->



#### Steps to reproduce the bug
<!-- Include debug logs if possible and relevant, e.g. using `salt-minion -l debug`. -->
<!-- Alternatively, linking to Kitchen debug logs is useful, e.g. via. Travis CI. -->
<!-- Most useful is providing a failing InSpec test, which can be used to verify any proposed fix. -->



#### Expected behaviour
<!-- A clear and concise description of what you expected to happen. -->



#### Versions report
<!-- Provided by running `salt --versions-report`. Please also mention any differences in master/minion versions. -->



#### Additional context
<!-- Add any other context about the problem here. -->



---

#### Optional: How can this template be improved?
<!-- Feel free to suggest how this template can be improved. -->


42 changes: 42 additions & 0 deletions ssf/files/default/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Feature request
about: Suggest an idea for this project
title: '[FEATURE] '
labels: 'enhancement'
assignees: ''

---

<!--
Notes:
1. Only post _feature requests_ here.
2. Use the appropriate template for _bug reports_.
3. Please direct questions to the [`#formulas` channel on Slack](https://saltstackcommunity.slack.com/messages/C7LG8SV54/), which is bridged to `#saltstack-formulas` on Freenode.
-->

#### Is your feature request related to a problem?
<!-- A clear and concise description of what the problem is. -->



#### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->



#### Describe alternatives you've considered
<!-- Describe any alternative solutions or features you've considered. -->



#### Additional context
<!-- Add any other context about the feature request here. -->



---

#### Optional: How can this template be improved?
<!-- Feel free to suggest how this template can be improved. -->


10 changes: 10 additions & 0 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ ssf_node_anchors:
- pillar.example
- pillar-with-views.example
semrel_files: &semrel_files_default
# yamllint disable rule:line-length
.github/ISSUE_TEMPLATE/bug_report.md: &file__--github__ISSUE_TEMPLATE__bug_report--md
<<: *file_default
.github/ISSUE_TEMPLATE/feature_request.md: &file__--github__ISSUE_TEMPLATE__feature_request--md
<<: *file_default
# yamllint enable rule:line-length
bin/kitchen: &file__bin__kitchen
<<: *file_default
mode: 755
Expand Down Expand Up @@ -1245,6 +1251,10 @@ ssf:
- ssf/defaults.yaml
- ssf/formulas.yaml
semrel_files:
# yamllint disable rule:line-length
.github/ISSUE_TEMPLATE/bug_report.md: *file__--github__ISSUE_TEMPLATE__bug_report--md
.github/ISSUE_TEMPLATE/feature_request.md: *file__--github__ISSUE_TEMPLATE__feature_request--md
# yamllint enable rule:line-length
docs/CONTRIBUTING.rst: *file__docs__CONTRIBUTING--rst
docs/TOFS_pattern.rst: *file__docs__TOFS_pattern--rst
formula/libtofs.jinja: *file__formula__libtofs--jinja
Expand Down

0 comments on commit 65cd3a9

Please sign in to comment.