From 54405a38ed07e3292da80caec585bc305cdcbd68 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Thu, 1 Aug 2024 00:41:34 +0200 Subject: [PATCH] Warning for generated files --- .../templates/github/ISSUE_TEMPLATE/20-report-a-bug.yml.kte | 2 +- .../templates/github/ISSUE_TEMPLATE/config.yml.kte | 6 ++++++ .../resources/templates/github/workflows/build.yaml.kte | 6 ++++++ .../templates/github/workflows/documentation.yaml.kte | 6 ++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/20-report-a-bug.yml.kte b/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/20-report-a-bug.yml.kte index ba4220f..4e8e9c4 100644 --- a/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/20-report-a-bug.yml.kte +++ b/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/20-report-a-bug.yml.kte @@ -1,7 +1,7 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata --- -@if(meta.files.gradleRootProject.update) +@if(meta.files.githubIssueTemplates.update) # !! THIS FILE WAS GENERATED USING repoman !! # Modify `repo.yaml` instead and use `repoman` to update this file # See: https://github.com/metaborg/metaborg-gradle/ diff --git a/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/config.yml.kte b/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/config.yml.kte index 596d137..2f322ac 100644 --- a/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/config.yml.kte +++ b/repoman/src/main/resources/templates/github/ISSUE_TEMPLATE/config.yml.kte @@ -1,6 +1,12 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata --- +@if(meta.files.githubIssueTemplates.update) +# !! THIS FILE WAS GENERATED USING repoman !! +# Modify `repo.yaml` instead and use `repoman` to update this file +# See: https://github.com/metaborg/metaborg-gradle/ + +@endif blank_issues_enabled: false contact_links: - name: 📚 Spoofax Documentation diff --git a/repoman/src/main/resources/templates/github/workflows/build.yaml.kte b/repoman/src/main/resources/templates/github/workflows/build.yaml.kte index e03aab6..0a033a3 100644 --- a/repoman/src/main/resources/templates/github/workflows/build.yaml.kte +++ b/repoman/src/main/resources/templates/github/workflows/build.yaml.kte @@ -1,6 +1,12 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata --- +@if(meta.files.githubWorkflows.update) +# !! THIS FILE WAS GENERATED USING repoman !! +# Modify `repo.yaml` instead and use `repoman` to update this file +# See: https://github.com/metaborg/metaborg-gradle/ + +@endif name: 'Build & Publish' on: # yamllint disable-line rule:truthy diff --git a/repoman/src/main/resources/templates/github/workflows/documentation.yaml.kte b/repoman/src/main/resources/templates/github/workflows/documentation.yaml.kte index cda4fba..bec3569 100644 --- a/repoman/src/main/resources/templates/github/workflows/documentation.yaml.kte +++ b/repoman/src/main/resources/templates/github/workflows/documentation.yaml.kte @@ -1,6 +1,12 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata --- +@if(meta.files.githubWorkflows.update) +# !! THIS FILE WAS GENERATED USING repoman !! +# Modify `repo.yaml` instead and use `repoman` to update this file +# See: https://github.com/metaborg/metaborg-gradle/ + +@endif name: 'Documentation' on: # yamllint disable-line rule:truthy