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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule around checking for git-tags #90

Open
caniszczyk opened this issue Mar 25, 2018 · 3 comments
Open

Add rule around checking for git-tags #90

caniszczyk opened this issue Mar 25, 2018 · 3 comments

Comments

@caniszczyk
Copy link
Member

It's a good practice to tag releases, if a repo doesn't have any tags, this should be a warning.

@discombobulateme
Copy link

discombobulateme commented Dec 8, 2020

Is it possible to add a new axiom to check for releases?
I am adding this code, using octokit, in my project, but it would be very nice to have something like this implemented as an axiom:

const { Octokit } = require('@octokit/rest') 
const octokit = new Octokit() /*lib for GitHub API */

const releases = async function main() {
  const r = await octokit.repos.listReleases({
    owner: '',
    repo: '',
    per_page: 100,
  })

  if (r.data === undefined || r.data.length == 0) {
    console.log('🚨 This project has no releases')
  } else {
    const howManyReleases = r.data.length
    console.log('✅ it has ' + howManyReleases + ' releases so far')
  }
}
releases()

If it is of the project interest, how could I add it?

@prototypicalpro
Copy link
Collaborator

prototypicalpro commented Dec 8, 2020

A rule to check that releases are present (and/or if they match a certain pattern) might make sense. The main catch, however, is that at the moment Repolinter is hosting agnostic, and does not assume the project is hosted on GitHub. Perhaps if a hosting-provider axiom were implemented, we could then begin implementing rules that were specifically designed to check GitHub items such as releases?

@discombobulateme
Copy link

I makes super sense. Maybe I can share what I am doing as soon as I finish, than it will be easier to think about how to do it?
Thank you for your super fast response :)

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

No branches or pull requests

4 participants