Skip to content

Commit

Permalink
port over github stuff from opennms (including fixing labeler)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Jun 27, 2023
1 parent 36fbb83 commit cf53572
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 46 deletions.
38 changes: 38 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
### All Contributors

* [ ] Have you read our [Contribution Guidelines](https://github.com/OpenNMS/opennms/blob/develop/CONTRIBUTING.md)?
* [ ] Have you (electronically) signed the [OpenNMS Contributor Agreement](https://cla-assistant.io/OpenNMS/opennms)?

### Contribution Checklist

* 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
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
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/`?

### What's Next?

A PR should be assigned at least 2 reviewers. If you know that someone would be a good person to review your code, feel free to add them.

If you need help making additions or changes to the documentation related to your changes, please let us know.

In any case, if anything is unclear or you want help getting your PR ready for merge, please don't hesitate to say something in the comments here,
or in [the #opennms-development chat channel](https://chat.opennms.com/opennms/channels/opennms-development).

Once reviewer(s) accept the PR and the branch passes continuous integration, the PR is eligible for merge.

At that time, if you have commit access (are an OpenNMS Group employee or a member of the OGP) you are welcome to merge the PR when you're ready.
Otherwise, a reviewer can merge it for you.

Thanks for taking time to contribute!

### External References

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

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

"docs/**/*":
- Bonrob2

".circleci/**/*":
- RangerRick
- mershad-manesh
---
"**/*.adoc":
- Bonrob2

"docs/**/*":
- Bonrob2

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

- package-ecosystem: "maven"
directory: "/"
target-branch: "master"
reviewers:
- "gallenc"
- "rangerrick"
labels:
- "dependencies"
commit-message:
prefix: "build"
include: "scope"
schedule:
interval: "daily"
8 changes: 4 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docs:
- 'docs/*'
- 'docs/**/*'
- '**/*.adoc'
docs:
- 'docs/*'
- 'docs/**/*'
- '**/*.adoc'
31 changes: 15 additions & 16 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: "Auto Assign Pull Request"
on:
pull_request:
# types: [review_requested, ready_for_review, opened, synchronize, reopened]
branches:
- develop
- master
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 }}
name: "Auto Assign Pull Request"
on:
pull_request_target:
# types: [review_requested, ready_for_review, opened, synchronize, reopened]
branches:
- master
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 }}
32 changes: 16 additions & 16 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Workflow to associate labels automatically
name: PR-Labeler
# Trigger the workflow on pull request events
on:
- pull_request_target

jobs:
label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
# Workflow to associate labels automatically
name: PR-Labeler
# Trigger the workflow on pull request events
on:
- pull_request_target

jobs:
label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit cf53572

Please sign in to comment.