Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsymhoven committed May 8, 2021
1 parent dffc0fb commit ea4cf65
Show file tree
Hide file tree
Showing 15 changed files with 1,691 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
33 changes: 33 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
- name: bug
description: Bugs or performance problems
color: CC0000
- name: feature
color: 1d76db
description: New features
- name: enhancement
description: Enhancement of existing functionality
color: 0366d6
- name: deprecated
description: Deprecating API
color: f4c21d
- name: removed
description: Removing API
color: e4b21d
- name: tests
description: Enhancement of tests
color: 0e8a16
- name: documentation
description: Enhancement of documentation
color: bfafea
- name: internal
description: Internal changes without user or API impact
color: e6e6e6
- name: dependencies
description: Update of dependencies
color: e6e6e6
- name: java
desccription: Pull requests that update Maven Java dependencies
color: b6b6b6
- name: github_actions
desccription: Pull requests that update Github Actions code
color: 909090
50 changes: 50 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name-template: 'v$RESOLVED_VERSION 🎁'
tag-template: 'v$RESOLVED_VERSION'

template: |
$CHANGES
# Emoji reference: https://gitmoji.carloscuesta.me/
categories:
- title: 💥 Removed
label: removed
- title: ⚠️ Deprecated
label: deprecated
- title: 🚀 New features
labels:
- feature
- title: ✨ Improvements
labels:
- enhancement
- title: 🐛 Bug Fixes
labels:
- bug
- fix
- bugfix
- regression
- title: 📝 Documentation updates
label: documentation
- title: 📦 Dependency updates
label: dependencies
- title: 🔧 Internal changes
label: internal
- title: 🚦 Tests
labels:
- test
- tests

version-resolver:
major:
labels:
- 'removed'
minor:
labels:
- 'feature'
- 'enhancement'
- 'deprecated'
patch:
labels:
- 'dependencies'
- 'documentation'
- 'tests'
- 'internal'
default: minor
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'GitHub CI'

on:
push:
branches:
- master
pull_request:

jobs:
build:

strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}
name: on ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2.3.4
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2.1.4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
env:
BROWSER: chrome-container
run: mvn -V -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' '-Dgpg.skip'
14 changes: 14 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Invoke Release Drafter'

on:
push:
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5.15.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/snyc-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Sync labels
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,15 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

pom.xml.versionsBackup
pom.xml.releaseBackup
release.properties
.DS_Store

node_modules
node

.idea
target
*.iml
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

All notable changes of this project will be automatically logged by release drafter in
[GitHub releases](https://github.com/jenkinsci/select2-api-plugin/releases).

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
See the documentation for more options:
https://github.com/jenkins-infra/pipeline-library/
*/
buildPlugin(useAci: true)
77 changes: 76 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,76 @@
# select2-api-plugin
![GitHub](https://img.shields.io/github/license/jenkinsci/select2-api-plugin)
![GitHub pull requests](https://img.shields.io/github/issues-pr/jenkinsci/select2-api-plugin)
![Open GitHub issues](https://img.shields.io/github/issues/jenkinsci/select2-api-plugin)
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/jenkinsci/select2-api-plugin/GitHub%20CI/master?label=GitHub%20CI)
[![Build Status](https://ci.jenkins.io/buildStatus/icon?subject=Jenkins%20CI&job=Plugins%2Fselect2-api-plugin%2Fmaster)](https://ci.jenkins.io/job/Plugins/job/select2-api-plugin/job/master/)
![Contributions](https://img.shields.io/badge/contributions-welcome-orange)
![Jenkins Plugins](https://img.shields.io/jenkins/plugin/v/select2-api?label=latest%20version)

<!-- PROJECT LOGO -->
<br />
<p align="center">
<a id="select2" href="#select2" aria-hidden="true"><img src="https://select2.org/user/pages/images/logo.png" alt="Select2" width="100" /></a>

<h1 align="center">Select2.js Jenkins Plugin</h1>

<p align="center">
Jenkins plug-in that provides <a href="https://select2.org">Select2.js</a>.
<br />
<a href="https://github.com/jenkinsci/select2-api-plugin/blob/master/README.md"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="https://github.com/jenkinsci/select2-api-plugin/issues">Report Bug</a>
·
<a href="https://github.com/jenkinsci/select2-api-plugin/issues">Request Feature</a>
</p>
</p>

<!-- TABLE OF CONTENTS -->
<details open="open">
<summary><h2 style="display: inline-block">Table of Contents</h2></summary>
<ol>
<li><a href="#usage">Usage</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#contact">Contact</a></li>
</ol>
</details>

## Usage

In order to use this JS library, add a maven dependency to your pom:

```xml
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>select2-api</artifactId>
<version>[latest version]</version>
</dependency>
```

Then you can use Select2.js in your jelly files using the following snippet:

```html
<st:adjunct includes="io.jenkins.plugins.select2"/>
```

## Contributing

Contributions are what make the open source community such an amazing place to be learn,
inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.

## Contact

Simon Symhoven - post@simon-symhoven.de

Project Link: [https://github.com/jenkinsci/select2-api-plugin](https://github.com/jenkinsci/select2-api-plugin)
Loading

0 comments on commit ea4cf65

Please sign in to comment.