Skip to content

Commit

Permalink
Merge of #264
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 16, 2024
2 parents 1569408 + 4726ceb commit b0804e3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Auto-generated by ./mkrepo.sh

/.github/workflows/*-pull.yaml linguist-generated
/.github/workflows/*-release.yaml linguist-generated
/**/package-lock.json linguist-generated
/**/*.extern.d.ts linguist-generated
/package-lock.json linguist-generated
16 changes: 16 additions & 0 deletions .mkrepo/gitattributes.w
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bring fs;

pub class GitAttributes {
new() {
let lines = MutArray<str>[];
lines.push("# Auto-generated by ./mkrepo.sh");
lines.push("");
lines.push("/.github/workflows/*-pull.yaml linguist-generated");
lines.push("/.github/workflows/*-release.yaml linguist-generated");
lines.push("/**/package-lock.json linguist-generated");
lines.push("/**/*.extern.d.ts linguist-generated");
lines.push("/package-lock.json linguist-generated");
lines.push("");
fs.writeFile(".gitattributes", lines.join("\n"));
}
}
2 changes: 2 additions & 0 deletions .mkrepo/main.w
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
bring fs;
bring "./canary.w" as canary;
bring "./gitattributes.w" as gitattributes;
bring "./library.w" as l;
bring "./mergify.w" as mergify;
bring "./pr-lint.w" as prlint;
Expand Down Expand Up @@ -34,6 +35,7 @@ new stale.StaleWorkflow(workflowdir);
new mergify.MergifyWorkflow(libs.copy());
new prdiff.PullRequestDiffWorkflow(workflowdir);
new prlint.PullRequestLintWorkflow(workflowdir, libs.copy());
new gitattributes.GitAttributes();

let skipCanaryTests = [
"containers" // https://github.com/winglang/wing/issues/5716
Expand Down

0 comments on commit b0804e3

Please sign in to comment.