diff --git a/.github/workflows/auto-close-community-issues.yml b/.github/workflows/auto-close-community-issues.yml index b71542802d0..f8d526d3207 100644 --- a/.github/workflows/auto-close-community-issues.yml +++ b/.github/workflows/auto-close-community-issues.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest permissions: issues: write - if: github.event.issue.author_association != 'OWNER' && github.event.issue.author_association != 'MEMBER' && github.event.issue.author_association != 'COLLABORATOR' + if: github.event.issue.user.login != 'team-tf-cdk' && !contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR"]'), github.event.issue.author_association) steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab diff --git a/.github/workflows/auto-close-community-prs.yml b/.github/workflows/auto-close-community-prs.yml index 8e67532d54a..f354679dd43 100644 --- a/.github/workflows/auto-close-community-prs.yml +++ b/.github/workflows/auto-close-community-prs.yml @@ -10,14 +10,14 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write - if: github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'COLLABORATOR' + if: github.event.pull_request.user.login != 'team-tf-cdk' && !contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR"]'), github.event.pull_request.author_association) steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - name: Auto-close PRs by non-collaborators env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh pr close ${{ github.event.pull_request.number }} --delete-branch --comment "Hi there! 👋 We appreciate your interest, but this is probably not the right place. All the code in this repository is auto-generated using [cdktf-provider-project](https://github.com/cdktf/cdktf-provider-project) and [cdktf-repository-manager](https://github.com/cdktf/cdktf-repository-manager) from the source [Terraform provider](https://github.com/terraform-providers/terraform-provider-azurerm). If there are problems, they should be addressed in one of those 3 repositories, not here, as any changes here will just get overwritten the next time there is an update upstream. Please open a new issue or PR in one of those repos. In the meantime, I'll auto-close this. Thanks!" + run: gh pr close ${{ github.event.pull_request.number }} --comment "Hi there! 👋 We appreciate your interest, but this is probably not the right place. All the code in this repository is auto-generated using [cdktf-provider-project](https://github.com/cdktf/cdktf-provider-project) and [cdktf-repository-manager](https://github.com/cdktf/cdktf-repository-manager) from the source [Terraform provider](https://github.com/terraform-providers/terraform-provider-azurerm). If there are problems, they should be addressed in one of those 3 repositories, not here, as any changes here will just get overwritten the next time there is an update upstream. Please open a new issue or PR in one of those repos. In the meantime, I'll auto-close this. Thanks!" - name: Add labels env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.projen/deps.json b/.projen/deps.json index 0080949ae9a..df443765ebc 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -7,7 +7,7 @@ }, { "name": "@cdktf/provider-project", - "version": "^0.2.95", + "version": "^0.3.0", "type": "build" }, { diff --git a/.projenrc.js b/.projenrc.js index e898e7b4bc3..70be0cc6ade 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -11,7 +11,7 @@ const project = new CdktfProviderProject({ constructsVersion: "^10.0.0", minNodeVersion: "18.12.0", jsiiVersion: "^5.0.1", - devDeps: ["@cdktf/provider-project@^0.2.95"], + devDeps: ["@cdktf/provider-project@^0.3.0"], }); project.synth(); diff --git a/package.json b/package.json index e65ec18770f..1fefcb2f7cc 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ }, "devDependencies": { "@actions/core": "^1.1.0", - "@cdktf/provider-project": "^0.2.95", + "@cdktf/provider-project": "^0.3.0", "@types/node": "^18", "cdktf": "^0.19.0", "cdktf-cli": "^0.19.0", @@ -58,7 +58,7 @@ "jsii-rosetta": "~5.1.2", "node-fetch": "cjs", "npm-check-updates": "^16", - "projen": "^0.75.1", + "projen": "^0.75.2", "standard-version": "^9", "typescript": "^3.9.10" }, diff --git a/yarn.lock b/yarn.lock index a94e84a1371..b5a24bd1efb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -200,10 +200,10 @@ fs-extra "^8.1.0" jsii-srcmak "^0.1.951" -"@cdktf/provider-project@^0.2.95": - version "0.2.134" - resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.134.tgz#1f1d90c19e0e0a121c157f881586a8ec8eadace6" - integrity sha512-bqU1i0iBg8ky1FRwV6qLdP4Au+XxIhHC7tAIu8Jx++SYhQRnz8hh5fKs3o6UCOtnoUZOTgi4DDNZ1ltnBN/dFA== +"@cdktf/provider-project@^0.3.0": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.3.1.tgz#ba48584504439bfa38f9c9e885a91a0611dead63" + integrity sha512-/qIBcolV6JZbqwQZpEPlMPzQ7epL5MAWL3vaZcY6MOA10chHHWvHeEFk7zDL73jnXoUbpsBa/mCbCYkN5v4VdA== dependencies: change-case "^4.1.2" fs-extra "^10.1.0" @@ -4385,10 +4385,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.75.1: - version "0.75.1" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.75.1.tgz#6da200caa43cb20b82e8be627cbba070aa6e20bf" - integrity sha512-iXmT/MIz8xA4V1omA0UF5IlCo2mWBQVLEzKtWWcTBFLzfjXU+LONBsrivPUtTJq19hqe7xoB2RnOC772tvVTGA== +projen@^0.75.2: + version "0.75.2" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.75.2.tgz#bcc8c173b235f1ea77379b57a8f083e4736e1e43" + integrity sha512-vLA7rzEIp52MgZZ78lArCXHbkOruXS59cU0U4Q1sPgbbKF3MsRoldza2KdOx/aJl/nYa0KlPGxefseNFRg9QXg== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3"