harden: implement CodeRabbit bash and output file suggestions
- Add 'set -Eeuo pipefail' for strict bash error handling - Make issue metrics output file explicit to avoid coupling to action defaults - Prevents future breakage if github/issue-metrics changes default filenames - Follows defensive programming best practices
This commit is contained in:
2
.github/workflows/weekly-metrics-discord.yml
vendored
2
.github/workflows/weekly-metrics-discord.yml
vendored
@@ -27,6 +27,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get dates for last week
|
- name: Get dates for last week
|
||||||
run: |
|
run: |
|
||||||
|
set -Eeuo pipefail
|
||||||
# Last 14 days
|
# Last 14 days
|
||||||
first_day=$(date -d "14 days ago" +%Y-%m-%d)
|
first_day=$(date -d "14 days ago" +%Y-%m-%d)
|
||||||
last_day=$(date +%Y-%m-%d)
|
last_day=$(date +%Y-%m-%d)
|
||||||
@@ -43,6 +44,7 @@ jobs:
|
|||||||
SEARCH_QUERY: "repo:${{ github.repository }} is:issue created:${{ env.first_day }}..${{ env.last_day }}"
|
SEARCH_QUERY: "repo:${{ github.repository }} is:issue created:${{ env.first_day }}..${{ env.last_day }}"
|
||||||
HIDE_TIME_TO_ANSWER: true
|
HIDE_TIME_TO_ANSWER: true
|
||||||
HIDE_LABEL_METRICS: false
|
HIDE_LABEL_METRICS: false
|
||||||
|
OUTPUT_FILE: issue_metrics.md
|
||||||
|
|
||||||
- name: Generate PR metrics
|
- name: Generate PR metrics
|
||||||
uses: github/issue-metrics@v3
|
uses: github/issue-metrics@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user