From ba7eb7ea07bbf3167ff4586276f4d9e02da8e79a Mon Sep 17 00:00:00 2001 From: Will Schurman Date: Tue, 24 Sep 2024 13:19:46 -0700 Subject: [PATCH] [ci] Remove blurb about changelog bot since it is still disabled (#2592) --- .github/workflows/changelog-bot.yml | 48 ----------------------------- .github/workflows/changelog.yml | 3 +- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 .github/workflows/changelog-bot.yml diff --git a/.github/workflows/changelog-bot.yml b/.github/workflows/changelog-bot.yml deleted file mode 100644 index b98c8fb69c..0000000000 --- a/.github/workflows/changelog-bot.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Changelog bot - -on: - issue_comment: - types: [created] - -jobs: - pr-commented: - runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && github.event.issue.user.login == github.event.comment.user.login && startsWith(github.event.comment.body, '/changelog-entry ') }} - steps: - - uses: actions/checkout@v2 - with: - token: ${{ secrets.EXPO_BOT_PAT }} - - uses: actions/setup-node@v2 - with: - node-version: 20 - - name: Checkout Pull Request - run: gh pr checkout ${{ github.event.issue.number }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Install dependencies - working-directory: ./scripts - run: yarn install --frozen-lockfile --check-files - - name: Add changelog entry - working-directory: ./scripts - run: | - PARAMS=${PR_COMMENT_BODY#/changelog-entry } - if [[ ! "$PARAMS" =~ " " ]]; then - echo "Invalid /changelog-entry command" - exit 1 - fi - CATEGORY=$( cut -d ' ' -f 1 <<< "$PARAMS" | sed -e 's/^[[:space:]]*//' ) - MESSAGE=$( cut -d ' ' -f 2- <<< "$PARAMS" | sed -e 's/^[[:space:]]*//' ) - yarn changelog-entry "$CATEGORY" "$MESSAGE" - env: - GITHUB_PR_AUTHOR: ${{ github.event.issue.user.login }} - GITHUB_PR_NUMBER: ${{ github.event.issue.number }} - PR_COMMENT_BODY: ${{ github.event.comment.body }} - - name: Commit and push - run: | - # use the last commit author name and email - git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" - git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" - - git add CHANGELOG.md - git commit -m "update CHANGELOG.md" - git push diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 35e1ddfb19..a2544741b8 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -36,6 +36,5 @@ jobs: refresh-message-position: true message: ${{ contains(github.event.pull_request.labels.*.name, 'no changelog') && '⏩ The changelog entry check has been skipped since the "no changelog" label is present.' || '✅ Thank you for adding the changelog entry!' }} message-failure: | - ❌ It looks like a changelog entry is missing for this PR. You have two options: you can add it manually, or you can use the changelog bot to do it for you. - 🤖 To use the bot, simply comment on this PR with the command `/changelog-entry [breaking-change|new-feature|bug-fix|chore] [message]`. + ❌ It looks like a changelog entry is missing for this PR. Add it manually to CHANGELOG.md. ⏩ If this PR doesn't require a changelog entry, such as if it's an internal change that doesn't affect the user experience, you can add the "no changelog" label to the PR.