From de503bbb2ba94527464134f4d24f0ded1e1ad9a6 Mon Sep 17 00:00:00 2001 From: Sean Date: Tue, 17 Aug 2021 12:45:30 +0200 Subject: [PATCH] Monitor and announces changes to models and perms Monitors changes to docs/models.yml and docs/perms.yml. If changes were made and merged github actions will create an issue and assign the maintainers of the subprojects to ackknowledge the changes. --- .../updates-to-models.md | 29 +++++++++++++++++++ .../updates-to-permissions.md | 29 +++++++++++++++++++ .github/workflows/announce-model-updates.yml | 25 ++++++++++++++++ .../workflows/announce-permission-updates.yml | 25 ++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 .github/announcement_templates/updates-to-models.md create mode 100644 .github/announcement_templates/updates-to-permissions.md create mode 100644 .github/workflows/announce-model-updates.yml create mode 100644 .github/workflows/announce-permission-updates.yml diff --git a/.github/announcement_templates/updates-to-models.md b/.github/announcement_templates/updates-to-models.md new file mode 100644 index 000000000..e5aabf7be --- /dev/null +++ b/.github/announcement_templates/updates-to-models.md @@ -0,0 +1,29 @@ +--- +title: The models.yml got updated +assignees: tsiegleauq, ostcar, normanjaeckel, jsangmeister, r-peschke, GabrielInTheWorld +labels: documentation, OpenSlides4, meta +--- + +# Changes to `models.yml` have just been added to OpenSlides + +Please acknowledge the recent changes to `models.yml` and update your projects accordingly. + +### Current `models.yml` +[docs/models.yml]({{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/blob/master/docs/models.yml) + +### Corresponding Commit: +[{{ env.GITHUB_SHA }}]({{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/commit/{{ env.GITHUB_SHA }}) + +## Affected Projects + +### Backend +https://github.com/OpenSlides/openslides-backend + +### Client +https://github.com/OpenSlides/openslides-client + +### Autoupdate +https://github.com/OpenSlides/openslides-autoupdate-service + +### Manage +https://github.com/OpenSlides/openslides-manage-service \ No newline at end of file diff --git a/.github/announcement_templates/updates-to-permissions.md b/.github/announcement_templates/updates-to-permissions.md new file mode 100644 index 000000000..23b9ccc88 --- /dev/null +++ b/.github/announcement_templates/updates-to-permissions.md @@ -0,0 +1,29 @@ +--- +title: The permission.yml got updated +assignees: tsiegleauq, ostcar, normanjaeckel, jsangmeister, r-peschke, GabrielInTheWorld +labels: documentation, OpenSlides4, meta +--- + +# Changes to `permission.yml` have just been added to OpenSlides + +Please acknowledge the recent changes to `permission.yml` and update your projects accordingly. + +### Current `permission.yml` +[docs/permission.yml]({{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/blob/master/docs/permission.yml) + +### Corresponding Commit: +[{{ env.GITHUB_SHA }}]({{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/commit/{{ env.GITHUB_SHA }}) + +## Affected Projects + +### Backend +https://github.com/OpenSlides/openslides-backend + +### Client +https://github.com/OpenSlides/openslides-client + +### Autoupdate +https://github.com/OpenSlides/openslides-autoupdate-service + +### Manage +https://github.com/OpenSlides/openslides-manage-service \ No newline at end of file diff --git a/.github/workflows/announce-model-updates.yml b/.github/workflows/announce-model-updates.yml new file mode 100644 index 000000000..39b95bcc8 --- /dev/null +++ b/.github/workflows/announce-model-updates.yml @@ -0,0 +1,25 @@ +--- +name: Announce model updates +on: + push: + branches: + - openslides4-dev + # - master + paths: + - 'docs/models.yml' + +jobs: + announce-update: + name: 'Announce updates to models.yml' + if: ${{ github.event.pull_request.merged }} + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Create Issue + uses: JasonEtco/create-an-issue@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filename: .github/announcement_templates/updates-to-models.md \ No newline at end of file diff --git a/.github/workflows/announce-permission-updates.yml b/.github/workflows/announce-permission-updates.yml new file mode 100644 index 000000000..691626f93 --- /dev/null +++ b/.github/workflows/announce-permission-updates.yml @@ -0,0 +1,25 @@ +--- +name: Announce permission updates +on: + push: + branches: + - openslides4-dev + # - master + paths: + - 'docs/permission.yml' + +jobs: + announce-update: + name: 'Announce updates to permission.yml' + if: ${{ github.event.pull_request.merged }} + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Create Issue + uses: JasonEtco/create-an-issue@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filename: .github/announcement_templates/updates-to-permissions.md \ No newline at end of file