Skip to content

Commit

Permalink
Merge pull request #36 from chef/IPACK-87-setup-win-32-process-repo-f…
Browse files Browse the repository at this point in the history
…or-expeditor

Setup expeditor for win32-process
  • Loading branch information
skeshari12 authored Mar 16, 2022
2 parents 6f2977a + a28ebe5 commit 6ca10df
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Documentation available at https://expeditor.chef.io/docs/getting-started/
---
# Slack channel in Chef Software slack to send notifications about build failures, etc
slack:
notify_channel: chef-notify

# This publish is triggered by the `built_in:publish_rubygems` artifact_action.
rubygems:
- win32-process

github:
# This deletes the GitHub PR branch after successfully merged into the release branch
delete_branch_on_merge: true
version_tag_format: "win32-process-{{version}}"
# allow bumping the minor release via label
minor_bump_labels:
- "Expeditor: Bump Version Minor"

release_branches:
- main:
version_constraint: "0.*"

changelog:
rollup_header: Changes not yet released to rubygems.org

subscriptions:
# These actions are taken, in order they are specified, anytime a Pull Request is merged.
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
actions:
- built_in:bump_version:
ignore_labels:
- "Expeditor: Skip Version Bump"
- "Expeditor: Skip All"
- bash:.expeditor/update_version.sh:
only_if: built_in:bump_version
- built_in:update_changelog:
ignore_labels:
- "Expeditor: Skip Changelog"
- "Expeditor: Skip All"
- built_in:build_gem:
only_if: built_in:bump_version

- workload: project_promoted:{{agent_id}}:*
actions:
- built_in:rollover_changelog
- built_in:publish_rubygems
12 changes: 12 additions & 0 deletions .expeditor/update_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
#
# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file.
# It then executes this file to update any other files/components with that new version.
#

set -evx

sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/win32/process/version.rb

# Once Expeditor finshes executing this script, it will commit the changes and push
# the commit as a new tag corresponding to the value in the VERSION file.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# win32-process Changelog

<!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ -->
<!-- latest_release 0.9.0 -->
= 0.9.0 - 28-Oct-2020
* Removed support for the Ruby $SAFE when killing processes to avoid deprecation warnings in Ruby 2.7+ and failures in Ruby 3.x releases
* Shrunk the size of the gem package by not shipping test files in the package
* Moved dev deps to the Gemfile so they can be more easily skipped
* Update the gemspec to point to the current repository at github.com/chef/win32-process

<!-- latest_release -->
<!-- release_rollup since=0.8.3 -->

= 0.8.3 - 16-Dec-2015
* Fixed a declaration in the CreateProcessWithLoginW function prototype. Thanks
go to ksubrama for the spot.
* Only define attach_pfunc if not already defined to avoid potential warnings.

<!-- release_rollup -->
<!-- latest_stable_release -->
= 0.8.2 - 15-Oct-2015
* Fixed a declaration bug in the CreateProcess function prototype, and replaced
all instances of :bool with :int in function prototypes, along with
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.9.0
6 changes: 6 additions & 0 deletions lib/win32/process/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Win32
class Process
# The version of the win32-process library
VERSION = "0.9.0".freeze
end
end
2 changes: 1 addition & 1 deletion win32-process.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = "win32-process"
spec.version = "0.9.0"
spec.version = Win32::Process::VERSION
spec.license = "Artistic-2.0"
spec.authors = ["Daniel Berger", "Park Heesob"]
spec.email = "[email protected]"
Expand Down

0 comments on commit 6ca10df

Please sign in to comment.