Skip to content

Commit

Permalink
Add issue labeler workflow and update issue template
Browse files Browse the repository at this point in the history
  • Loading branch information
kavya498 committed Dec 14, 2021
1 parent f6dcf98 commit 30e45a3
Show file tree
Hide file tree
Showing 7 changed files with 237 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/Documentation_Request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: 🚀 Terraform IBM Provider Documentation
about: If something isn't documented as expected 🤔 / I have a suggestion regarding Terraform IBM Provider Documentation
labels: Documentation
---

<!--- Please keep this note for the community --->

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

<!--- Thank you for keeping this note for the community --->
### New or Affected Resource(s) or Datasource(s)

<!--- Please list the new or affected resources and data sources. --->

* ibm_XXXXX

### Description

<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.
--->
### References

<!---
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation?
--->

* #0000
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Feature_Request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: 🚀 Feature Request
about: I have a suggestion (and might want to implement myself 🙂)!
labels: enhancement
labels: Enhancement
---

<!--- Please keep this note for the community --->
Expand Down
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/Terraform_IBM_Provider_Questions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: 🚀 Terraform IBM Provider Questions
about: I have a question / query regarding Terraform IBM Provider
labels: Question
---

<!--- Please keep this note for the community --->

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

<!--- Thank you for keeping this note for the community --->

### Question

<!--- Please leave a helpful description of the feature request here. --->

### New or Affected Resource(s) or Datasource(s)

<!--- Please list the new or affected resources and data sources. --->

* ibm_XXXXX

### Potential Terraform Configuration

<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code --->

```hcl
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.
```

### References

<!---
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation?
--->

* #0000
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: false
contact_links:
- name: Terraform Core Bug Reports and Feature Requests
url: https://github.com/hashicorp/terraform/issues/new/choose
about: Terraform Core, which handles the Terraform configuration language, CLI commands, and resource dependency graph, has its own codebase. Bug reports and feature requests for those pieces of functionality should be directed to that repository.
- name: Terraform Language or Workflow Questions
url: https://discuss.hashicorp.com/c/terraform-core
about: Please ask and answer language or workflow related questions through the Terraform Core Community Forum.

