Skip to content

Commit

Permalink
bypass step
Browse files Browse the repository at this point in the history
  • Loading branch information
endakelly committed Apr 29, 2024
1 parent 7dc38e4 commit c080a86
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/parsegithubissue-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ jobs:
echo "END_DATE=$END_DATE" >> $GITHUB_ENV
echo "START_DATE is $START_DATE"
- uses: JasonEtco/create-an-issue@v2
id: create-issue
env:
GITHUB_TOKEN: ${{ env.GH_TOKEN }}
TITLE: "PR-${{ github.event.pull_request.number }}"
PULL_REQUEST: "PR-${{ github.event.pull_request.number }}"
BUSINESS_AREA: "CFT"
ENVIRONMENT: "Sandbox"
START_DATE: "${{ env.START_DATE }}"
END_DATE: "${{ env.END_DATE }}"
POST_11PM: "No"
with:
filename: .github/ISSUE_TEMPLATE/1-pull-request-template.md
update_existing: true
search_existing: all
# - uses: JasonEtco/create-an-issue@v2
# id: create-issue
# env:
# GITHUB_TOKEN: ${{ env.GH_TOKEN }}
# TITLE: "PR-${{ github.event.pull_request.number }}"
# PULL_REQUEST: "PR-${{ github.event.pull_request.number }}"
# BUSINESS_AREA: "CFT"
# ENVIRONMENT: "Sandbox"
# START_DATE: "${{ env.START_DATE }}"
# END_DATE: "${{ env.END_DATE }}"
# POST_11PM: "No"
# with:
# filename: .github/ISSUE_TEMPLATE/1-pull-request-template.md
# update_existing: true
# search_existing: all

#Adds label for user feedback
- name: add processing label
Expand All @@ -60,7 +60,8 @@ jobs:
if: contains(github.event.issue.labels.*.name, 'approved') && github.event.issue.user.login == github.actor || contains(github.event.issue.labels.*.name, 'auto-approved') && github.event.issue.user.login == github.actor
uses: peter-evans/create-or-update-comment@v4.0.0
with:
issue-number: ${{ steps.create-issue.outputs.number }}
# issue-number: ${{ steps.create-issue.outputs.number }}
issue-number: 480
body: |
Requester cannot also be approver - please seek a second approver.
Expand All @@ -72,7 +73,8 @@ jobs:
labels: |
approved
auto-approved
number: ${{ steps.create-issue.outputs.number }}
# number: ${{ steps.create-issue.outputs.number }}
number: 480

#End workflow if user is equal to requester
- name: exit flow if approver == requester
Expand Down

0 comments on commit c080a86

Please sign in to comment.