Skip to content

Commit

Permalink
Improve autocut issue content on push gradle check failure. (opensear…
Browse files Browse the repository at this point in the history
…ch-project#6160)

Signed-off-by: Marc Handalian <handalm@amazon.com>
  • Loading branch information
mch2 authored Feb 2, 2023
1 parent aa21b5f commit 1a2cb50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/ISSUE_TEMPLATE/failed_check.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: '[AUTOCUT] Gradle Check Failure.'
title: '[AUTOCUT] Gradle Check Failure on push to {{ env.branch_name }}'
labels: '>test-failure, bug'
---

A gradle check workflow has failed after merge.

PR: {{ env.workflow_url }}
CommitId: {{ env.pr_from_sha }}
Gradle check has failed on push of your commit {{ env.pr_from_sha }}.
Please examine the workflow log {{ env.workflow_url }}.
Is the failure [a flaky test](https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md#flaky-tests) unrelated to your change?
1 change: 1 addition & 0 deletions .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
repo_url="https://github.com/opensearch-project/OpenSearch"
ref_id=$(git rev-parse HEAD)
branch_name=$(git rev-parse --abbrev-ref HEAD)
echo "$branch_name=$branch_name" >> $GITHUB_ENV
echo "pr_from_sha=$ref_id" >> $GITHUB_ENV
echo "pr_from_clone_url=$repo_url" >> $GITHUB_ENV
echo "pr_to_clone_url=$repo_url" >> $GITHUB_ENV
Expand Down

0 comments on commit 1a2cb50

Please sign in to comment.