code: def _post_status(self, state, description):
          
          if self.config.post_status:
              logger.info('Commit statuses enabled')
              if self.config.commit_sha:
                  logger.info('Posting {} status to commit SHA {}'.format(state, self.config.commit_sha))
                  self.git_client.post_status(
                      state,
                      description,
                      sha=self.config.commit_sha
                  )
              else:
                  logger.warning('Cannot post commit status because no commit SHA has been '
                                 'specified. Either use the --commit-sha CLI argument or '
                                 'set the LINTLY_COMMIT_SHA environment variable.')
          else:
              logger.info('Commit statuses disabled')
docs: Creates a GitHub status for this build's commit if enabled for the project.
          :param state: The state of the status (pending, error, failure, success)
          :param description: The description for the status