102 changes: 102 additions & 0 deletions .github/labeler-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
bug:
# General:
# panic:
# IBM SDK Go:
# ValidationException:.*failed to satisfy constraint: Member must not be null
# Terraform CLI:
# Provider produced inconsistent final plan
# Provider produced inconsistent result after apply
# produced an invalid new value
# produced an unexpected new value
# Terraform Plugin SDK:
# doesn't support update
# Invalid address to set
- "(doesn't support update|failed to satisfy constraint: Member must not be null|Invalid address to set|panic:|produced an (invalid|unexpected) new value|Provider produced inconsistent (final plan|result after apply))"
crash:
- 'panic:'
sweeper:
- 'sweeper'
#
# IBM Per-Service Labeling
#
# Catch the following in issues to prevent false positives:
# *ibm_XXX
# * ibm_XXX
# * `ibm_XXX`
# -ibm_XXX
# - ibm_XXX
# - `ibm_XXX`
# data ibm_XXX
# data "ibm_XXX"
# resource ibm_XXX
# resource "ibm_XXX"
service/API Gateway:
- '((\*|-) ?`?|(data|resource) "?)ibm_api_gateway'
service/Activity Tracker:
- '((\*|-) ?`?|(data|resource) "?)ibm_atracker'
service/App Configuration:
- '((\*|-) ?`?|(data|resource) "?)ibm_app_config'
service/APPID Management:
- '((\*|-) ?`?|(data|resource) "?)ibm_appid'
service/Catalog Management:
- '((\*|-) ?`?|(data|resource) "?)ibm_cm_'
service/Certificate Manager:
- '((\*|-) ?`?|(data|resource) "?)ibm_certificate_manager_'
service/Classic Infrastructure:
- '((\*|-) ?`?|(data|resource) "?)(ibm_compute|ibm_cdn|ibm_firewall|ibm_lb|ibm_lbaas|ibm_network|ibm_storage|ibm_security|ibm_subnet|ibm_hardware|ibm_ipsec)'
service/Cloud Databases:
- '((\*|-) ?`?|(data|resource) "?)ibm_(cloudant|database)'
service/Cloud Foundary:
- '((\*|-) ?`?|(data|resource) "?)(ibm_account|ibm_org|ibm_space|ibm_service|ibm_app_domain_private|ibm_app_domain_shared|ibm_app_route)'
service/CBR:
- '((\*|-) ?`?|(data|resource) "?)ibm_cbr'
service/Container Registry:
- '((\*|-) ?`?|(data|resource) "?)ibm_cr_'
service/DNS Services:
- '((\*|-) ?`?|(data|resource) "?)ibm_dns_'
service/Direct Link Gateway:
- '((\*|-) ?`?|(data|resource) "?)ibm_dl_'
service/Enterprise Managent:
- '((\*|-) ?`?|(data|resource) "?)ibm_enterprise'
service/Event Notificateion:
- '((\*|-) ?`?|(data|resource) "?)ibm_en_'
service/Event Streams:
- '((\*|-) ?`?|(data|resource) "?)ibm_event_streams'
service/Functions:
- '((\*|-) ?`?|(data|resource) "?)ibm_function_'
service/Global Tagging:
- '((\*|-) ?`?|(data|resource) "?)ibm_resource_tag'
service/HPCS:
- '((\*|-) ?`?|(data|resource) "?)ibm_hpcs'
service/IBM Cloud Shell:
- '((\*|-) ?`?|(data|resource) "?)ibm_cloud_shell'
service/IAM:
- '((\*|-) ?`?|(data|resource) "?)ibm_iam_'
service/IAMPAP:
- '((\*|-) ?`?|(data|resource) "?)ibm_iam*_policy'
service/Internet Services:
- '((\*|-) ?`?|(data|resource) "?)ibm_cis'
service/Key Management Services:
- '((\*|-) ?`?|(data|resource) "?)ibm_(kms_|kp_)'
service/Kubenetes Service:
- '((\*|-) ?`?|(data|resource) "?)ibm_(container_|ob_)'
service/Object Storage:
- '((\*|-) ?`?|(data|resource) "?)ibm_cos_'
service/Power Systems:
- '((\*|-) ?`?|(data|resource) "?)ibm_pi_'
service/Push notifications:
- '((\*|-) ?`?|(data|resource) "?)ibm_pn_'
service/Resource Management:
- '((\*|-) ?`?|(data|resource) "?)ibm_resource_'
service/Satellite:
- '((\*|-) ?`?|(data|resource) "?)ibm_satellite_'
service/Schematics:
- '((\*|-) ?`?|(data|resource) "?)ibm_schematics_'
service/Secrets Manager:
- '((\*|-) ?`?|(data|resource) "?)ibm_secrets_manager_'
service/SCC:
- '((\*|-) ?`?|(data|resource) "?)ibm_scc_'
service/Transit Gateway:
- '((\*|-) ?`?|(data|resource) "?)ibm_tg_'
service/VPC Infrastructure:
- '((\*|-) ?`?|(data|resource) "?)ibm_is_'
23 changes: 23 additions & 0 deletions .github/workflows/issue_comment_created.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Issue Comment response labels

on:
issue_comment:
types: [created]

jobs:
add_waiting_response_label:
if: github.event_name == 'issue_comment' && contains(fromJSON('["hkantare","kavya498"]'), github.actor)
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
waiting-response
remove_waiting_response_label:
if: github.event_name == 'issue_comment' && !contains(fromJSON('["dependabot[bot]","hkantare","kavya498"]'), github.actor)
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: |
waiting-response
15 changes: 15 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
issues:
types: [opened]
name: Issue Labels
jobs:
labelIssues:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apply Issue Labels
uses: github/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler-issue.yml
enable-versioned-regex: 0

0 comments on commit 30e45a3

Please sign in to comment.