Skip to content

Commit

Permalink
Merge pull request #16 from FelipeArruda/dev#15
Browse files Browse the repository at this point in the history
dev#15
FelipeArruda authored Oct 28, 2021
2 parents 873e833 + 9cfef48 commit 1927e51
Showing 2 changed files with 78 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/01_create_develop_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: create_develop_pull_request

on:
push:
branches-ignore:
- master
- develop

jobs:
auto-pull-request:
name: create_develop_pull_request
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v2
- name: Extract Branch Name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: pull-request-action
uses: vsoch/pull-request-action@1.0.18
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_BRANCH: "develop"
PULL_REQUEST_TITLE: ${{ steps.extract_branch.outputs.branch }}
PULL_REQUEST_DRAFT: true
PULL_REQUEST_BODY: |
# ISSUE INFORMATION
<!--- Update the GitHub issue below --->
Please check the following GitHub issues to find out more about this PR:
- https://github.com/andresionek91/LIVE001-Criando-Lambda-Functions-para-Ingerir-Dados-de-APIs/issues/<issue number>
# Checklist
- [ ] Does the commit messages reference the GitHub issue? (i.e. ISSUE-1/commit message)
- [ ] Does the commit message explain the change made?
- [ ] Did you deploy to staging/UAT?
- [ ] Were the changes approved by the stakeholders?
## What?
<!--- Please describe in detail what this PR does. -->
<!--- Add a list of changes if needed -->
## Why?
<!--- One sentence describing why this is necessary. -->
## How?
<!--- High level description of implementation. -->
## Testing?
<!--- Did you write tests? Describe how you tested it. -->
## Documentation?
<!--- Does this change requires updates to documentation? Please add links to docs if needed. -->
## Anything Else?
<!--- Add any extra information that might be useful for a reviewer. -->
24 changes: 24 additions & 0 deletions .github/workflows/02_create_prod_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: create_prod_pull_request

on:
push:
branches:
- develop

jobs:
auto-pull-request:
name: create_prod_pull_request
runs-on: ubuntu-latest
steps:
- name: pull-request-action
uses: vsoch/pull-request-action@1.0.18
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_BRANCH: "master"
PULL_REQUEST_TITLE: Production Release
PULL_REQUEST_BODY: |
# Production Release
## Changelog
<!--- Please add the list of changes here -->
<!--- Please tag responsible the users with @ -->
- < PR Number > @< username >

0 comments on commit 1927e51

Please sign in to comment.