Skip to content

Commit 1ac832c

Browse files
mfranzkegithub-actions[bot]nmerget
authored
refactor: adding the PR url to Automated PR description (#4836)
* refactor: adding the PR URL to automated PR description * test: enforce a screenshot update * auto update snapshots (#4837) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * refactor: other formatting * Revert "test: enforce a screenshot update" This reverts commit d099e40. * auto update snapshots (#4838) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * refactor: corrected the branch relation * Reapply "test: enforce a screenshot update" This reverts commit eb93e93. * auto update snapshots (#4839) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update button.json * auto update snapshots (#5270) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review * chore: enforce a screenshot update * Update action.yml * auto update snapshots (#5272) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update button.json * auto update snapshots (#5276) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * auto update snapshots (#5281) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Nicolas Merget <104347736+nmerget@users.noreply.github.com>
1 parent 554ea58 commit 1ac832c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/actions/auto-commit/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ runs:
6565
NEW_PR_BRANCH: ${{ inputs.branch-name }}
6666
BASE_BRANCH: ${{ github.head_ref }}
6767
run: |
68-
gh pr create --base "$BASE_BRANCH" --head "$NEW_PR_BRANCH" --title "Automated PR: $COMMIT_MESSAGE" --body "This PR was created automatically by a GitHub Action."
68+
PR_BODY="This PR was created automatically by a GitHub Action.
69+
70+
Target PR (this PR will be merged into): <https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}>"
71+
72+
# Create the PR and capture its URL
73+
gh pr create --base "$BASE_BRANCH" --head "$NEW_PR_BRANCH" --title "Automated PR: $COMMIT_MESSAGE" --body "$PR_BODY"
6974
7075
# https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow
7176
- name: 🧬 Generate a token
-1.78 KB
Loading

0 commit comments

Comments
 (0)