%global _empty_manifest_terminate_build 0 Name: python-cdk-codepipeline-badge-notification Version: 2.0.78 Release: 1 Summary: cdk-codepipeline-badge-notification License: Apache-2.0 URL: https://github.com/kimisme9386/cdk-codepipeline-badge-notification Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9e/37/92dfa6ecc8fd12d8d2c5da39e320843c8d6ab72b2e76653d1aaf17a1a099/cdk-codepipeline-badge-notification-2.0.78.tar.gz BuildArch: noarch Requires: python3-aws-cdk-lib Requires: python3-constructs Requires: python3-jsii Requires: python3-publication %description [![NPM version](https://badge.fury.io/js/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/js/cdk-codepipeline-badge-notification) [![PyPI version](https://badge.fury.io/py/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/py/cdk-codepipeline-badge-notification) [![Release](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml/badge.svg)](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml) # CDK-CodePipeline-Badge-Notification ## Feature * Generate badge when AWS CodePipeline state change * Update GitHub commit status when AWS CodePipeline state change * Notification for chat bot provider * Slack * Google Chat * Telegram ## Support CDKv1 and CDKv2 #### CDKv2 ``` npm install cdk-codepipeline-badge-notification or npm install cdk-codepipeline-badge-notification@latest or npm install cdk-codepipeline-badge-notification@^2.0.0 ``` #### CDKv1 ``` npm install cdk-codepipeline-badge-notification@cdkv1 or npm install cdk-codepipeline-badge-notification@^1.0.6 ``` ## Usage ```python import { CodePipelineBadgeNotification } from 'cdk-pipeline-badge-notification'; import * as cdk from '@aws-cdk/core'; import * as codePipeline from '@aws-cdk/aws-codepipeline'; const app = new cdk.App(); const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT, }; const stack = new cdk.Stack(app, 'codepipeline-badge-notification', { env }); const pipeline = new codePipeline.Pipeline(stack, 'TestPipeline', { pipelineName: 'testCodePipeline', crossAccountKeys: false, }); new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', { pipelineArn: pipeline.pipelineArn, gitHubTokenFromSecretsManager: { secretsManagerArn: 'arn:aws:secretsmanager:ap-northeast-1:111111111111:secret:codepipeline/lambda/github-token-YWWmII', secretKey: 'codepipeline/lambda/github-token', }, notification: { stageName: 'production', ssmSlackWebHookUrl: '/chat/google/slack', ssmGoogleChatWebHookUrl: '/chat/google/webhook', ssmTelegramWebHookUrl: '/chat/telegram/webhook', }, }); ``` > :warning: telegram webhook url from ssm parameter which the URL is not include `text` query string > gitHubTokenFromSecretsManager and notification is optional #### Only badge ```python new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', { pipelineArn: pipeline.pipelineArn, }); ``` %package -n python3-cdk-codepipeline-badge-notification Summary: cdk-codepipeline-badge-notification Provides: python-cdk-codepipeline-badge-notification BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-cdk-codepipeline-badge-notification [![NPM version](https://badge.fury.io/js/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/js/cdk-codepipeline-badge-notification) [![PyPI version](https://badge.fury.io/py/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/py/cdk-codepipeline-badge-notification) [![Release](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml/badge.svg)](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml) # CDK-CodePipeline-Badge-Notification ## Feature * Generate badge when AWS CodePipeline state change * Update GitHub commit status when AWS CodePipeline state change * Notification for chat bot provider * Slack * Google Chat * Telegram ## Support CDKv1 and CDKv2 #### CDKv2 ``` npm install cdk-codepipeline-badge-notification or npm install cdk-codepipeline-badge-notification@latest or npm install cdk-codepipeline-badge-notification@^2.0.0 ``` #### CDKv1 ``` npm install cdk-codepipeline-badge-notification@cdkv1 or npm install cdk-codepipeline-badge-notification@^1.0.6 ``` ## Usage ```python import { CodePipelineBadgeNotification } from 'cdk-pipeline-badge-notification'; import * as cdk from '@aws-cdk/core'; import * as codePipeline from '@aws-cdk/aws-codepipeline'; const app = new cdk.App(); const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT, }; const stack = new cdk.Stack(app, 'codepipeline-badge-notification', { env }); const pipeline = new codePipeline.Pipeline(stack, 'TestPipeline', { pipelineName: 'testCodePipeline', crossAccountKeys: false, }); new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', { pipelineArn: pipeline.pipelineArn, gitHubTokenFromSecretsManager: { secretsManagerArn: 'arn:aws:secretsmanager:ap-northeast-1:111111111111:secret:codepipeline/lambda/github-token-YWWmII', secretKey: 'codepipeline/lambda/github-token', }, notification: { stageName: 'production', ssmSlackWebHookUrl: '/chat/google/slack', ssmGoogleChatWebHookUrl: '/chat/google/webhook', ssmTelegramWebHookUrl: '/chat/telegram/webhook', }, }); ``` > :warning: telegram webhook url from ssm parameter which the URL is not include `text` query string > gitHubTokenFromSecretsManager and notification is optional #### Only badge ```python new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', { pipelineArn: pipeline.pipelineArn, }); ``` %package help Summary: Development documents and examples for cdk-codepipeline-badge-notification Provides: python3-cdk-codepipeline-badge-notification-doc %description help [![NPM version](https://badge.fury.io/js/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/js/cdk-codepipeline-badge-notification) [![PyPI version](https://badge.fury.io/py/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/py/cdk-codepipeline-badge-notification) [![Release](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml/badge.svg)](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml) # CDK-CodePipeline-Badge-Notification ## Feature * Generate badge when AWS CodePipeline state change * Update GitHub commit status when AWS CodePipeline state change * Notification for chat bot provider * Slack * Google Chat * Telegram ## Support CDKv1 and CDKv2 #### CDKv2 ``` npm install cdk-codepipeline-badge-notification or npm install cdk-codepipeline-badge-notification@latest or npm install cdk-codepipeline-badge-notification@^2.0.0 ``` #### CDKv1 ``` npm install cdk-codepipeline-badge-notification@cdkv1 or npm install cdk-codepipeline-badge-notification@^1.0.6 ``` ## Usage ```python import { CodePipelineBadgeNotification } from 'cdk-pipeline-badge-notification'; import * as cdk from '@aws-cdk/core'; import * as codePipeline from '@aws-cdk/aws-codepipeline'; const app = new cdk.App(); const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT, }; const stack = new cdk.Stack(app, 'codepipeline-badge-notification', { env }); const pipeline = new codePipeline.Pipeline(stack, 'TestPipeline', { pipelineName: 'testCodePipeline', crossAccountKeys: false, }); new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', { pipelineArn: pipeline.pipelineArn, gitHubTokenFromSecretsManager: { secretsManagerArn: 'arn:aws:secretsmanager:ap-northeast-1:111111111111:secret:codepipeline/lambda/github-token-YWWmII', secretKey: 'codepipeline/lambda/github-token', }, notification: { stageName: 'production', ssmSlackWebHookUrl: '/chat/google/slack', ssmGoogleChatWebHookUrl: '/chat/google/webhook', ssmTelegramWebHookUrl: '/chat/telegram/webhook', }, }); ``` > :warning: telegram webhook url from ssm parameter which the URL is not include `text` query string > gitHubTokenFromSecretsManager and notification is optional #### Only badge ```python new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', { pipelineArn: pipeline.pipelineArn, }); ``` %prep %autosetup -n cdk-codepipeline-badge-notification-2.0.78 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-cdk-codepipeline-badge-notification -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 25 2023 Python_Bot - 2.0.78-1 - Package Spec generated