Skip to content

Commit

Permalink
ci(workflows): Add workflow to populate pr
Browse files Browse the repository at this point in the history
  • Loading branch information
gavanlamb committed Oct 15, 2024
1 parent 09ebe4c commit 5c132a7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# GH-{{ISSUE_IDENTIFIER}} - {{ISSUE_TITLE}}
# #{{ISSUE_NUMBER}} - {{PULL_REQUEST_TITLE}}

[![Preview](https://github.com/cupel-co/terraform-aws-backend/actions/workflows/preview.yml/badge.svg?branch={{BRANCH_NAME}}&event=pull_request)](https://github.com/cupel-co/terraform-aws-backend/actions/workflows/preview.yml?query=branch%3A{{BRANCH_NAME}})
[![TF Lint](https://github.com/cupel-co/terraform-aws-backend/actions/workflows/tflint.yml/badge.svg?branch={{BRANCH_NAME}}&event=pull_request)](https://github.com/cupel-co/terraform-aws-backend/actions/workflows/tflint.yml?query=branch%3A{{BRANCH_NAME}})
[![TF Sec](https://github.com/cupel-co/terraform-aws-backend/actions/workflows/tfsec.yml/badge.svg?branch={{BRANCH_NAME}}&event=pull_request)](https://github.com/cupel-co/terraform-aws-backend/actions/workflows/tfsec.yml?query=branch%3A{{BRANCH_NAME}})
[![Preview](https://github.com/{{REPOSITORY}}/actions/workflows/preview.yml/badge.svg?branch={{BRANCH_NAME}}&event=pull_request)](https://github.com/{{REPOSITORY}}/actions/workflows/preview.yml?query=branch%3A{{BRANCH_NAME}})
[![Infracost](https://github.com/{{REPOSITORY}}/actions/workflows/pull-request-infracost.yml/badge.svg?branch={{BRANCH_NAME}}&event=pull_request)](https://github.com/{{REPOSITORY}}/actions/workflows/pull-request-infracost.yml?query=branch%3A{{BRANCH_NAME}})
[![OpenTofu Lint](https://github.com/{{REPOSITORY}}/actions/workflows/pull-request-opentofu-lint.yml/badge.svg?branch={{BRANCH_NAME}}&event=pull_request)](https://github.com/{{REPOSITORY}}/actions/workflows/pull-request-opentofu-lint.yml?query=branch%3A{{BRANCH_NAME}})
[![OpenTofu Sec](https://github.com/{{REPOSITORY}}/actions/workflows/pull-request-opentofu-sec.yml/badge.svg?branch={{BRANCH_NAME}}&event=pull_request)](https://github.com/{{REPOSITORY}}/actions/workflows/pull-request-opentofu-sec.yml?query=branch%3A{{BRANCH_NAME}})

## Description
* closes #{{ISSUE_NUMBER}}
*
*

## Tests
* DESCRIBE TEST CASES AND MARK AS MANUAL OR AUTOMATED
*

## Testing
- [ ] Tested changes
## Tasks
- [ ] Code adheres to coding and style guideline
- [ ] Self-reviewed these changes
- [ ] Planned changes for all workspaces
- [ ] Updated the documentation
22 changes: 22 additions & 0 deletions .github/workflows/pull-request-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update PR

on:
pull_request:
types:
- opened
- reopened

concurrency:
cancel-in-progress: false
group: '${{ github.workflow }}-${{ github.ref_name }}'

jobs:
pull-request:
name: Pull Request
uses: cupel-co/workflows/.github/workflows/pull-request.update.yml@v0.21.0
permissions:
issues: read
pull-requests: write
repository-projects: read
with:
environment: Preview

0 comments on commit 5c132a7

Please sign in to comment.