Skip to content

Commit

Permalink
Merge pull request #68 from mhashizume/PA-5395/main/github_issues
Browse files Browse the repository at this point in the history
(PA-5395) Issues housekeeping
  • Loading branch information
cthorn42 authored Nov 30, 2023
2 parents ccfcd1c + efec50f commit 03f59c9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 64 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/jira.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Export issue to Jira

on:
issues:
types: [labeled]

permissions:
issues: write

jobs:
export:
uses: "puppetlabs/phoenix-github-actions/.github/workflows/jira.yml@main"
with:
jira-project: PA
jira-base-url: ${{ vars.jira_base_url }}
jira-user-email: ${{ vars.jira_user_email }}
secrets:
jira-api-token: ${{ secrets.JIRA_ISSUES_ACTION }}
40 changes: 2 additions & 38 deletions .github/workflows/static_code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
static_code_analysis:
name: Run checks

env:
ruby_version: 2.6
extra_checks: check:symlinks check:git_ignore check:dot_underscore check:test_file

runs-on: 'ubuntu-20.04'
steps:
- name: Checkout current PR code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install ruby version ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby_version }}

- name: Prepare testing environment with bundler
run: |
git config --global core.longpaths true
bundle config set --local without 'release'
bundle update --jobs 4 --retry 3
- name: Run commits check
run: bundle exec rake commits

- name: Run rubocop check
run: bundle exec rake ${{ env.extra_checks }} rubocop

- name: Run syntax check
run: bundle exec rake ${{ env.extra_checks }} syntax syntax:hiera syntax:manifests syntax:templates

- name: Run lint check
run: bundle exec rake ${{ env.extra_checks }} lint

- name: Run metadata_lint check
run: bundle exec rake ${{ env.extra_checks }} metadata_lint
uses: "puppetlabs/phoenix-github-actions/.github/workflows/static_code_analysis.yaml@main"
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"source": "https://github.com/puppetlabs/puppetlabs-augeas_core",
"project_page": "https://github.com/puppetlabs/puppetlabs-augeas_core",
"issues_url": "https://tickets.puppetlabs.com/projects/MODULES",
"issues_url": "https://github.com/puppetlabs/puppetlabs-augeas_core/issues",
"dependencies": [

],
Expand Down
25 changes: 0 additions & 25 deletions rakelib/commits.rake

This file was deleted.

0 comments on commit 03f59c9

Please sign in to comment.