mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
correctly fetch merged by user login
This commit is contained in:
@@ -38,13 +38,15 @@ jobs:
|
|||||||
rm added_files.txt
|
rm added_files.txt
|
||||||
git commit -m "chore: renamed new migration files to latest timestamp (gh-action)"
|
git commit -m "chore: renamed new migration files to latest timestamp (gh-action)"
|
||||||
|
|
||||||
- name: Get the username of the person who closed the PR
|
- name: Get PR details
|
||||||
run: |
|
id: pr_details
|
||||||
|
run: |
|
||||||
PR_NUMBER=${{ github.event.pull_request.number }}
|
PR_NUMBER=${{ github.event.pull_request.number }}
|
||||||
PR_CLOSER=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" | jq -r '.closed_by.login')
|
PR_MERGER=$(curl -s "https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" | jq -r '.merged_by.login')
|
||||||
|
|
||||||
echo "PR Number: $PR_NUMBER"
|
echo "PR Number: $PR_NUMBER"
|
||||||
echo "PR Closer: $PR_CLOSER"
|
echo "PR Merger: $PR_MERGER"
|
||||||
echo "pr_closer=$PR_CLOSER" >> $GITHUB_OUTPUT
|
echo "pr_merger=$PR_MERGER" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: env.SKIP_RENAME != 'true'
|
if: env.SKIP_RENAME != 'true'
|
||||||
@@ -54,3 +56,4 @@ jobs:
|
|||||||
commit-message: 'chore: renamed new migration files to latest UTC (gh-action)'
|
commit-message: 'chore: renamed new migration files to latest UTC (gh-action)'
|
||||||
title: 'GH Action: rename new migration file timestamp'
|
title: 'GH Action: rename new migration file timestamp'
|
||||||
branch-suffix: timestamp
|
branch-suffix: timestamp
|
||||||
|
reviewers: ${{ steps.pr_details.outputs.pr_merger }}
|
||||||
|
|||||||
Reference in New Issue
Block a user