From 8505916ebc5a1df8643ac972e3f396082c69ae98 Mon Sep 17 00:00:00 2001 From: Claudia Meadows Date: Mon, 2 Sep 2024 08:31:46 -0700 Subject: [PATCH] Add code owners, add triage ping, fix workflows --- .editorconfig | 2 +- .github/CODEOWNERS | 3 ++- .github/workflows/issue-create.yml | 13 +++++++++++++ .github/workflows/merge.yml | 2 +- .github/workflows/rollback.yml | 2 +- .github/workflows/test-next-push.yml | 2 +- 6 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/issue-create.yml diff --git a/.editorconfig b/.editorconfig index 7352e894..7f44b1db 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,6 +10,6 @@ trim_trailing_whitespace = true insert_final_newline = true end_of_line = lf -[{package.json,.travis.yml}] +[{package.json,.travis.yml,.github/**/*.yml}] indent_style = space indent_size = 2 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8107dd70..6988722d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,2 @@ -* @MithrilJS/Collaborators +* @MithrilJS/Committers +/.github/ @MithrilJS/Admins diff --git a/.github/workflows/issue-create.yml b/.github/workflows/issue-create.yml new file mode 100644 index 00000000..f3a56ee4 --- /dev/null +++ b/.github/workflows/issue-create.yml @@ -0,0 +1,13 @@ +name: Ping triage on issue create + +on: + issues: + types: [opened] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - run: gh issue comment ${{ github.event.issue.url }} --body '@MithrilJS/triage Please take a look.' + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 6f1f704b..0f356c62 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - run: git clone --depth=0 https://github.com/MithrilJS/mithril.js.git && cd mithril.js + - run: git clone --depth=1 https://github.com/MithrilJS/mithril.js.git && cd mithril.js - uses: ./.github/actions/setup - run: npm run build - run: npx pr-release merge --target master --source next --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change diff --git a/.github/workflows/rollback.yml b/.github/workflows/rollback.yml index 57f2aacc..22319dcc 100644 --- a/.github/workflows/rollback.yml +++ b/.github/workflows/rollback.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - run: git clone --depth=0 https://github.com/MithrilJS/mithril.js.git && cd mithril.js + - run: git clone --depth=1 https://github.com/MithrilJS/mithril.js.git && cd mithril.js - uses: ./.github/actions/setup - run: npm run build - run: npx pr-release rollback --verbose --target master --source next --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md diff --git a/.github/workflows/test-next-push.yml b/.github/workflows/test-next-push.yml index c3aeef38..bbafbb2c 100644 --- a/.github/workflows/test-next-push.yml +++ b/.github/workflows/test-next-push.yml @@ -15,7 +15,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - run: git clone --depth=0 https://github.com/MithrilJS/mithril.js.git && cd mithril.js + - run: git clone --depth=1 https://github.com/MithrilJS/mithril.js.git && cd mithril.js - uses: ./.github/actions/setup - run: npm run build - run: npx pr-release pr --verbose --target master --source next --compact --verbose --minimize-semver-change