From a001bc92aef784dd27df9a73dd39d131c926a2e2 Mon Sep 17 00:00:00 2001 From: Barb Cutler Date: Wed, 7 Sep 2022 14:56:53 -0400 Subject: [PATCH 1/2] add title check --- .github/workflows/dependabot_title_fix.yml | 16 ++++++++++++++++ .github/workflows/pr_title_check.yml | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/dependabot_title_fix.yml create mode 100644 .github/workflows/pr_title_check.yml diff --git a/.github/workflows/dependabot_title_fix.yml b/.github/workflows/dependabot_title_fix.yml new file mode 100644 index 0000000..c47a53d --- /dev/null +++ b/.github/workflows/dependabot_title_fix.yml @@ -0,0 +1,16 @@ +name: 'Dependabot PR Title Fixer' +on: + pull_request_target: + # check when PR + # * is created, + # * title is edited, and + # * new commits are added (to ensure failing title blocks merging) + types: [ opened, reopened, edited, synchronize ] + +jobs: + title-check: + runs-on: ubuntu-latest + steps: + - uses: submitty/action-dependabot-title-fixer@main + with: + token: ${{ secrets.REPO_SCOPED_TOKEN }} diff --git a/.github/workflows/pr_title_check.yml b/.github/workflows/pr_title_check.yml new file mode 100644 index 0000000..60aeb1c --- /dev/null +++ b/.github/workflows/pr_title_check.yml @@ -0,0 +1,20 @@ +name: 'Submitty PR Title Check' +on: + pull_request: + # check when PR + # * is created, + # * title is edited, and + # * new commits are added (to ensure failing title blocks merging) + types: [ opened, reopened, edited, synchronize ] + +jobs: + title-check: + runs-on: ubuntu-latest + steps: + # + # pull request titles format rules here: + # https://submitty.org/developer/how_to_contribute#how-to-make-a-pull-request-pr-to-submitty + # + # [:] + # + - uses: submitty/action-pr-title@main From a6fbf5466e9d5080a949633d8b993268c3a55054 Mon Sep 17 00:00:00 2001 From: Barb Cutler Date: Wed, 7 Sep 2022 14:59:19 -0400 Subject: [PATCH 2/2] remove dependabot titlefix --- .github/workflows/dependabot_title_fix.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/workflows/dependabot_title_fix.yml diff --git a/.github/workflows/dependabot_title_fix.yml b/.github/workflows/dependabot_title_fix.yml deleted file mode 100644 index c47a53d..0000000 --- a/.github/workflows/dependabot_title_fix.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'Dependabot PR Title Fixer' -on: - pull_request_target: - # check when PR - # * is created, - # * title is edited, and - # * new commits are added (to ensure failing title blocks merging) - types: [ opened, reopened, edited, synchronize ] - -jobs: - title-check: - runs-on: ubuntu-latest - steps: - - uses: submitty/action-dependabot-title-fixer@main - with: - token: ${{ secrets.REPO_SCOPED_TOKEN }}