diff --git a/.github/workflows/pr-opened-help-message.yml b/.github/workflows/pr-opened-help-message.yml new file mode 100644 index 000000000000..f9bf6898e869 --- /dev/null +++ b/.github/workflows/pr-opened-help-message.yml @@ -0,0 +1,31 @@ +name: Pull Request Opened Help Message +on: + pull_request_target: + types: [opened, reopened] + +jobs: + pr-opened-help-message: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Comment on PR + uses: actions/github-script@v7 + with: + token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `Hello 👋! Thanks for opening a pull request. + + Please make sure to follow the [contribution guidelines](https://opentelemetry.io/docs/contributing/). + + We will run some checks on your PR. If they fail, take a look in to our [guide on pr-checks](https://opentelemetry.io/docs/contributing/pr-checks/). + Most issues can be resolved by running `npm run fix:all` locally and pushing the changes. + But please note that it is not your responsibility to fix all the issues. We will help you with that. + + If you have any questions, feel free to ask.` + }) diff --git a/README.md b/README.md index 3f4e8247d349..4d502da79783 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is the source repository for the [OpenTelemetry][] website, project documentation, and blog. The site is [built][contributing.md] using [Hugo][] and is hosted on [Netlify][]. -Public analytics for the website is [available here][]. +Public analyti2cs for the website is [available here][]. ## Get involved