From f365508bb0ebd9dc1d1492a6edd1e85e68cf3f8b Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 3 Mar 2022 11:13:28 +0100 Subject: [PATCH 1/4] ci: update global workflows (#278) --- .github/workflows/automerge.yml | 10 ++++++---- .github/workflows/autoupdate.yml | 3 ++- .github/workflows/bump.yml | 3 ++- .github/workflows/if-go-pr-testing.yml | 8 ++++---- .github/workflows/if-nodejs-pr-testing.yml | 4 ++-- .github/workflows/if-nodejs-release.yml | 6 +++--- .github/workflows/if-nodejs-version-bump.yml | 2 +- .github/workflows/issues-prs-notifications.yml | 12 ++++++------ .github/workflows/lint-pr-title.yml | 3 ++- .github/workflows/notify-tsc-members-mention.yml | 12 ++++++------ .github/workflows/release-announcements.yml | 4 ++-- .github/workflows/sentiment-analysis.yml | 2 +- .github/workflows/stale-issues-prs.yml | 1 + .github/workflows/welcome-first-time-contrib.yml | 1 + 14 files changed, 39 insertions(+), 32 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 2d0e1c71c..016cf872d 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -10,7 +10,8 @@ on: - synchronize jobs: - autoapprove: + autoapprove-for-bot: + name: Autoapprove PR comming from a bot if: > contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]"]'), github.event.pull_request.user.login) && contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]"]'), github.actor) && @@ -20,7 +21,7 @@ jobs: - name: Autoapproving uses: hmarr/auto-approve-action@v2 with: - github-token: "${{ secrets.GITHUB_TOKEN }}" + github-token: "${{ secrets.GH_TOKEN_BOT_EVE }}" - name: Label autoapproved uses: actions/github-script@v5 @@ -34,8 +35,9 @@ jobs: labels: ['autoapproved'] }) - automerge: - needs: [autoapprove] + automerge-for-bot: + name: Automerge PR autoapproved by a bot + needs: [autoapprove-for-bot] runs-on: ubuntu-latest steps: - name: Automerging diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index b8faa4280..5a23cce15 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -19,7 +19,8 @@ on: - 'all-contributors/**' jobs: - autoupdate: + autoupdate-for-bot: + name: Autoupdate autoapproved PR created in the upstream runs-on: ubuntu-latest steps: - name: Autoupdating diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index a6016b93b..cf4c6a841 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -14,7 +14,8 @@ on: - master jobs: - bump: + bump-in-dependent-projects: + name: Bump this package in repositories that depend on it if: startsWith(github.event.commits[0].message, 'chore(release):') runs-on: ubuntu-latest steps: diff --git a/.github/workflows/if-go-pr-testing.yml b/.github/workflows/if-go-pr-testing.yml index 8893baec8..b91e95784 100644 --- a/.github/workflows/if-go-pr-testing.yml +++ b/.github/workflows/if-go-pr-testing.yml @@ -8,8 +8,8 @@ on: types: [opened, reopened, synchronize, ready_for_review] jobs: - lint: - name: lint + lint-go-pr: + name: Lint Go PR runs-on: ubuntu-latest steps: - if: "github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))" @@ -35,8 +35,8 @@ jobs: with: skip-go-installation: true # we wanna control the version of Go in use - test: - name: ${{ matrix.os }} + test-go-pr: + name: Test Go PR - ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 6a9ad91c3..1894ed846 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -8,8 +8,8 @@ on: types: [opened, reopened, synchronize, ready_for_review] jobs: - test: - name: ${{ matrix.os }} + test-nodejs-pr: + name: Test NodeJS PR - ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index 6cdfa8e56..75bd5de48 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -17,8 +17,8 @@ on: jobs: - test: - name: Test on ${{ matrix.os }} + test-nodejs: + name: Test NodeJS release on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: @@ -49,7 +49,7 @@ jobs: run: npm test release: - needs: test + needs: [test-nodejs] name: Publish to any of NPM, Github, and Docker Hub runs-on: ubuntu-latest steps: diff --git a/.github/workflows/if-nodejs-version-bump.yml b/.github/workflows/if-nodejs-version-bump.yml index c1f5c8603..4de5a7a07 100644 --- a/.github/workflows/if-nodejs-version-bump.yml +++ b/.github/workflows/if-nodejs-version-bump.yml @@ -10,7 +10,7 @@ on: jobs: version_bump: - name: Generate assets and bump + name: Generate assets and bump NodeJS runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/.github/workflows/issues-prs-notifications.yml b/.github/workflows/issues-prs-notifications.yml index e9840d6e4..948abb87c 100644 --- a/.github/workflows/issues-prs-notifications.yml +++ b/.github/workflows/issues-prs-notifications.yml @@ -19,7 +19,7 @@ jobs: issue: if: github.event_name == 'issues' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' - name: On every new issue + name: Notify slack on every new issue runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown for issue @@ -31,13 +31,13 @@ jobs: uses: rtCamp/action-slack-notify@v2 env: SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} - SLACK_TITLE: πŸ› New Issue πŸ› + SLACK_TITLE: πŸ› New Issue in ${{github.repository}} πŸ› SLACK_MESSAGE: ${{steps.issuemarkdown.outputs.text}} MSG_MINIMAL: true pull_request: if: github.event_name == 'pull_request_target' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' - name: On every new pull request + name: Notify slack on every new pull request runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown for pull request @@ -49,13 +49,13 @@ jobs: uses: rtCamp/action-slack-notify@v2 env: SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} - SLACK_TITLE: πŸ’ͺ New Pull Request πŸ’ͺ + SLACK_TITLE: πŸ’ͺ New Pull Request in ${{github.repository}} πŸ’ͺ SLACK_MESSAGE: ${{steps.prmarkdown.outputs.text}} MSG_MINIMAL: true discussion: if: github.event_name == 'discussion' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' - name: On every new pull request + name: Notify slack on every new pull request runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown for pull request @@ -67,6 +67,6 @@ jobs: uses: rtCamp/action-slack-notify@v2 env: SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} - SLACK_TITLE: πŸ’¬ New Discussion πŸ’¬ + SLACK_TITLE: πŸ’¬ New Discussion in ${{github.repository}} πŸ’¬ SLACK_MESSAGE: ${{steps.discussionmarkdown.outputs.text}} MSG_MINIMAL: true diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index d9ea1e824..1d6cbf61d 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -8,7 +8,8 @@ on: types: [opened, reopened, synchronize, edited, ready_for_review] jobs: - lint: + lint-pr-title: + name: Lint PR title runs-on: ubuntu-latest steps: # Since this workflow is REQUIRED for a PR to be mergable, we have to have this 'if' statement in step level instead of job level. diff --git a/.github/workflows/notify-tsc-members-mention.yml b/.github/workflows/notify-tsc-members-mention.yml index 5d342af81..14db9eefa 100644 --- a/.github/workflows/notify-tsc-members-mention.yml +++ b/.github/workflows/notify-tsc-members-mention.yml @@ -35,7 +35,7 @@ jobs: issue: if: github.event_name == 'issues' && contains(github.event.issue.body, '@asyncapi/tsc_members') - name: On every new issue + name: TSC notification on every new issue runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown @@ -53,7 +53,7 @@ jobs: pull_request: if: github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@asyncapi/tsc_members') - name: On every new pull request + name: TSC notification on every new pull request runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown @@ -71,7 +71,7 @@ jobs: discussion: if: github.event_name == 'discussion' && contains(github.event.discussion.body, '@asyncapi/tsc_members') - name: On every new discussion + name: TSC notification on every new discussion runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown @@ -89,7 +89,7 @@ jobs: issue_comment: if: ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members') }} - name: On every new comment in issue + name: TSC notification on every new comment in issue runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown @@ -107,7 +107,7 @@ jobs: pr_comment: if: github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members') - name: On every new comment in pr + name: TSC notification on every new comment in pr runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown @@ -125,7 +125,7 @@ jobs: discussion_comment: if: github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@asyncapi/tsc_members') - name: On every new comment in discussion + name: TSC notification on every new comment in discussion runs-on: ubuntu-latest steps: - name: Convert markdown to slack markdown diff --git a/.github/workflows/release-announcements.yml b/.github/workflows/release-announcements.yml index 653ca2866..5a0b29f24 100644 --- a/.github/workflows/release-announcements.yml +++ b/.github/workflows/release-announcements.yml @@ -9,7 +9,7 @@ on: jobs: - slack: + slack-announce: name: Slack - notify on every release runs-on: ubuntu-latest steps: @@ -26,7 +26,7 @@ jobs: SLACK_MESSAGE: ${{steps.markdown.outputs.text}} MSG_MINIMAL: true - twitter: + twitter-announce: name: Twitter - notify on minor and major releases runs-on: ubuntu-latest steps: diff --git a/.github/workflows/sentiment-analysis.yml b/.github/workflows/sentiment-analysis.yml index c1cde5c34..73b8b490b 100644 --- a/.github/workflows/sentiment-analysis.yml +++ b/.github/workflows/sentiment-analysis.yml @@ -25,7 +25,7 @@ on: - created - edited jobs: - test: + sentiments: if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }} name: Checking sentiments runs-on: ubuntu-latest diff --git a/.github/workflows/stale-issues-prs.yml b/.github/workflows/stale-issues-prs.yml index 57c0f1853..06d7d9e92 100644 --- a/.github/workflows/stale-issues-prs.yml +++ b/.github/workflows/stale-issues-prs.yml @@ -9,6 +9,7 @@ on: jobs: stale: + name: Mark issue or PR as stale runs-on: ubuntu-latest steps: - uses: actions/stale@v4.0.0 diff --git a/.github/workflows/welcome-first-time-contrib.yml b/.github/workflows/welcome-first-time-contrib.yml index e1a5faf04..0aabef99b 100644 --- a/.github/workflows/welcome-first-time-contrib.yml +++ b/.github/workflows/welcome-first-time-contrib.yml @@ -13,6 +13,7 @@ on: jobs: welcome: + name: Post welcome message if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }} runs-on: ubuntu-latest steps: From 2b0ccc6b72da93a038ad8d304c5cd06cc21d3cd3 Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Thu, 3 Mar 2022 18:11:09 +0100 Subject: [PATCH 2/4] chore: fix codeowner files with better bot (#281) --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 2f41d3872..0ccf5be27 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -5,4 +5,4 @@ # For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/. # The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file. -* @fmvilas @alequetzalli @derberg @github-actions[bot] \ No newline at end of file +* @fmvilas @alequetzalli @derberg @asyncapi-bot-eve \ No newline at end of file From b543479dcd93df4628c07139888ed404e4b20772 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Sat, 5 Mar 2022 11:05:31 +0100 Subject: [PATCH 3/4] chore(tweet): recurring tweet about slack link (#283) --- tweets/recurring-slack-link/2022-03-05.tweet | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tweets/recurring-slack-link/2022-03-05.tweet diff --git a/tweets/recurring-slack-link/2022-03-05.tweet b/tweets/recurring-slack-link/2022-03-05.tweet new file mode 100644 index 000000000..0bd3e8865 --- /dev/null +++ b/tweets/recurring-slack-link/2022-03-05.tweet @@ -0,0 +1,7 @@ +✨ Did you know #AsyncAPI is on Slack? ✨ + +Join our Slack workspace to chat with anyone from our Open-Source community! + +πŸ”— asyncapi.com/slack-invite + +Ask for help and help others too. πŸ’ͺ🏿πŸ’ͺ🏽🦾 \ No newline at end of file From 4b7e7b363699b1e1c4557e06dd0a1e73f42e760e Mon Sep 17 00:00:00 2001 From: Samriddhi Date: Mon, 7 Mar 2022 17:21:47 +0530 Subject: [PATCH 4/4] chore: add @Samridhi-98 as TSC member (#276) --- TSC_MEMBERS.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TSC_MEMBERS.json b/TSC_MEMBERS.json index fe39eb1f5..bb8549697 100644 --- a/TSC_MEMBERS.json +++ b/TSC_MEMBERS.json @@ -352,5 +352,15 @@ "repos": [ "java-spring-template" ] + }, + { + "name": "Samridhi Agrawal", + "github": "Samridhi-98", + "linkedin": "samridhi-agrawal-1713201ab", + "availableForHire": false, + "company": "ThoughtWorks", + "repos": [ + "modelina" + ] } ]