From d9c39b56f2ccf96562fff05bd600a14ff178bdcb Mon Sep 17 00:00:00 2001 From: Divinesoumyadip Date: Thu, 2 Apr 2026 17:07:48 +0000 Subject: [PATCH 1/2] feat: add first-time contributor bot and PR size labeler Signed-off-by: Divinesoumyadip --- .github/workflows/first-time-contributor.yml | 43 ++++++++++++++++++++ .github/workflows/pr-labeler.yml | 26 ++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .github/workflows/first-time-contributor.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/workflows/first-time-contributor.yml b/.github/workflows/first-time-contributor.yml new file mode 100644 index 00000000000..eeaed4a2a4f --- /dev/null +++ b/.github/workflows/first-time-contributor.yml @@ -0,0 +1,43 @@ +name: First-Time Contributor Bot + +on: + issues: + types: [opened] + pull_request_target: + types: [opened] + +jobs: + greet: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: Greet First-Time Contributor + uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: | + Welcome to OpenROAD! Thanks for opening your first issue. + + To get started: + - QuickStart Guide: https://openroad.readthedocs.io/en/latest/main/README.html + - Build Instructions: https://openroad.readthedocs.io/en/latest/contrib/BuildWithCMake.html + - Join our Discord: https://discord.gg/x8Wz6kM4Qe + + Please search existing issues before submitting to avoid duplicates. + A maintainer will get back to you soon! + pr-message: | + Welcome to OpenROAD! Thanks for opening your first PR. + + Before we review: + - Contribution Guide: https://openroad.readthedocs.io/en/latest/contrib/contributing.html + - Build Instructions: https://openroad.readthedocs.io/en/latest/contrib/BuildWithCMake.html + - Join our Discord: https://discord.gg/x8Wz6kM4Qe + + Please ensure: + - CI passes + - Code is properly formatted + - Tests are included where applicable + + A maintainer will review shortly! diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000000..4b2496fab5d --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,26 @@ +name: PR Size Labeler + +on: + pull_request_target: + types: [opened, synchronize] + +jobs: + label: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Label PR Size + uses: codelytv/pr-size-labeler@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + xs_label: size/XS + xs_max_size: 10 + s_label: size/S + s_max_size: 100 + m_label: size/M + m_max_size: 500 + l_label: size/L + l_max_size: 1000 + xl_label: size/XL + fail_if_xl: false From 46e9614633d9480476cbca3f30ce56a8265fc9b3 Mon Sep 17 00:00:00 2001 From: Divinesoumyadip Date: Tue, 7 Apr 2026 14:40:10 +0000 Subject: [PATCH 2/2] fix: address review comments - fix broken link and remove discord from pr-message Signed-off-by: Divinesoumyadip --- .github/workflows/first-time-contributor.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/first-time-contributor.yml b/.github/workflows/first-time-contributor.yml index eeaed4a2a4f..ef8d90254b8 100644 --- a/.github/workflows/first-time-contributor.yml +++ b/.github/workflows/first-time-contributor.yml @@ -19,25 +19,20 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: | Welcome to OpenROAD! Thanks for opening your first issue. - To get started: - - QuickStart Guide: https://openroad.readthedocs.io/en/latest/main/README.html - Build Instructions: https://openroad.readthedocs.io/en/latest/contrib/BuildWithCMake.html - - Join our Discord: https://discord.gg/x8Wz6kM4Qe + - Contribution Guide: https://openroad.readthedocs.io/en/latest/contrib/contributing.html Please search existing issues before submitting to avoid duplicates. A maintainer will get back to you soon! pr-message: | Welcome to OpenROAD! Thanks for opening your first PR. - Before we review: - Contribution Guide: https://openroad.readthedocs.io/en/latest/contrib/contributing.html - Build Instructions: https://openroad.readthedocs.io/en/latest/contrib/BuildWithCMake.html - - Join our Discord: https://discord.gg/x8Wz6kM4Qe Please ensure: - CI passes - Code is properly formatted - Tests are included where applicable - A maintainer will review shortly!