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

Modify GitHub actions for label change 3109 #3839

Conversation

bzzz-coding
Copy link
Member

@bzzz-coding bzzz-coding commented Jan 18, 2023

Fixes #3109

What changes did you make and why did you make them ?

  • Changed 'Size' to 'Complexity' in these two files in GitHub actions that referenced Size:
    • github-actions/trigger-issue/add-missing-labels-to-issues/check-labels.js
    • github-actions/trigger-issue/add-missing-labels-to-issues/post-labels-comment.js

@github-actions
Copy link

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 bzzz-coding-modify-github-actions-for-label-change-3109 gh-pages
git pull https://github.com/bzzz-coding/HfLA-website.git modify-github-actions-for-label-change-3109

@github-actions github-actions bot added automation for manulal github board maintenance actions that are going to be automated Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms role: back end/devOps Tasks for back-end developers size: 1pt Can be done in 4-6 hours Complexity: Medium Status: Updated No blockers and update is ready for review time sensitive Needs to be worked on by a particular timeframe labels Jan 18, 2023
@bzzz-coding
Copy link
Member Author

Linked below are two updates I provided in the comments for issue #3109:

@t-will-gillis t-will-gillis self-requested a review January 21, 2023 21:41
Copy link
Member

@t-will-gillis t-will-gillis left a comment

Choose a reason for hiding this comment

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

Hey @bzzz-coding – I am reviewing the changes you made, and it appears your edits match what the original issue was looking for. This is primarily the two files in post-labels-comment.js and check-labels.js Great job!

My one observation is about the text case for the labels. You matched what the original issue requested- i.e. to change Size: to level: so this isn’t a critique of your work. However, I am marking my review as ‘Request changes’ because I think that while we are already making the changes this is a great time to review the HfLA documents and code and make sure they are stylistically consistent. For example, our labels are sometimes all lowercase (role: back end/devOps and size: 1pt), all title case (Status: Updated), or mixed (as Size: Medium changes to level: Medium) without there seeming to be a reason why the style should be one way and not another. (At least from what I can see. Maybe there is pattern here that I am not seeing…) What do others think?

As you mention, there are other places that reference the Size: Large etc. For example, the original issue notes that the CONTRIBUTING.md document also needs to be edited via #3110.

A big warning here is that #3110 is talking about changing Size: to Complexity: and not level: (or Level: ) Probably needs to be edited?

This also leaves the wikis. I am not sure if the intent was for the wikis to be part of this issue or if they are a separate issue… merge team?

Thanks for your work! Looking good so far.

@bzzz-coding
Copy link
Member Author

bzzz-coding commented Jan 22, 2023

Hi @t-will-gillis, thanks for reviewing my PR and leaving the comment! I agree--it would be a good time to review the label styles and address the comment about changing Size to Complexity under the issue.

I was also wondering if there is a general style guide regarding GHA and all the HfLA code regarding indentation, quotation marks, line breaks, naming variables, etc.

@t-will-gillis
Copy link
Member

Hi @bzzz-coding I do not know if HfLA has a style guide. It is possible that there is something in the wikis https://github.com/hackforla/website/wiki but I have not found that myself. I would like to know for myself also. This may be something to bring up in a meeting or by slacking the merge team. I also don't want to hold up this PR if we do not want to address the styling now.

@blulady
Copy link
Member

blulady commented Jan 23, 2023

@bzzz-coding and @t-will-gillis,
This is a great discussion and I am glad you are having it!! For future reference you can always @hackforla/website-merge to get our eyes on an issue (someone is bound to check their GitHub notifications). These are great points about the inconsistency with the capitalization and the level being changed to complexity in #3110. Apparently there is a style guide coming soon (according to the bottom of the wiki page but I'll have to double check to see where we are on that). But I think we need to check before we merge the PR to see if we want to go with level or complexity. The issue #3110 will put these changes into the wiki, we know this because issue #3110 has a dependency on the completion of #3109 and is currently in the ice box waiting for this issue to be completed so we can release it (which I always think is fun, like releasing the Kraken and is described here) But I'll dig around to see what "coming soon" actually means for the HFLA style guide.

@bzzz-coding
Copy link
Member Author

@blulady @t-will-gillis @hackforla/website-merge Thank you! I'll wait for further clarification/revision to this issue regarding the change from Size to level or Complexity and then make changes if needed.

@bzzz-coding
Copy link
Member Author

@hackforla/website-merge
As discussed in the 1-24-23 meeting, I changed label 'size' to 'Complexity'.
Please note that there is a ':' between 'size' (now 'Complexity') and 'missing' but I don't see it with other labels, for example,
in github-actions/trigger-issue/add-missing-labels-to-issues/check-labels.js:
const LABEL_MISSING = ['Complexity: missing', 'role missing', 'Feature Missing']

and in github-actions/trigger-issue/add-missing-labels-to-issues/post-labels-comment.js:
const LABELS_OBJ = { 'Complexity: missing': 'Complexity', 'role missing': 'Role', 'Feature Missing': 'Feature' }

  • Is the ':' there for a reason, or is it a typo that should be removed?
  • Should 'missing' be capitalized as in 'Feature Missing', or should it be all lowercase as in 'role missing'?

I only updated 'size' to 'Complexity' in this PR, and left ':' and 'missing' as they are.

Copy link
Member

@t-will-gillis t-will-gillis left a comment

Choose a reason for hiding this comment

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

Good catch with the ':' in 'Complexity: missing'! Although I can see one side of an argument for keeping it, my opinion would be to ditch the colon and capitalize Missing to match:
const LABELS_OBJ = { 'Complexity Missing': 'Complexity', 'role missing': 'Role', 'Feature Missing': 'Feature' }

How do you feel about it?
I notice that Matt added this issue to the meeting agenda for January 29th. I am submitting this as a comment for now and will test this tomorrow to see whether removing the colon has any unexpected affects.

I tested with 'Complexity Missing' : 'Complexity' - the test was OK/ no issues.

@MattPereira
Copy link
Contributor

MattPereira commented Feb 1, 2023

Hey @bzzz-coding

We brought up your question about letter casing and the usage of : with the product manager. She said casing does not matter for labels but to definitely keep the : for the complexity: missing label because the github actions may fail if you remove it.

Copy link
Member

@t-will-gillis t-will-gillis left a comment

Choose a reason for hiding this comment

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

Hey @bzzz-coding - Awesome work and thanks for following through with it!

@MattPereira MattPereira self-requested a review February 1, 2023 18:50
@MattPereira
Copy link
Contributor

ETA: End of day Feb 1st
Availability: 8-10 PM Sunday thru Thursday

Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

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

Amazing work on this one @bzzz-coding ! 👍

I appreciate your attention to detail noticing the label naming inconsistencies and would also like to commend the outstanding display of teamwork between you and @t-will-gillis on this PR

@MattPereira MattPereira merged commit 9ac4438 into hackforla:gh-pages Feb 1, 2023
@bzzz-coding bzzz-coding deleted the modify-github-actions-for-label-change-3109 branch March 14, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation for manulal github board maintenance actions that are going to be automated Complexity: Medium Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms role: back end/devOps Tasks for back-end developers size: 1pt Can be done in 4-6 hours Status: Updated No blockers and update is ready for review time sensitive Needs to be worked on by a particular timeframe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifying GitHub actions for label change from size to level
4 participants