Skip to content
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: Sort pull requests to correct column #3112

Open
4 of 21 tasks
Tracked by #3227
SAUMILDHANKAR opened this issue May 7, 2022 · 4 comments
Open
4 of 21 tasks
Tracked by #3227

GHA: Sort pull requests to correct column #3112

SAUMILDHANKAR opened this issue May 7, 2022 · 4 comments
Assignees
Labels
Complexity: Large Draft Issue is still in the process of being created Feature: Board/GitHub Maintenance Project board maintenance that we have to do repeatedly ready for dev lead Issues that tech leads or merge team members need to follow up on role: back end/devOps Tasks for back-end developers size: 2pt Can be done in 7-12 hours

Comments

@SAUMILDHANKAR
Copy link
Member

SAUMILDHANKAR commented May 7, 2022

Dependency

Overview

As a developer, we have to ensure that our Kanban board is organized for all teams so that productivity is high. For this issue, we are creating a GitHub action that will change the status-column of each Pull Request (PR) based on its review progress.

Details

Currently, the following status-columns in our Project Board have been set-up such that the PRs move within these status-columns based on project automations:

Automated Column, do not place items here manually

However, this hasn't been working as desired and we have decided to use different status-column names with a GitHub action/s to sort the PRs appropriately. The new PR status-columns would be:

  • PR Needs review
  • PRs being reviewed
  • PRs needing changes from author
  • PRs ready for re-review (from the original reviewer)
  • PRs ✅ waiting for merge team

Action Items

  • Review how PRs currently move within different status-columns in our Project Board, paying attention especially to the Workflows affecting PRs.
  • Create/ change the status-columns suggested above in your repo.
  • Use the available Workflows and when needed create a GitHub action/s which would move the PRs among different status-columns accordingly.
  • Demo your results in a team meeting.
  • Once your demo is approved by the technical leads, change the names and add new new status-columns in our Project Board
  • Create a PR for the newly created GitHub action to be merged.
  • For merge team: Release dependency on Create a wiki page for details on new PR columns #3227
    • Update "Action Items" in the dependency issue if needed.
    • Remove the Dependency label, move the issue to the "New Issue Approval" status-column and add a Ready for Prioritization label.
  • For merge team: Once the pull request associated with this issue is approved and merged, please change the name of the status-columns and/or sort the issues into the appropriate status-columns.
    • Finally delete any of the status-columns that are no longer being used.

Pseudo Code

  • NOTE: This is covered by an existing Workflow, change the status-column name. When a new PR is added to the Project Board, it should automatically move to "PRs needing a reviewer assigned" status-column.
  • NOTE: This is covered by an existing Workflow, change the status-column name. If the reviewer requests changes in the PR, the PR should move to "PRs needing changes from authors" column
  • NOTE: This will need to be addressed by a GHA: When PR author requests re-review from the original author, the PR should move to "PRs ready for re-review (from the original reviewer)" status-column
  • NOTE: Check whether the existing Workflow covers this condition, and if so change the status-column name. Otherwise address with a GHA. If 2 reviewers have already approved the PR, the PR should move to "PRs approved, waiting for merge team to merge" status-column

Resources/Instructions

Never done GitHub actions? Start here!
Events that trigger workflows
Workflow syntax for GitHub Actions
actions/github-script
GitHub RESTAPI
GitHub GraphQL
Encrypted secrets

Architecture Notes

Actions with the same triggers (excluding linters, which will be their own category) will live in the same GitHub action file. Scheduled actions will live in the same file if they trigger on the same schedule (i.e. all files that trigger everyday at 11am will live in one file, while files that trigger on Friday at 7am will be on a separate file).

That said, this structure is not set in stone. If any part of it feels strange, or you have questions, feel free to bring it up with the team so we can evolve this format!

@SAUMILDHANKAR SAUMILDHANKAR added role: back end/devOps Tasks for back-end developers Complexity: Large Feature: Board/GitHub Maintenance Project board maintenance that we have to do repeatedly size: 2pt Can be done in 7-12 hours labels May 7, 2022
@github-actions

This comment was marked as resolved.

@ExperimentsInHonesty ExperimentsInHonesty added the Dependency An issue is blocking the completion or starting of another issue label Jun 23, 2022
@ExperimentsInHonesty ExperimentsInHonesty removed the Dependency An issue is blocking the completion or starting of another issue label Oct 6, 2024
@ExperimentsInHonesty ExperimentsInHonesty moved this from Ice box to New Issue Approval in P: HfLA Website: Project Board Oct 6, 2024
@ExperimentsInHonesty ExperimentsInHonesty added the ready for dev lead Issues that tech leads or merge team members need to follow up on label Oct 6, 2024
@ExperimentsInHonesty
Copy link
Member

@t-will-gillis I moved this out of the icebox. Do you think it's ready? If yes, add a ready for prioritization label

@ExperimentsInHonesty ExperimentsInHonesty added the Draft Issue is still in the process of being created label Oct 8, 2024
@HackforLABot
Copy link
Contributor

Hi @t-will-gillis, thank you for taking up this issue! Hfla appreciates you :)

Do let fellow developers know about your:-
i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?)
ii. ETA: (When do you expect this issue to be completed?)

You're awesome!

P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)

@ExperimentsInHonesty
Copy link
Member

  • shorten the names of the columns that are not yet created
  • create the columns
  • rewrite the issue to use existing automations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Large Draft Issue is still in the process of being created Feature: Board/GitHub Maintenance Project board maintenance that we have to do repeatedly ready for dev lead Issues that tech leads or merge team members need to follow up on role: back end/devOps Tasks for back-end developers size: 2pt Can be done in 7-12 hours
Projects
Status: New Issue Approval
Development

No branches or pull requests

4 participants