Skip to content

Commit be0f446

Browse files
committed
Prepare repository for open source release
- Update LICENSE from MIT to Apache 2.0 - Update package.json license field to Apache-2.0 - Add CHANGELOG.md with version history - Update README.md with Apache 2.0 license reference and LaunchDarkly Labs disclaimer - Add license badge to README
1 parent 0de1a8b commit be0f446

File tree

4 files changed

+66
-20
lines changed

4 files changed

+66
-20
lines changed

CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.0.0] - 2024-12-19
9+
10+
### Added
11+
- Initial release of LaunchDarkly Delete Branch GitHub Action
12+
- Automatic branch deletion from LaunchDarkly Code References when GitHub branches are deleted
13+
- Retry logic with exponential backoff for handling rate limits and transient errors
14+
- Comprehensive error handling with detailed logging
15+
- Configurable options for different environments
16+
- Force delete option for manual branch cleanup workflows
17+
- Support for custom repository keys and base URIs
18+
- Built-in validation for required inputs and GitHub context
19+
20+
### Changed
21+
- Updated workflow to auto-commit dist files on releases
22+
- Fixed GitHub Action by adding dist files and build workflow
23+
24+
### Fixed
25+
- Fixed linting issues
26+
- Updated README with proper repository URL
27+
28+
## [Unreleased]
29+
30+
### Added
31+
- Nothing yet
32+
33+
### Changed
34+
- Nothing yet
35+
36+
### Deprecated
37+
- Nothing yet
38+
39+
### Removed
40+
- Nothing yet
41+
42+
### Fixed
43+
- Nothing yet
44+
45+
### Security
46+
- Nothing yet

LICENSE

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
MIT License
1+
Copyright 2024 Catamorphic Inc dba LaunchDarkly
22

3-
Copyright (c) 2024 LaunchDarkly
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
46

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
7+
http://www.apache.org/licenses/LICENSE-2.0
118

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# LaunchDarkly Delete Branch Action
22

3+
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4+
35
A GitHub Action that automatically deletes branches from LaunchDarkly Code References when they are deleted in GitHub.
46

57
## Features
@@ -188,7 +190,13 @@ npm run package
188190

189191
## License
190192

191-
MIT License - see [LICENSE](LICENSE) file for details.
193+
Apache 2.0 - see [LICENSE](LICENSE) file for details.
194+
195+
## LaunchDarkly Labs Disclaimer
196+
197+
This repository is maintained by LaunchDarkly Labs. While we try to keep it
198+
up to date, it is not officially supported by LaunchDarkly. For officially
199+
supported SDKs and tools, visit https://launchdarkly.com
192200

193201
## Contributing
194202

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"delete"
2121
],
2222
"author": "LaunchDarkly",
23-
"license": "MIT",
23+
"license": "Apache-2.0",
2424
"dependencies": {
2525
"@actions/core": "^1.10.1",
2626
"@actions/github": "^6.0.0"

0 commit comments

Comments
 (0)