forked from go-playground/webhooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Nullify-Platform/azure-pr-comment
Azure pr comment
- Loading branch information
Showing
6 changed files
with
135 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Require labels to be added to a PR before merging | ||
# This is configured as a branch protection setting | ||
name: CI Require Labels | ||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
merge_group: | ||
run-name: CI Require Labels ${{ github.sha }} by @${{ github.actor }} | ||
jobs: | ||
require-labels: | ||
if: ${{ github.event_name == 'pull_request' }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
status: ${{ steps.require-labels.outputs.status }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Require Labels | ||
id: require-labels | ||
uses: nullify-platform/github-actions/actions/require-labels@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Create Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseType: | ||
description: Create a draft release | ||
required: true | ||
type: boolean | ||
default: true | ||
push: | ||
branches: | ||
- main | ||
concurrency: | ||
group: release | ||
cancel-in-progress: false | ||
run-name: Release ${{ github.sha }} by @${{ github.actor }} | ||
permissions: | ||
contents: write | ||
id-token: write | ||
pull-requests: read | ||
jobs: | ||
get-version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.get-version.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get Release Version | ||
id: get-version | ||
uses: nullify-platform/github-actions/actions/release-version@main | ||
- run: | | ||
echo "config-file-parser @ ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY | ||
echo "VERSION: ${{ steps.get-version.outputs.version }}" >> $GITHUB_STEP_SUMMARY | ||
echo "SHORT_SHA: $(git rev-parse --short HEAD)" >> $GITHUB_STEP_SUMMARY | ||
release: | ||
if: ${{ needs.get-version.outputs.version != 'undefined' || (github.event_name == 'workflow_dispatch' && needs.get-version.outputs.version != 'undefined') }} | ||
runs-on: ubuntu-latest | ||
needs: [ get-version ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Generate Release Tag | ||
run: echo "RELEASE_TAG=v${{ needs.get-version.outputs.version }}" >> $GITHUB_ENV | ||
- name: Generate Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: false | ||
generate_release_notes: true | ||
append_body: true | ||
tag_name: ${{ env.RELEASE_TAG }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/go-playground/webhooks/v6 | ||
module github.com/nullify-platform/webhooks | ||
|
||
go 1.17 | ||
|
||
|