Skip to content

Commit

Permalink
chore: github UX
Browse files Browse the repository at this point in the history
  • Loading branch information
danistrebel committed Dec 20, 2024
1 parent b2d2568 commit 21d0837
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@ What's changed, or what was fixed?
- [ ] I have run all the tests locally and they all pass.
- [ ] I have followed the relevant style guide for my changes.

## Full Repo Validation Required
(please check all that apply [x], do not edit the text)
## ADVANCED Settings

For most PRs you most likely do not have to edit anything in this section.

### Test Scope

By default the PR pipeline tests all projects that were edited in the PR.

Some PRs might have side-effects on other projects such as changes to the test pipeline or shared tooling and need tests beyond the projects edited in this PR.

To customize the PR testing scope check [x] either option below and replace the sub-projects as needed.

- [ ] PR requires full pipeline run (Run for changes only by default).
- [ ] Test following projects (comma separated list): references/cicd-pipeline,tools/apigee-sackmesser

**CC:** @apigee-devrel-reviewers
5 changes: 4 additions & 1 deletion tools/pipeline-runner/github-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

buildresult=$(cat)

REPORT_ROWS=$(echo "$buildresult" | awk -F";" '$2 = ($2 == "fail" ? "❌" : "✅") ; $0="|"$1"|"$2"|"$3"|"' OFS="|")
REPORT_ROWS=$(echo "$buildresult" | awk -F, -v OFS='|' '{gsub(/pass/, "✅"); gsub(/fail/, "❌"); print "|" $1 "|" $2 "|" $3 "|"}')

REPORT=$(cat <<EOF
### Pipeline Report
Expand All @@ -32,6 +33,8 @@ Commit version: $SHORT_SHA
EOF
)

echo $REPORT

REPO_API="https://api.github.com/repos/$REPO_GH_ISSUE"

createIssueComment() {
Expand Down

0 comments on commit 21d0837

Please sign in to comment.