From 88b214a61f2dfac4ed6904f70be7a79257b983e7 Mon Sep 17 00:00:00 2001 From: choco-sync Date: Fri, 28 Oct 2022 17:12:41 +0000 Subject: [PATCH 1/3] (maint) Created local '.github/workflows/label-sync.yml' from remote '.github/workflows/label-sync.yml' --- .github/workflows/label-sync.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/label-sync.yml diff --git a/.github/workflows/label-sync.yml b/.github/workflows/label-sync.yml new file mode 100644 index 0000000..773f6fb --- /dev/null +++ b/.github/workflows/label-sync.yml @@ -0,0 +1,24 @@ +name: Sync labels +on: + workflow_dispatch: + schedule: + # Run at the end of the day (most likely UTC) + - cron: "0 0 * * *" + +jobs: + labels: + # We use ubuntu as the image, as it is typically faster and cheaper (on private repos). + runs-on: ubuntu-latest + + steps: + # uncomment the uses line if additional configuration in the current + # repository is used. + #- uses: actions/checkout@v3.0.2 + - uses: EndBug/label-sync@v2.2.0 + with: + config-file: | + https://raw.githubusercontent.com/chocolatey/.github/master/.github/labels.yml + request-token: ${{ secrets.SYNC_TOKEN }} # Used when getting the config files. + delete-other-labels: false # After initial run, and verification change this to true + dry-run: false + token: ${{ secrets.SYNC_TOKEN }} # Used when updating the labels on the repository. \ No newline at end of file From e825b560eec23291292176085c4630bb7289f5cc Mon Sep 17 00:00:00 2001 From: Paul Broadwith Date: Mon, 31 Oct 2022 11:54:40 +0000 Subject: [PATCH 2/3] (maint) Force delete existing labels --- .github/workflows/label-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label-sync.yml b/.github/workflows/label-sync.yml index 773f6fb..284e8de 100644 --- a/.github/workflows/label-sync.yml +++ b/.github/workflows/label-sync.yml @@ -19,6 +19,6 @@ jobs: config-file: | https://raw.githubusercontent.com/chocolatey/.github/master/.github/labels.yml request-token: ${{ secrets.SYNC_TOKEN }} # Used when getting the config files. - delete-other-labels: false # After initial run, and verification change this to true + delete-other-labels: true # After initial run, and verification change this to true dry-run: false token: ${{ secrets.SYNC_TOKEN }} # Used when updating the labels on the repository. \ No newline at end of file From 5692cde0d5a434230de8ebefa2c4ffff9361e54a Mon Sep 17 00:00:00 2001 From: Paul Broadwith Date: Mon, 31 Oct 2022 12:07:38 +0000 Subject: [PATCH 3/3] (doc) Document repository labels --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a83a30f..eb7c702 100644 --- a/README.md +++ b/README.md @@ -565,3 +565,9 @@ Returns the list of the packages which have `update.ps1` script in its directory Helper scripts to make maintaining packages using AU even easier - [Chocolatey Core Community Maintainers Team Packages](https://github.com/chocolatey/chocolatey-coreteampackages) The [largest](https://gist.github.com/choco-bot/a14b1e5bfaf70839b338eb1ab7f8226f) repository of AU packages by far + +## Repository + +### Labels + +The labels for this repository are synchronized from the [`chocolatey/.github`](https://github.com/chocolatey/.github) repository. Any labels not part of that configuration will be deleted. If you need to create additional labels, please follow the instructions for doing so over in that repository. \ No newline at end of file