Skip to content

Conversation

@nimshi89
Copy link

@nimshi89 nimshi89 commented Sep 8, 2025

What is the context of this PR?

Changed '.njk' files to '.jinja' due to copier not rendering all files.
Removed some logic related to njk.
Small changes to devcontainer due to errors when setting up.
small changes to test files due to erros.

How to review

Check if it makes sense and it aligns with the longterm goal of the team.

Follow-up Actions

List any follow-up actions (if applicable), like needed documentation updates or additional testing.

REQUIRE_CONVERSATION_RESOLUTION="{{ require_conversation_resolution | lower }}"
./copier_scripts/run_tasks.sh
#./copier_scripts/run_tasks.sh
Copy link

Choose a reason for hiding this comment

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

is there a need for this commented line?

Copy link
Author

Choose a reason for hiding this comment

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

damn I forgot about that :D

help: "Not prompted. This is computed for re-use."
default: "{{ repository_visibility == 'public' }}"
when: false
default: false
Copy link

Choose a reason for hiding this comment

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

Am I reading this incorrect? It seems to say is_public_repo is false on default if repository_visibility is public?

Copy link
Author

Choose a reason for hiding this comment

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

So that means :

If the user sets repository_visibility to "public", then is_public_repo will be available (and its value will be false unless overridden)

so this boolian variable will only be available if the user sets the repo to public otherwise by default it will be set to false :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

this might be causing issues with PIRR.md / codeql.yml

# Policy Compliance Checklist

This document verifies compliance with ONS policies for the ${{ values.repository_name }} project.
This document verifies compliance with ONS policies for the ${{ repository_name }} project.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe the $ signs are not necessary in jinja... in the generated repo this displays as 'This document verifies compliance with ONS policies for the $test-repo project.' unfortunately it looks like there are a lot of $ signs, not sure if it's worth removing them

[![Build Status](https://github.com/${{ repository_owner }}/${{ repository_name }}/actions/workflows/ci.yml/badge.svg)](https://github.com/${{ repository_owner }}/${{ repository_name }}/actions/workflows/ci.yml)
[![Build Status](https://github.com/${{ repository_owner }}/${{ repository_name }}/actions/workflows/security-scan.yml/badge.svg)](https://github.com/${{ repository_owner }}/${{ repository_name }}/actions/workflows/security-scan.yml)
{%- if is_public_repo %}
[![Build Status](https://github.com/${{ repository_owner }}/${{ repository_name }}/actions/workflows/codeql.yml/badge.svg)](https://github.com/${{ repository_owner }}/${{ repository_name }}/actions/workflows/codeql.yml)
Copy link
Collaborator

Choose a reason for hiding this comment

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

again the $ signs show up in the resulting url

Copy link
Collaborator

Choose a reason for hiding this comment

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

for some reason the PIRR.md is still generated when the repo is set to Public

Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like codeql.yml isn't being generated when the repo is set to Public

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.

3 participants