Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint awesome with awesome-lint as an Action #1675

Closed

Conversation

sisirkoppaka
Copy link

@sisirkoppaka sisirkoppaka commented Dec 24, 2019

Adds an Action for linting with awesome-lint when opening PRs into awesome so that linting issues could be addressed earlier. Addresses #1365.

馃枛 I have read through the requirements multiple times. I believe it satisfies all of the requirements.

id: checkout
uses: actions/checkout@v2
- name: awesome-lint-action
uses: squadcastHQ/awesome-lint-action@master
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really see why you need a custom workflow for this. You could just run $ awesome-lint as a command.

@@ -0,0 +1,20 @@
on: [push, pull_request]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be changed to:

on:
  push:
    # Run against master branch only 
    branches: [master]
  pull_request:
    # Include events emitted on code change only
    types: [opened, synchronize]

@sindresorhus
Copy link
Owner

I decided to rename master branch to main, and apparently that permanently closes all PRs. Ugh. Sorry about that. Can you reopen this PR targeting the main branch? Include a link to this PR in the new one, so we can quickly see what was discussed previously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants