-
Notifications
You must be signed in to change notification settings - Fork 1
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
LIBAAEC-33 Modify PR template body and create github actions to add Jira issue #476
Open
Janell-Huyck
wants to merge
17
commits into
qa
Choose a base branch
from
LIBAAEC-33-update-pr-template
base: qa
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Janell-Huyck
changed the title
Modify PR template body and create github action to add Jira issue
LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
Oct 16, 2024
github-actions
bot
changed the title
LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
LIBAAEC-33 LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
Oct 16, 2024
github-actions
bot
changed the title
LIBAAEC-33 LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
LIBAAEC-33 LIBAAEC-33 LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
Oct 16, 2024
Janell-Huyck
changed the title
LIBAAEC-33 LIBAAEC-33 LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
Oct 16, 2024
@Janell-Huyck I'd like to run through this with you next week. It's not working the way I would expect, but I might not understand how it should work. |
i looked at this too and would like to see the t in action.
Lisa Haitz
Developer
UC Libraries
…________________________________
From: Glen Horton ***@***.***>
Sent: Friday, October 18, 2024 4:23:20 PM
To: uclibs/aaec ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [uclibs/aaec] LIBAAEC-33 Modify PR template body and create github actions to add Jira issue (PR #476)
External Email: Use Caution
@Janell-Huyck<https://github.com/Janell-Huyck> I'd like to run through this with you next week. It's not working the way I would expect, but I might not understand how it should work.
—
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADYQVXJXC6W4KRMEZHKX73Z4FU3RAVCNFSM6AAAAABQBRLMBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTGE3TQMBUGU>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Janell-Huyck
changed the title
LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
WIP LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
Oct 24, 2024
Need to update to Rails 6.1.7.10 before we will be able to merge this PR |
Janell-Huyck
force-pushed
the
LIBAAEC-33-update-pr-template
branch
from
November 27, 2024 16:54
1ae2402
to
87aa1c8
Compare
Janell-Huyck
changed the title
WIP LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
LIBAAEC-33 Modify PR template body and create github actions to add Jira issue
Nov 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira Issue: LIBAAEC-33
Jira Issue
Overview
This PR updates the PR template and adds in the Jira issue dynamically to the start of the PR and the PR's title. It relies on the Jira issue number being present at the start of the branch name, in this format:
LIBAAEC-##-branch-description
. For example, for this branch it isLIBAAEC-33-update-pr-template
.It uses Github actions to read the Jira issue number, and then dynamically adds that to the start of the PR title if not already present. It also dynamically adds a link to the Jira issue at the top of every PR.
How to easily add the Jira issue to the start of your branch name:
Jira has a built in dynamically generated branch name command. It is located here:
If you start your branch by copy/pasting the automatically generated text into your terminal, it will create a new branch for you with the issue at the start and a descriptive name based off the issue title.
How to Test the Jira Issue Link Automation
Create a New Pull Request:
Click the "New Pull Request" button in GitHub and select this branch: LIBAAEC-33-update-pr-template as the source branch.
Make sure your new branch name includes a valid Jira issue number in the format
LIBAAEC-32-your-branch-description
.In the PR description, you will initially see the placeholder:
[Link will be automatically added here. Do not remove.]
. Leave it there.You do not have to add the issue number to the start of the PR name. A GitHub action will add that for you automatically after PR creation if you do not add it.
Submit the PR:
Submit the pull request as you normally would.
After submitting, GitHub Actions will automatically update the PR description and title, replacing the placeholder with a link to the Jira issue based on the branch name and adding the Jira issue number to the start of the PR title.
Review the Results:
If your branch name did not have the Jira issue number, no changes should be present.
If you had a Jira issue number in your branch name:
Once the PR is updated, you should see the Jira issue link in place of the placeholder text.
You should see one instance of the Jira issue name at the start of your PR's name.
Additional note: a few minor changes were made to:
spec/features/publication_creation/other_college_field_manipulation_spec.rb
because this was a flaky test. The changes are intended to prevent it from failing in the future due to DOM content not loading quickly enough.