From b4369518dd358883416690939b66180014aa837a Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 16 Jun 2024 21:18:53 +1000 Subject: [PATCH 1/2] add auto assign milestone GitHub action --- .github/workflows/pr_milestone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pr_milestone.yml diff --git a/.github/workflows/pr_milestone.yml b/.github/workflows/pr_milestone.yml new file mode 100644 index 000000000..b343a39cc --- /dev/null +++ b/.github/workflows/pr_milestone.yml @@ -0,0 +1,19 @@ +name: Set Milestone + +# Assigns the earliest created milestone that matches the below glob pattern. + +on: + pull_request: + types: [opened] + +jobs: + automation: + runs-on: ubuntu-latest + + steps: + - name: set-milestone + uses: andrefcdias/add-to-milestone@v1.3.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + milestone: "+([0-9]).+([0-9]).+([0-9])" + use-expression: true From deee215ce592dbeb7e89a5da43afd730a6cce2c2 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 16 Jun 2024 21:27:29 +1000 Subject: [PATCH 2/2] fix gitStream screenshot request automation config --- .cm/gitstream.cm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.cm/gitstream.cm b/.cm/gitstream.cm index fcf01c0fe..c372f5a6c 100644 --- a/.cm/gitstream.cm +++ b/.cm/gitstream.cm @@ -72,4 +72,8 @@ changes: # Sum all the line removed in the PR deletions: {{ branch.diff.files_metadata | map(attr='deletions') | sum }} # Calculate the ratio of new code - ratio: {{ (changes.additions / (changes.additions + changes.deletions)) * 100 | round(2) }} \ No newline at end of file + ratio: {{ (changes.additions / (changes.additions + changes.deletions)) * 100 | round(2) }} + +has: + screenshot_link: {{ pr.description | includes(regex=r/!\[.*\]\(.*(jpg|svg|png|gif|psd).*\)/) }} + image_uploaded: {{ pr.description | includes(regex=r//) }} \ No newline at end of file