8000 📣 [just] add compliance check by chicks-net · Pull Request #3 · fini-net/template-repo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

📣 [just] add compliance check #3

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

chicks-net
Copy link
Member

Done:

  • 📣 [just] add compliance check

(Automated in justfile.)

@chicks-net chicks-net merged commit a37b3e7 into main Jun 2, 2025
1 check passed
@chicks-net chicks-net deleted the chicks/2025-06-02-just-compliance branch June 2, 2025 12:28
@chicks-net chicks-net requested a review from Copilot June 6, 2025 11:37
Copy link
@Copilot Copilot AI left a 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 introduces a compliance check target into the justfile to ensure that key repository files are present, promoting standardization.

  • Adds a new compliance check group under the "Compliance" target.
  • Checks for the presence of key files such as README.md, LICENSE, and various GitHub support files.

#!/usr/bin/env bash
set -euo pipefail # strict mode without tracing

echo "{{BLUE}}Chicks' repo compliance check...{{NORMAL}}"
Copy link
Preview
Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider revising the message tone to be more neutral and professional; the phrase may be interpreted as unprofessional in some contexts.

Suggested change
echo "{{BLUE}}Chicks' repo compliance check...{{NORMAL}}"
echo "{{BLUE}}Repository compliance check...{{NORMAL}}"

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, but that's fine with me.

fi

if [[ $(gh repo view --json description | jq -r '.description' | wc -c) -gt 16 ]]; then
echo "{{GREEN}}[gh] You have a repo description, more evidence that you are undescribable.{{NORMAL}}"
Copy link
Preview
Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider a more straightforward status message; the current wording has a whimsical tone that might not be ideal for professional compliance checks.

Suggested change
echo "{{GREEN}}[gh] You have a repo description, more evidence that you are undescribable.{{NORMAL}}"
echo "{{GREEN}}[gh] You have a repository description, which is a good practice.{{NORMAL}}"

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair, but the brand is all about being a professional with whimsy.

if [[ -e .gitignore ]]; then
echo "{{GREEN}}You have a .gitignore file, so there will be less debris in your future.{{NORMAL}}"
else
echo "{{RED}}You do NOT have a .gitignore file. I expect you to keep ignoring my advice!{{NORMAL}}"
Copy link
Preview
Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider modifying the tone of this message to be more neutral; humorous admonishments may not be received positively by all users.

Suggested change
echo "{{RED}}You do NOT have a .gitignore file. I expect you to keep ignoring my advice!{{NORMAL}}"
echo "{{RED}}You do NOT have a .gitignore file. Please consider adding one to manage ignored files effectively.{{NORMAL}}"

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm sticking with humor here.

Comment on lines +188 to +189
echo "{{RED}}You do NOT have a justfile. Feeling the FOMO yet?{{NORMAL}}"
echo "{{RED}}And this should not be possible. Tell me how you got here.{{NORMAL}}"
Copy link
Preview
Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

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

[nitpick] Revise this message to remove the playful tone and adopt a neutral, informative tone for error reporting.

Suggested change
echo "{{RED}}You do NOT have a justfile. Feeling the FOMO yet?{{NORMAL}}"
echo "{{RED}}And this should not be possible. Tell me how you got here.{{NORMAL}}"
echo "{{RED}}You do NOT have a justfile.{{NORMAL}}"
echo "{{RED}}Error: The justfile is missing. This script requires a justfile to function correctly.{{NORMAL}}"

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

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

What if I want to be less neutral and more playful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0