mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-14 10:13:10 +02:00
1b55281859
* docs(typos): Run codespell to fix typos There were a lot of typos through the repository, so I ran [codespell][], a tool for automatically fixing typos, to fix them. ```console make codespell ``` There's already a tool called [misspell][] that's supposed to take care of this, but misspell hasn't been updated for 6 years, and it doesn't seem to be catching any of the typos that codespell can. [codespell]: https://github.com/codespell-project/codespell [misspell]: https://github.com/client9/misspell * Revert and ignore spelling for Consequentially * Add GH workflow for codespell * Revert GH Workflow and Makefile for codespell Per @pellared, since there's no instructions for setting up codespell, it was suggested that the changes for setting up a workflow and section in Makefile include instructions for setting up codespell as well. * Revert spelling on consequently --------- Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
# This action requires that any PR targeting the main branch should touch at
|
|
# least one CHANGELOG file. If a CHANGELOG entry is not required, or if
|
|
# performing maintenance on the Changelog, add either \"[chore]\" to the title of
|
|
# the pull request or add the \"Skip Changelog\" label to disable this action.
|
|
|
|
name: changelog
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, labeled, unlabeled]
|
|
branches:
|
|
- main
|
|
jobs:
|
|
changelog:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]')}}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Check for CHANGELOG changes
|
|
run: |
|
|
# Only the latest commit of the feature branch is available
|
|
# automatically. To diff with the base branch, we need to
|
|
# fetch that too (and we only need its latest commit).
|
|
git fetch origin ${{ github.base_ref }} --depth=1
|
|
if [[ $(git diff --name-only FETCH_HEAD | grep CHANGELOG) ]]
|
|
then
|
|
echo "A CHANGELOG was modified. Looks good!"
|
|
else
|
|
echo "No CHANGELOG was modified."
|
|
echo "Please add a CHANGELOG entry, or add the \"Skip Changelog\" label if not required."
|
|
false
|
|
fi
|