-
Notifications
You must be signed in to change notification settings - Fork 279
[gha] Automatically add job link to PR description #3453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gha] Automatically add job link to PR description #3453
Conversation
|
Example of PR description AlexanderDokuchaev#37 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR automates the addition of a job link to the pull request description when the workflows are manually triggered.
Key changes:
- Introduces a new "update-pr-description" job in several workflow files (.github/workflows/macos.yml, install.yml, examples.yml, conformance_weight_compression.yml).
- Implements a composite GitHub Action in .github/actions/add_job_link/action.yml that updates the PR description with a link to the corresponding workflow run.
- Enables manual triggering by checking for a non-empty pull_request_number in the workflow's input.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/macos.yml | Adds a new job to update the PR description post testing |
| .github/workflows/install.yml | Introduces update-pr-description job for install workflow tasks |
| .github/workflows/examples.yml | Implements update-pr-description job in examples workflow |
| .github/workflows/conformance_weight_compression.yml | Adds update-pr-description job for conformance-weight compression testing |
| .github/actions/add_job_link/action.yml | Defines a composite action to update the PR description with the job link |
Comments suppressed due to low confidence (1)
.github/workflows/macos.yml:75
- [nitpick] The step name 'Update PR preview link' is slightly misleading given that the job updates the PR description. Consider renaming it to 'Update PR description' for clarity.
- name: Update PR preview link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR automates the addition of a job link to a PR description by introducing a new composite action and updating several GitHub workflow files.
- Added a job "update-pr-description" to the macos, install, examples, and conformance_weight_compression workflows.
- Introduced a new composite action in .github/actions/add_job_link to update the PR description with a link.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/macos.yml | Added a new job to update the PR description for the MacOS workflow. |
| .github/workflows/install.yml | Added a new job to update the PR description for the install workflow. |
| .github/workflows/examples.yml | Introduced the update-pr-description job for the examples workflow. |
| .github/workflows/conformance_weight_compression.yml | Added the update-pr-description job for the conformance weight compression workflow. |
| .github/actions/add_job_link/action.yml | New composite action to add a job link to the PR description. |
This reverts commit dd99ed5.
Changes
Add action
add_job_linkto add job link in the end of PR descriptionUpdate workflow that can be run manually for PR
Reason for changes
Laziness