-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add git submodule change notification bot
- Loading branch information
1 parent
4911707
commit 9ab929f
Showing
3 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Comment on Submodule Update | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'master' | ||
- 'release/**' | ||
paths: | ||
- 'dd-java-agent/agent-jmxfetch/integrations-core' | ||
|
||
jobs: | ||
comment_on_submodule_update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Post comment on submodule update | ||
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # 6.3.3 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Hi! 👋 Looks like you updated a Git Submodule.\n' + | ||
'It is okay to do it on purpose, but if it is not, please make sure:\n\n' + | ||
'* to update the submodule to the latest commit on the master branch using the `git submodule update` command,\n' + | ||
'* to [check your setup for contributing](CONTRIBUTING.md#git-submodule-setup).' | ||
}) |
Submodule integrations-core
updated
3403 files