Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-host_core",
"project_page": "https://github.com/puppetlabs/puppetlabs-host_core",
"issues_url": "https://tickets.puppetlabs.com/projects/MODULES",
"issues_url": "https://github.com/puppetlabss/puppetlabs-host_core/issues",
"dependencies": [

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

This file was deleted.