Skip to content

Commit

Permalink
backport github automation changes to 2020
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Jun 26, 2023
1 parent e38cd12 commit 12b0e82
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

### Contribution Checklist

* Please [make an issue in the OpenNMS issue tracker](https://issues.opennms.org) if there isn't one already.<br />Once there is an issue, please:
* Please [make an issue in the OpenNMS issue tracker](https://opennms.atlassian.net/) if there isn't one already.<br />Once there is an issue, please:
1. update the title of this PR to be in the format: `${JIRA-ISSUE-NUMBER}: subject of pull request`
2. update the JIRA link at the bottom of this comment to refer to the real issue number
2. update the Jira link at the bottom of this comment to refer to the real issue number
3. prefix your commit messages with the issue number, if possible
4. once you've created this PR, please link to it in a comment in the JIRA issue
4. once you've created this PR, please link to it in a comment in the Jira issue
Don't worry if this sounds like a lot, we can help you get things set up properly.
* **If this code is likely to affect the UI, did you name your branch with `-smoke` in it to trigger smoke tests?**
* If this is a new or updated feature, is there documentation for the new behavior?
* If this is new code, are there unit and/or integration tests?
* If this PR targets a `foundation-*` branch, does it try to avoid changing files in `$OPENNMS_HOME/etc/`?
Expand All @@ -33,5 +34,5 @@ Thanks for taking time to contribute!

### External References

* JIRA (Issue Tracker): http://issues.opennms.org/browse/${JIRA-ISSUE-NUMBER}
* Jira (Issue Tracker): https://opennms.atlassian.net/browse/${JIRA-ISSUE-NUMBER}

13 changes: 13 additions & 0 deletions .github/assign-by-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"**/*.adoc":
- Bonrob2

"opennms-doc/**/*":
- Bonrob2

"docs/**/*":
- Bonrob2

".circleci/**/*":
- RangerRick
- mershad-manesh
33 changes: 31 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
version: 2
updates:

- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/ui"
target-branch: "develop"
reviewers:
- "mikewrosey"
labels:
- "dependency update"
commit-message:
prefix: "build"
include: "scope"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/core/web-assets/"
target-branch: "foundation-2022"
target-branch: "foundation-2023"
versioning-strategy: "increase-if-necessary"
reviewers:
- "rangerrick"
Expand All @@ -14,15 +29,29 @@ updates:
include: "scope"
schedule:
interval: "daily"
# these will need to be dealt with in a more deliberate way
ignore:
- dependency-name: "angular"
- dependency-name: "angular-animate"
- dependency-name: "angular-cookies"
- dependency-name: "angular-mocks"
- dependency-name: "angular-resource"
- dependency-name: "angular-route"
- dependency-name: "angular-sanitize"
- dependency-name: "c3"
- dependency-name: "d3"
- dependency-name: "flot"
- dependency-name: "ionicons"
- dependency-name: "@types/lodash"
- dependency-name: "@types/node"
# do these when we upgrade to webpack 5
- dependency-name: "assets-webpack-plugin"
- dependency-name: "css-loader"
- dependency-name: "expose-loader"

- package-ecosystem: "maven"
directory: "/"
target-branch: "foundation-2022"
target-branch: "foundation-2023"
reviewers:
- "rangerrick"
labels:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Auto Assign Pull Request"
on:
pull_request_target:
# types: [review_requested, ready_for_review, opened, synchronize, reopened]
branches:
- develop
- 'foundation-**'
- 'release-**'
jobs:
assign_reviewer:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: shufo/[email protected]
with:
config: ".github/assign-by-files.yml"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 12b0e82

Please sign in to comment.