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

Edit to "Issue Trigger" workflow to exclude closed issues from assignee checks #7817

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

t-will-gillis
Copy link
Member

@t-will-gillis t-will-gillis commented Jan 6, 2025

Fixes #7771

What changes did you make?

  • Added case to check-complexity-eligibility.js to check whether the issue is closed

Why did you make the changes (we will use this info to test)?

  • If the issue is closed, the 'check complexity eligibility' function should halt
  • Added comments to clarify what the workflow is doing

CodeQL Alerts

After the PR has been submitted and the resulting GitHub actions/checks have been completed, developers should check the PR for CodeQL alert annotations.

Check the PR's comments. If present on your PR, the CodeQL alert looks similar as shown

Screenshot 2024-10-28 154514

Please let us know that you have checked for CodeQL alerts. Please do not dismiss alerts.

  • I have checked this PR for CodeQL alerts and none were found.
  • I found CodeQL alert(s), and (select one):
    • I have resolved the CodeQL alert(s) as noted
    • I believe the CodeQL alert(s) is a false positive (Merge Team will evaluate)
    • I have followed the Instructions below, but I am still stuck (Merge Team will evaluate)
Instructions for resolving CodeQL alerts

If CodeQL alert/annotations appear, refer to How to Resolve CodeQL alerts.

In general, CodeQL alerts should be resolved prior to PR reviews and merging

Screenshots of Proposed Changes To The Website (if any, please do not include screenshots of code changes)

  • No visual changes to website
  • Website run from test branch

Add check for closed issue, and halt workflow if so
Copy link

github-actions bot commented Jan 6, 2025

Want to review this pull request? Take a look at this documentation for a step by step guide!


From your project repository, check out a new branch and test the changes.

git checkout -b t-will-gillis-edit-assign-closed-issue-to-member-7771 gh-pages
git pull https://github.com/t-will-gillis/website.git edit-assign-closed-issue-to-member-7771

@github-actions github-actions bot added role: back end/devOps Tasks for back-end developers Complexity: Small Take this type of issues after the successful merge of your second good first issue Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms size: 3pt Can be done in 13-18 hours Draft Issue is still in the process of being created labels Jan 6, 2025
@t-will-gillis t-will-gillis removed the Draft Issue is still in the process of being created label Jan 6, 2025
@FamousHero FamousHero self-requested a review January 13, 2025 22:46
@FamousHero
Copy link
Member

Review ETA: 1/15/2025
Availability: Tuesday & Saturday 8-9pm

@iancooperman iancooperman self-requested a review January 14, 2025 02:02
@iancooperman
Copy link
Member

Review ETA: 1/17/2025
Availability: Weekdays (except Thursday) - 5pm to 6:30pm, 8pm to 9pm; Thursday - 8pm to 9pm

@t-will-gillis
Copy link
Member Author

t-will-gillis commented Jan 16, 2025

Hey @FamousHero and @iancooperman I did not leave any notes about testing for this PR- which I should have. Let me know if either of you would like notes for any part of this. Also, please leave a message if you get some error that isn't obvious. I might have seen it before and could save you time.

Besides setting up a copy of the HfLA Project Board and the tokens, you will need to change github-actions/utils/get-team-members.js line 16 to org: <your github handle> SHOULD BE org: 'hackforla',

@mugdhchauhan mugdhchauhan self-requested a review January 17, 2025 00:46
@mugdhchauhan
Copy link
Member

Review ETA: 24 Jan 2025 @ 8 PM (GMT)
Availability: Daily @ 6 PM - 8 PM (GMT)

@mugdhchauhan
Copy link
Member

Hey @t-will-gillis, thanks for making this PR.

I'm using this guide.

When I'm attempting to create my own Project Board I am getting this error:

Screenshot 1

I do not have a Project Board that is already copied to my forked repo. I would greatly appreciate your help on this.

@Cloid Cloid self-requested a review January 20, 2025 04:28
@Cloid
Copy link
Member

Cloid commented Jan 20, 2025

Review ETA: 1/22 @ 8 PM (PST)
Availability: 6pm-8pm (PST)

@t-will-gillis
Copy link
Member Author

Hi @iancooperman @FamousHero @mugdhchauhan @Cloid

FYI I am changing this PR to Complexity: Large. The actual change from this PR is minor, however, in order to test the change you need to have a working test environment on your repo, and that in itself is a "Large" undertaking. You probably will want to wait for another PR If you are looking for a "Small" one to review.

If anyone is interested in learning GitHub Actions there will be easier PRs to review (including #7777)- and there are also several GHA issues coming up that you will be able to work on. (These are listed on #6454 and are awaiting Bonnie's approval). Information about GHAs are here: Hack for LA's GitHub Actions, latest revision. See Tips 6,7, and 8 especially if you want to set up your own environment

One last thing, I will be happy to do a live demonstration of the changes I made with this PR if that is helpful. On past PRs we have done approvals based on a live demo rather than on having the reviewers each recreate the test environment. Let me know what you think.

@t-will-gillis t-will-gillis added Complexity: Large and removed Complexity: Small Take this type of issues after the successful merge of your second good first issue labels Jan 20, 2025
Copy link
Member

@mugdhchauhan mugdhchauhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @t-will-gillis, thank you for working on this and helping me. I managed to set up a working test environment on my repo and resolve the errors I was facing.

Kudos

Suggested Changes

  • In the screenshot below, when testing it can be seen that it still removes assignment even though the issue is closed. This could be fixed.
  • In the originating issue under "Resources/Instructions" you could add what is stated for "REPLACE THIS TEXT" to complete this section.
  • Provide availability and ETA in the originating issue. (You may not have to do this as it is marked as hidden as resolved.)
Screenshot

Screenshot 1

Once again, many thanks. Please could you re-request a review from me after the changes have been made. I am happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Large Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms role: back end/devOps Tasks for back-end developers size: 3pt Can be done in 13-18 hours
Projects
Status: PRs being reviewed
Development

Successfully merging this pull request may close these issues.

Edits to "Issue Trigger" workflow, check-complexity-eligibility.js
5 participants