Skip to content

Commit

Permalink
Update pr-issue-validator.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
prakarsh-dt authored Aug 8, 2023
1 parent 9637c66 commit df35f28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pr-issue-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ on:
# - 'charts/'
# - 'manifests/'
# - 'sample-docker-templates/'
env:
GH_TOKEN: ${{ secrets.GIT_TARGET_TOKEN }}

jobs:
validate-PR-issue:
Expand All @@ -30,13 +28,13 @@ jobs:

- name: Validate Issue Reference
env:
GH_TOKEN: ${{ secrets.GIT_TARGET_TOKEN }}
PR_BODY: ${{ github.event.pull_request.body }}
url: ${{ github.event.pull_request.url }}
PRNUM: ${{ github.event.pull_request.number }}
TITLE: ${{ github.event.pull_request.title }}
run: |
set +e
export GH_TOKEN=${{ secrets.GIT_TARGET_TOKEN }}
if [[ "$TITLE" == *"doc:"* || "$TITLE" == *"docs:"* || "$TITLE" == *"chore:"* ]]; then
echo "Skipping validation as this is a PR for documentation or chore."
gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed"
Expand Down

0 comments on commit df35f28

Please sign in to comment.